This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
spdocker/Dockerfile

30 lines
1.2 KiB
Docker
Raw Permalink Normal View History

2018-03-11 00:48:17 +00:00
# NAME ibm/spectrumprotect-oc
2019-12-13 05:37:58 +00:00
# VERSION 8.1.9
2019-05-06 04:51:11 +00:00
# BUILD docker build -t="ibm/spectrumprotect-oc:latest" .
2018-03-11 00:48:17 +00:00
2019-05-06 04:51:11 +00:00
# Since SP is supported on RHEL and its not available in docker, we'll use CentOS.
2018-03-11 00:48:17 +00:00
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
2019-05-06 04:51:11 +00:00
# http://public.dhe.ibm.com/storage/tivoli-storage-management/maintenance/server/v8r1/Linux/8.1.?.???/x86_64/ ... for maintenance releases (without license files).
2019-12-13 05:37:58 +00:00
RUN SOURCE_URL=http://YOUR_SITE_URL_HERE SOURCE=8.1.9.000-IBM-SPSRV-Linuxx86_64.bin && \
2018-03-11 00:48:17 +00:00
mkdir -p /tmp/build && cd /tmp/build && \
2019-12-13 05:37:58 +00:00
curl -SL ${SOURCE_URL}/${SOURCE} > tsm && chmod +x tsm && ./tsm && rm -f tsm && \
2018-03-11 00:48:17 +00:00
./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" ]
2019-05-06 04:51:11 +00:00
# Fix OC startup, since it cant find liberty
RUN sed -i 's#^installPath=#installPath=/opt/tivoli/tsm/ui#' /opt/tivoli/tsm/ui/Liberty/bin/opscenter.rc