27 lines
1018 B
Docker
27 lines
1018 B
Docker
# NAME deon/tsmpipe
|
|
# VERSION 8.1.4
|
|
|
|
FROM centos:7
|
|
|
|
# If using FTP source (change tar to not use z)
|
|
#RUN SOURCE_URL=ftp://public.dhe.ibm.com/storage/tivoli-storage-management/maintenance/client/v8r1/Linux/LinuxX86/BA/v812/8.1.2.0-TIV-TSMBAC-LinuxX86.tar \
|
|
|
|
# If using PPA source
|
|
RUN SOURCE_URL=http://yum.leenooks.net/docker/tsmba/8.1.4 \
|
|
&& PREFIX=TSMCLI_LNX/tsmcli/linux86 \
|
|
&& CHARS=$(echo ${PREFIX} | awk -F"/" '{print NF}') \
|
|
&& curl -SL ${SOURCE_URL} | tar -zC /tmp/ --strip-components ${CHARS} -xf - ${PREFIX}/gskcrypt64-*.linux.x86_64.rpm ${PREFIX}/gskssl64-*.linux.x86_64.rpm ${PREFIX}/TIVsm-API64.x86_64.rpm \
|
|
&& yum install -y /tmp/*rpm && rm -rf /tmp/*rpm /var/cache/yum
|
|
|
|
RUN ln -s /tsm/dsm.sys /opt/tivoli/tsm/client/api/bin64/ \
|
|
&& ln -s /tsm/dsm.opt /opt/tivoli/tsm/client/api/bin64/ \
|
|
&& ln -s /tsm/dsmcert.kdb /opt/tivoli/tsm/client/api/bin64/ \
|
|
&& ln -s /tsm/dsmcert.sth /opt/tivoli/tsm/client/api/bin64/
|
|
|
|
COPY tsmpipe /usr/bin
|
|
|
|
VOLUME [ "/tsm" ]
|
|
|
|
# Starting
|
|
ENTRYPOINT [ "/usr/bin/tsmpipe" ]
|