-
Notifications
You must be signed in to change notification settings - Fork 5
Client Update fork testing
zees-dev edited this page Jan 24, 2024
·
5 revisions
- docker
- ghcr access to trn-seed packages
- 2a: For ghcr access, create a PAT on the settings page with the
read:packages
scope - 2b: Login to ghcr via password (PAT):
echo <YOUR-PAT> | docker login ghcr.io -u <YOUR-GITHUB-USERNAME> --password-stdin
- Get forked chain state from image deployed by
build-porcini-fork-image
workflow
- NOTE: requires seed ghcr access
- NOTE: This will copy the
fork.json
to the hosts./output
directory
docker run --rm -it \
--name fork-porcini \
-v ${PWD}/output/:/output/host/ \
ghcr.io/futureversecom/fork-release-state-porcini:latest \
sh -c "mv /output/fork.json /output/host/"
- Run latest client node with forked chain state
docker run --rm -it \
--name seed-latest \
-v ${PWD}/output/:/output/ \
-p 9933:9933 \
-p 9944:9944 \
--entrypoint "/usr/bin/seed" \
ghcr.io/futureversecom/seed:latest \
--chain=/output/fork.json --alice --tmp --unsafe-ws-external --unsafe-rpc-external --rpc-cors=all