-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (25 loc) · 995 Bytes
/
Dockerfile
File metadata and controls
29 lines (25 loc) · 995 Bytes
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
FROM centos:centos7
MAINTAINER sudhakar@au1.ibm.com
# Pass in the location of the RLKS install zip
ARG ARTIFACT_DOWNLOAD_URL
#Install supervisord
RUN \
yum update -y && \
yum install -y epel-release && \
yum install -y iproute python-setuptools hostname inotify-tools yum-utils which jq unzip wget redhat-lsb-core.i686 && \
yum clean all && \
easy_install supervisor
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
ADD RLKSinstall.rsp /tmp/RLKSinstall.rsp
ADD startup.sh /opt/startup.sh
#Install RLKS
RUN cd /tmp && wget -q $ARTIFACT_DOWNLOAD_URL && unzip -q IBM_Rational_License_Key_Server_Linux_x86_ZIP.zip \
&& /tmp/RLKSSERVER_SETUP_LINUX_X86/disk1/InstallerImage_linux_gtk_x86_64/installc -acceptLicense input /tmp/RLKSinstall.rsp -log /tmp/rlks.log \
&& rm -rf /tmp/* \
&& chmod +x /opt/startup.sh
EXPOSE 27000
#this assumes the license file will have a port setting like:
#VENDOR ibmratl port=27001
EXPOSE 27001
ENTRYPOINT ["/opt/startup.sh"]
CMD []