Changed to debian image - it's smaller
This commit is contained in:
parent
2babbf6f77
commit
82841d8444
19
Dockerfile
19
Dockerfile
@ -1,15 +1,22 @@
|
|||||||
# NAME deon/tsmpipe
|
# NAME deon/tsmpipe
|
||||||
# VERSION 8.1.4
|
# VERSION 8.1.4
|
||||||
|
|
||||||
FROM centos:7
|
FROM debian:stretch
|
||||||
|
|
||||||
#RUN curl -SL ftp://public.dhe.ibm.com/storage/tivoli-storage-management/maintenance/client/v8r1/Linux/LinuxX86/BA/v812/8.1.2.0-TIV-TSMBAC-LinuxX86.tar | tar -C /tmp/ -xf - gskcrypt64-8.0.50.78.linux.x86_64.rpm gskssl64-8.0.50.78.linux.x86_64.rpm TIVsm-API64.x86_64.rpm && yum install -y /tmp/*rpm && rm -f /tmp/*rpm /var/cache/yum
|
|
||||||
|
|
||||||
RUN SOURCE_URL=http://yum.leenooks.net/docker/tsmba && \
|
RUN apt-get update \
|
||||||
PREFIX=TSMCLI_LNX/tsmcli/linux86 && \
|
&& 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 && \
|
||||||
CHARS=$(echo ${PREFIX} | awk -F"/" '{print NF}') && \
|
CHARS=$(echo ${PREFIX} | awk -F"/" '{print NF}') && \
|
||||||
curl -SL ${SOURCE_URL}/8.1.4 | tar -C /tmp/ --strip-components ${CHARS} -xzf - ${PREFIX}/gskcrypt64-*.linux.x86_64.rpm ${PREFIX}/gskssl64-*.linux.x86_64.rpm ${PREFIX}/TIVsm-API64.x86_64.rpm && \
|
curl -SL ${SOURCE_URL} | tar -C /tmp/ --strip-components ${CHARS} --wildcards -xzf - ${PREFIX}/gsk*.deb ${PREFIX}/tivsm-api*.deb && \
|
||||||
yum install -y /tmp/*rpm && rm -rf /tmp/*rpm /var/cache/yum
|
apt-get install -y /tmp/*deb && rm -rf /var/lib/apt/lists/* /tmp/*
|
||||||
|
|
||||||
RUN ln -s /tsm/dsm.sys /opt/tivoli/tsm/client/api/bin64/ \
|
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/dsm.opt /opt/tivoli/tsm/client/api/bin64/ \
|
||||||
|
Reference in New Issue
Block a user