Update misc-commands.md

This commit is contained in:
Will Ruddick 2021-07-16 12:48:31 +00:00
parent 3404dea699
commit 0fc8a0a882

View File

@ -1,9 +1,8 @@
# Environment # Environment
git clone https://gitlab.com/grassrootseconomics/cic-internal-integration/ git clone https://gitlab.com/grassrootseconomics/cic-internal-integration/
RUN_MASK=3 COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 DEV_FAUCET_AMOUNT=100000000 TOKEN_TYPE=erc20_demurrage_token docker-compose up --build sudo RUN_MASK=3 COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 DEV_FAUCET_AMOUNT=100000000 TOKEN_TYPE=erc20_demurrage_token CIC_DEFAULT_TOKEN_SYMBOL=SARAFU docker-compose up --build
that should set you up, and then you need to determine when the setup is done by running: that should set you up, and then you need to determine when the setup is done by running:
docker container ls -a docker container ls -a
@ -44,24 +43,24 @@ docker-compose up --build cic-eth-tracker cic-eth-dispatcher
docker-compose up --build cic-cache-tracker docker-compose up --build cic-cache-tracker
docker-compose up --build cic-cache-tasker cic-cache-server cic-eth-retrier cic-meta-server cic-notify-tasker cic-user-ussd-server cic-user-tasker docker-compose up --build cic-cache-tasker cic-cache-server cic-eth-retrier cic-meta-server cic-notify-tasker cic-user-ussd-server cic-user-tasker
# Step 3 - User Imports ## Step 3 - User Imports
## custodial engine import scripts ### custodial engine import scripts
## run in sequence, in first terminal ### run in sequence, in first terminal
python cic_eth/import_balance.py -v -c config -p http://localhost:63545 -r 0xea6225212005e86a4490018ded4bf37f3e772161 -y ../contract-migration/keystore/UTC--2021-01-08T17-18-44.521011372Z--eb3907ecad74a0013c259d5874ae7f22dcbcc95c --head ~/code/cic/out python cic_eth/import_balance.py -v -c config -p http://localhost:63545 -r 0xea6225212005e86a4490018ded4bf37f3e772161 -y ../contract-migration/keystore/UTC--2021-01-08T17-18-44.521011372Z--eb3907ecad74a0013c259d5874ae7f22dcbcc95c --head ~/code/cic/out
## in another terminal with venv ### in another terminal with venv
python cic_eth/import_users.py -v -c config --redis-host-callback redis ~/code/cic/out python cic_eth/import_users.py -v -c config --redis-host-callback redis ~/code/cic/out
## check the cic-cache DB's tx table ### check the cic-cache DB's tx table
## Step 4 - Metadata import ## Step 4 - Metadata import
nvm use 14.17.0 nvm use 14.17.0
## temporary: lock "cic-client-meta": "0.0.7-alpha.6" in package.json ### temporary: lock "cic-client-meta": "0.0.7-alpha.6" in package.json
npm install npm install
node cic_meta/import_meta.js ~/code/cic/out 50 node cic_meta/import_meta.js ~/code/cic/out 50
node cic_meta/import_meta_phone.js ~/code/cic/out 50 node cic_meta/import_meta_phone.js ~/code/cic/out 50
## Step 5 - Verify ## Step 5 - Verify
## python verify.py -v -c config -r 0xea6225212005e86a4490018ded4bf37f3e772161 -p http://localhost:63545 --token-symbol GFT --exclude ussd --skip-custodial ~/code/cic/out python verify.py -v -c config -r 0xea6225212005e86a4490018ded4bf37f3e772161 -p http://localhost:63545 --token-symbol GFT --exclude ussd --skip-custodial ~/code/cic/out
python verify.py -v -c config -r 0xea6225212005e86a4490018ded4bf37f3e772161 -p http://localhost:63545 --token-symbol GFT --exclude ussd --exclude metadata --exclude metadata_phone --exclude ussd_pins --skip-custodial ~/code/cic/out python verify.py -v -c config -r 0xea6225212005e86a4490018ded4bf37f3e772161 -p http://localhost:63545 --token-symbol GFT --exclude ussd --exclude metadata --exclude metadata_phone --exclude ussd_pins --skip-custodial ~/code/cic/out