Files
cyphernode/otsclient_docker/README.md
2018-12-26 14:52:53 -05:00

37 lines
984 B
Markdown

# OTS Client Cyphernode Container
## Pull our Cyphernode image
```shell
docker pull cyphernode/otsclient:latest
```
## Build yourself the image
```shell
docker build -t cyphernode/otsclient:latest .
```
## OTS files directory...
```shell
mkdir -p ~/otsfiles
sudo chown -R cyphernode:cyphernode ~/otsfiles ; sudo chmod g+ws ~/otsfiles
sudo find ~/otsfiles -type d -exec chmod 2775 {} \; ; sudo find ~/otsfiles -type f -exec chmod g+rw {} \;
```
## Run image
If you are using it independantly from the Docker stack (docker-compose.yml), you can run it like that:
```shell
docker run --rm -d -p 6666:6666 --network cyphernodenet --env-file env.properties cyphernode/otsclient:latest `id -u cyphernode`:`id -g cyphernode` ./startotsclient.sh
```
## Usefull examples
```shell
curl http://localhost:6666/stamp/1ddfb769eb0b8876bc570e25580e6a53afcf973362ee1ee4b54a807da2e5eed7
curl http://localhost:6666/upgrade/1ddfb769eb0b8876bc570e25580e6a53afcf973362ee1ee4b54a807da2e5eed7
```