Initial OC setup

This commit is contained in:
Deon George
2018-03-11 11:48:17 +11:00
parent 12239ff76e
commit c09e682e72
3 changed files with 158 additions and 0 deletions

25
Dockerfile Executable file
View File

@@ -0,0 +1,25 @@
# NAME ibm/spectrumprotect-oc
# VERSION 8.1.1
# BUILD docker build -t="leenooks/spectrumprotect-oc" .
FROM centos:7
# OS Installation Prerequisites
RUN yum -y install http://yum.leenooks.net/CentOS/7/base/redhat-release-7-6.el7.centos.12.2.x86_64.rpm libaio ksh compat-libstdc++-33 numactl && yum clean all && rm -rf /var/tmp/*
COPY install-oc.xml /tmp/
# Installation
RUN SOURCE_URL=http://YOUR_SITE_URL_HERE && \
mkdir -p /tmp/build && cd /tmp/build && \
curl -SL ${SOURCE_URL}/8.1.1 > tsm && \
chmod +x tsm && ./tsm && rm -f tsm && \
./install.sh -s -input /tmp/install-oc.xml -acceptLicense && \
rm -rf /tmp/build /tmp/install*xml
COPY init /sbin/
# Our final docker parameters
EXPOSE 11443
ENTRYPOINT [ "/sbin/init" ]
CMD [ "start" ]