Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker file with toolkit #53

Open
vinchauhan opened this issue Dec 21, 2018 · 3 comments
Open

Docker file with toolkit #53

vinchauhan opened this issue Dec 21, 2018 · 3 comments

Comments

@vinchauhan
Copy link

I am planning to build custom image for dynamic devops environment. I will use the IIB custom image to build the artifact. I think we should provide info on how that can be achieved.

The only issue with current image is doesnt support full compilation using mqsicreatebar which required toolkit to be started on the backend.

Let me know if it is ok to add a new PR for a seperate Docker file with toolkit support. I am sure many will benefit from it.

Thanks.

@saravanakumarrajendran
Copy link

Hi Vineet,
We are also looking to have an IIB Toolkit for CI/CD implementation, do you have any update on this.

@vinchauhan
Copy link
Author

Hi Vineet,
We are also looking to have an IIB Toolkit for CI/CD implementation, do you have any update on this.

Yes - I was able to build the image run toolkit

You can build your own image - I will share the docker file.

@vinchauhan
Copy link
Author

# © Copyright IBM Corporation 2015.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html

FROM ubuntu:16.04

MAINTAINER Sam Rogers [email protected]

LABEL "ProductID"="447aefb5fd1342d5b893f3934dfded73" \
      "ProductName"="IBM Integration Bus" \
      "ProductVersion"="10.0.0.10"

ENV MAVEN_VERSION="3.5.4"

# Install curl libxtst6 jdk7 git open-jdk-8 maven
RUN apt-get update && \
    apt-get install -y curl libxtst6 xvfb gtk2-engines-pixbuf openjdk-8-jdk maven && \
    rm -rf /var/lib/apt/lists/*

ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
RUN export JAVA_HOME

#Install IIB V10 Developer edition
RUN mkdir /opt/ibm && \
    curl http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/integration/10.0.0.10-IIB-LINUX64-DEVELOPER.tar.gz \
    | tar zx --directory /opt/ibm && \
    /opt/ibm/iib-10.0.0.10/iib make registry global accept license silently
    
# # Install IIB V10 Developer edition
## To install from local installation binary hosted off webserver/nginix
## This will save you from downloading the installation from internet everytime you experiment.
# RUN mkdir /opt/ibm && \
#     mkdir /build && \
#     curl http://host.docker.internal:5550/iib/10.0.0.10-IIB-LINUX64-DEVELOPER.tar.gz \
#     | tar zx --directory /opt/ibm && \
#     /opt/ibm/iib-10.0.0.10/iib make registry global accept license silently


# Configure system
COPY kernel_settings.sh /tmp/
RUN echo "IIB_10:" > /etc/debian_chroot  && \
    touch /var/log/syslog && \
    chmod +x /tmp/kernel_settings.sh;sync && \
    /tmp/kernel_settings.sh

# Increase security
RUN sed -i 's/sha512/sha512 minlen=8/'  /etc/pam.d/common-password && \
    sed -i 's/PASS_MIN_DAYS\t0/PASS_MIN_DAYS\t1/'  /etc/login.defs && \
    sed -i 's/PASS_MAX_DAYS\t99999/PASS_MAX_DAYS\t90/'  /etc/login.defs

# Copy in script files
COPY iib_manage.sh /usr/local/bin/
COPY iib-license-check.sh /usr/local/bin/
COPY iib_env.sh /usr/local/bin/

RUN chmod +rx /usr/local/bin/*.sh

# Set BASH_ENV to source mqsiprofile when using docker exec bash -c
ENV BASH_ENV=/usr/local/bin/iib_env.sh
ENV MQSI_MQTT_LOCAL_HOSTNAME=127.0.0.1
ENV DISPLAY :99

# Expose default admin port and http port
EXPOSE 4414 7800

#Set entrypoint to run management script
ENTRYPOINT ["iib_manage.sh"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants