From 8a4c2fbee23d2c1683164e7a7011f545035ea4a8 Mon Sep 17 00:00:00 2001 From: joseelinchevalay Date: Wed, 1 Apr 2020 14:53:00 +0200 Subject: [PATCH] =?UTF-8?q?mise=20=C3=A0=20jour=20de=20la=20documentation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- readme.md | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index e83b7c4..e356af2 100644 --- a/readme.md +++ b/readme.md @@ -93,22 +93,36 @@ The main clients for Duniter are [Cesium](https://cesium.app/) and [Silkaj](http ## With docker (experimental) -First you need to build docker image +### variables + +SSB_PATH : this is important variable to locate your ssb db path and secret file don't forget to set that. +if you use patchwork or other project please *copy all directory other location* because a +lock file is create when a patchwork or other projet run and ssb-server cannot run. + + +First you need to build docker image. ``` -docker-compose build +SSB_PATH=~/your-copy-ssb/ docker-compose build ``` create your dunikey ``` -docker-compose run --rm -v ~/.ssb:/home/astroport/.ssb ssb-g1like_secret2dunikey + SSB_PATH=~/your-copy-ssb/ docker-compose up -d tip # only you need to run tiping part + SSB_PATH=~/your-copy-ssb/ docker-compose up -d # if you need to run all platform ``` run main tip script ``` -docker-compose run --rm -v ~/.ssb:/home/astroport/.ssb ssb-g1like_tip +container_id=$(docker ps -a -q --filter="ancestor=ssb-g1like_tip") && docker exec -ti $container_id bash -c "/home/astroport/tip" +``` + +For display thank you file + +``` +container_id=$(docker ps -a -q --filter="ancestor=ssb-g1like_tip") && docker cp $container_id:/home/astroport/your_thank.md ~ && docker exec -ti $container_id bash -c "rm -rf /home/astroport/your_thank.md" ``` ## Authors