mise à jour de la documentation

This commit is contained in:
joseelinchevalay 2020-04-01 14:53:00 +02:00
parent 631c5e8caf
commit 8a4c2fbee2
1 changed files with 18 additions and 4 deletions

View File

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