-
Notifications
You must be signed in to change notification settings - Fork 0
/
iib-dockerfile
51 lines (41 loc) · 1.67 KB
/
iib-dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#################################################
#
# ----------------------------------------------------------------------------
#################################################
# Build command
# docker build -t iib --file=iib-dockerfile .
# Run command
# docker run -it -d --name iibd -P iib
FROM centos:latest
MAINTAINER "Kunal" <[email protected]>
# Required to download the IIB binary
RUN yum install -y curl tar
# Required to run remote X services
RUN yum install -y xorg-x11-xauth xorg-x11-fonts-* xorg-x11-font-utils xorg-x11-fonts-Type1
# Required to test simple xclock application
RUN yum install -y xorg-x11-apps
# Install and run ssh server to allow remote access
RUN yum install -y openssh-server && \
/usr/sbin/sshd-keygen && \
/usr/sbin/sshd
# Install IIB V10 Developer edition
RUN mkdir /opt/ibm
RUN curl http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/integration/iib-10.0.0.0.tar.gz -o /tmp/iib-10.0.0.0.tar.gz
RUN tar -xvf /tmp/iib-10.0.0.0.tar.gz -C /opt/ibm && \
/opt/ibm/iib-10.0.0.0/iib make registry global accept license silently && \
cd /opt/ibm/iib-10.0.0.0
# create a non-root user to run as
RUN useradd --create-home --home-dir /home/iibuser iibuser -p secret && \
echo "iibuser ALL=(ALL) ALL" >> /etc/sudoers
# 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
# Expose default admin port and http port
EXPOSE 4414 7800
USER iibuser
# Set entrypoint to run management script
ENTRYPOINT ["iib_manage.sh"]