From 5713221dce687ea94b92235a77bbf725d2882856 Mon Sep 17 00:00:00 2001 From: Deon George Date: Thu, 30 Nov 2017 04:17:42 +0000 Subject: [PATCH] Update docker --- docker.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/docker.md b/docker.md index 2ad19bb..a5e79f8 100644 --- a/docker.md +++ b/docker.md @@ -73,4 +73,19 @@ Then, `docker run {options} registry.leenooks.net/deon/tsmpipe:8.1.0 {ARGUMENTS} * `registry.leenooks.net/deon/tsmpipe:8.1.0` the container image * `{ARGUMENTS}` start with `-h` -If you need to change your password, you need to use argument `-p`, but you'll also need to use docker argument `-t` with it. \ No newline at end of file +If you need to change your password, you need to use argument `-p`, but you'll also need to use docker argument `-t` with it. + +## You could even customise the container to have your configuration already inside! + +1. Here is a Dockerfile + + ``` + FROM registry.leenooks.net/deon/tsmpipe:8.1.0 + COPY config/* /opt/tivoli/tsm/client/api/bin64/ + ``` + +2. Put inside the `config/` directory all your config items `dsm.sys`, `dsm.opt` and your SSL config +3. Run `docker build -t MY/tsmipe:8.1.0 .`, then you have a container with all your config inside. The only thing needed is the TSM password file, which you'll need to pass to it every time you invoke it with `-v /DIRECTORY/TO/PASSWDFILE:/tsm`. + + **NOTE**: Make sure your dsm.sys file has `PASSWORDDIR /tsm` + Also, you cannot put your password file in the container, because if you or the node changes the NODEs password, while the change will work, when the container ends, the updated password file will be lost. \ No newline at end of file