30 lines
1.2 KiB
Docker
30 lines
1.2 KiB
Docker
# NAME ibm/spclient
|
|
# VERSION 8.1.8
|
|
# BUILD docker build -t="ibm/spclient:latest" .
|
|
|
|
FROM debian:stretch-slim
|
|
|
|
# We need curl to download the install from a website
|
|
RUN apt-get update \
|
|
&& apt-get install -yyq curl \
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/*
|
|
|
|
# Download and Install client
|
|
## http://public.dhe.ibm.com/storage/tivoli-storage-management/maintenance/client/v8r1/Linux/LinuxX86_DEB/BA/v818/.
|
|
RUN SOURCE_URL=http://YOUR_SITE_URL_HERE && \
|
|
mkdir -p /tmp/build && cd /tmp/build && \
|
|
curl -SL ${SOURCE_URL}/8.1.8.0-TIV-TSMBAC-LinuxX86_DEB.tar |tar xf - && \
|
|
apt-get install ./gsk*.deb ./tivsm-api64.amd64.deb ./tivsm-ba.amd64.deb && \
|
|
rm -rf /tmp/build /var/lib/apt/lists/*
|
|
|
|
# Add the TSM default Cert to the client and a default config
|
|
# This cert is availabe from the cert installation
|
|
ADD cert256.arm dsm.sys dsm.opt /opt/tivoli/tsm/client/ba/bin/
|
|
RUN /opt/tivoli/tsm/client/ba/bin/dsmcert -add -server spectrumprotect -file /opt/tivoli/tsm/client/ba/bin/cert256.arm
|
|
|
|
# The client stores stuff here, its not important, but we'll preserve it across invocations
|
|
VOLUME [ "/etc/adsm" ]
|
|
|
|
# Set out local time
|
|
RUN ln -sf /usr/share/zoneinfo/Australia/Melbourne /etc/localtime
|