Update docker

Deon George 2017-11-30 04:17:42 +00:00
parent 591fa5764d
commit 5713221dce

@ -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.
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.