diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4ff2bc9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,29 @@ +# 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 diff --git a/cert256.arm b/cert256.arm new file mode 100644 index 0000000..47dbd35 --- /dev/null +++ b/cert256.arm @@ -0,0 +1,21 @@ +-----BEGIN CERTIFICATE----- +MIIDcjCCAlqgAwIBAgIITkKn/aFJ5D4wDQYJKoZIhvcNAQELBQAwVzELMAkGA1UE +BhMCVVMxDDAKBgNVBAoTA1RTTTEUMBIGA1UECxMLVFNNIE5ldHdvcmsxJDAiBgNV +BAMTG1RTTSBTZWxmLVNpZ25lZCBDZXJ0aWZpY2F0ZTAeFw0xOTA2MjcwMjI1MDVa +Fw0yOTA2MjUwMjI1MDVaMFcxCzAJBgNVBAYTAlVTMQwwCgYDVQQKEwNUU00xFDAS +BgNVBAsTC1RTTSBOZXR3b3JrMSQwIgYDVQQDExtUU00gU2VsZi1TaWduZWQgQ2Vy +dGlmaWNhdGUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDZh0G2Y5RU +3UFtTCHrcqgbvx9gU49KxmIua6LIO2yr2fGn3M4iJYZ+atg7vr/wzpQS/q5c5sMa +WF06VuWOAEV1teWTU1LM+wkPJA8RjP+z2lgsX0jFT3tyBlP4iFlWDhRzeDjbqq2Q +h7M56+3uRj/wHP01z71EU87q0tqrGyOQh4PJJ9090q5v8esEiJlxC3xel9CquI2l +tH56JiVf75RhTV+NvIbKENKKJUkhz9c3ob3x+Be18m4MK0vHs10U71uM+uevIwSU +ZzJ1p3aCy45d7nIvXVOixGxyscMpPZ0mghcMEGnW5esjNn4Jtc+OD3xrEnF7a05B +gtBXiDiEkkNTAgMBAAGjQjBAMB0GA1UdDgQWBBSC7skEbF8cFNcXJsfCJP36Xxvg +GTAfBgNVHSMEGDAWgBSC7skEbF8cFNcXJsfCJP36XxvgGTANBgkqhkiG9w0BAQsF +AAOCAQEAAEMJKTFRkr5HQn8xwBiDE66cakrRs7Ki9bnLQubpncEs88lRUyqPZcfn +OQbqgBzXZ3af5gj47SOt8BZR4wU96b5kd7jZWDwpGcoQyM2arvtp7PfqoL76lpWI +qbYvmbG0yxPAL4BWsiOVUGpgHK903ElYKQLFvHhudrLeziOgs2quErmItzFDMwcm +BZlMX48VBYQd6N1WaPGbsmSJZJdIIV1VIsxAoMrbgN5PhqsUcxR64fmQj4+bCdqk +r/N0cfdBmnmC3AqaMJwfj/FUGZ2gKWggJtSqgP2T/foUBsf0ubaAMRks2kVBd/YL +QjDYpfuWO6VN/RtI3Eo5z+KdJDOkmQ== +-----END CERTIFICATE----- diff --git a/dsm.opt b/dsm.opt new file mode 100644 index 0000000..fb19458 --- /dev/null +++ b/dsm.opt @@ -0,0 +1 @@ +DATEformat 2 diff --git a/dsm.sys b/dsm.sys new file mode 100644 index 0000000..050c596 --- /dev/null +++ b/dsm.sys @@ -0,0 +1,17 @@ +SErvername docker + COMMmethod TCPip + MANAGEDServices schedule + TCPPort 1500 + TCPServeraddress spectrumprotect + PASSWORDAccess generate + SCHEDMode polling + + ERRORLOGRetention 10,d + ERRORLOGName /var/log/tsm/dsmerror.log + SCHEDLOGName /var/log/tsm/dsmsched.log + SCHEDLOGRetention 10,d + + TCPNodelay Yes + TCPBuffsize 32 + TCPWindowsize 64 + SSL No