Skip to content
Snippets Groups Projects
Commit bd79f312 authored by Moul's avatar Moul
Browse files

readme: Add missing dependency installation

Other cosmetic fixes
parent 16e351af
No related branches found
No related tags found
1 merge request!8Rework Dockerfile: Optimisations, embed sources, Introduce CI/CD, publish image on Registry
Pipeline #40736 passed
...@@ -15,7 +15,7 @@ docker image push h30x/py-g1-migrator ...@@ -15,7 +15,7 @@ docker image push h30x/py-g1-migrator
## Dev ## Dev
On your Duniter node On a Duniter v1.8 node:
```sh ```sh
# create temporary directory # create temporary directory
...@@ -28,8 +28,7 @@ tar -cvzf /tmp/backup-g1-duniter-1.8.7.tgz /tmp/backup-g1-duniter-1.8.7 ...@@ -28,8 +28,7 @@ tar -cvzf /tmp/backup-g1-duniter-1.8.7.tgz /tmp/backup-g1-duniter-1.8.7
mv /tmp/backup-g1-duniter-1.8.7.tgz /var/www/files.coinduf.eu mv /tmp/backup-g1-duniter-1.8.7.tgz /var/www/files.coinduf.eu
``` ```
In your `py-g1-migrator` folder In your `py-g1-migrator` folder:
```sh ```sh
# fetch database dump, extract, and move to your input folder # fetch database dump, extract, and move to your input folder
...@@ -40,6 +39,7 @@ mv inputs/tmp/backup-g1-duniter-1.8.7 inputs/duniter_default ...@@ -40,6 +39,7 @@ mv inputs/tmp/backup-g1-duniter-1.8.7 inputs/duniter_default
# use a python virtual environment, install requirements, and set env var to tell where the database is # use a python virtual environment, install requirements, and set env var to tell where the database is
python -m venv env python -m venv env
source ./env/bin/activate source ./env/bin/activate
sudo apt install libleveldb-dev
pip install -r requirements.txt pip install -r requirements.txt
export LEVELDB_PATH="./inputs/duniter_default/data/leveldb" export LEVELDB_PATH="./inputs/duniter_default/data/leveldb"
# --- MAIN --- # --- MAIN ---
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment