Files
cyphernode/otsclient_docker

OTS Client Cyphernode Container

Pull our Cyphernode image

docker pull cyphernode/otsclient:latest

Build yourself the image

docker build -t cyphernode/otsclient:latest .

OTS files directory...

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:

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

curl http://localhost:6666/stamp/1ddfb769eb0b8876bc570e25580e6a53afcf973362ee1ee4b54a807da2e5eed7
curl http://localhost:6666/upgrade/1ddfb769eb0b8876bc570e25580e6a53afcf973362ee1ee4b54a807da2e5eed7