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.
tsmpipe/Dockerfile

32 lines
1.0 KiB
Docker
Raw Normal View History

2017-11-26 13:06:30 +00:00
# NAME deon/tsmpipe
2018-03-20 11:02:59 +00:00
# VERSION 8.1.4
2017-11-26 13:06:30 +00:00
2018-03-21 08:58:48 +00:00
FROM debian:stretch
2017-11-26 13:06:30 +00:00
2018-03-21 08:58:48 +00:00
RUN apt-get update \
&& apt-get install curl -yyq \
&& rm -rf /var/lib/apt/lists/* /tmp/*
# If downloading from the IBM site
#RUN ftp://public.dhe.ibm.com/storage/tivoli-storage-management/maintenance/client/v8r1/Linux/LinuxX86_DEB/BA/v814/8.1.4.0-TIV-TSMBAC-LinuxX86_DEB.tar && \
# If using from PPA
RUN SOURCE_URL=http://yum.leenooks.net/docker/tsmba/8.1.4 && \
PREFIX=TSMCLI_LNX/tsmcli/linux86_DEB && \
2018-03-20 11:02:59 +00:00
CHARS=$(echo ${PREFIX} | awk -F"/" '{print NF}') && \
2018-03-21 08:58:48 +00:00
curl -SL ${SOURCE_URL} | tar -C /tmp/ --strip-components ${CHARS} --wildcards -xzf - ${PREFIX}/gsk*.deb ${PREFIX}/tivsm-api*.deb && \
apt-get install -y /tmp/*deb && rm -rf /var/lib/apt/lists/* /tmp/*
2018-03-20 11:02:59 +00:00
2017-11-26 13:06:30 +00:00
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
2017-11-26 13:06:30 +00:00
VOLUME [ "/tsm" ]
# Starting
ENTRYPOINT [ "/usr/bin/tsmpipe" ]