This guide assumes that docker is installed.
git clone https://github.com/Joystream/joystream.git- To target the
masterbranch pick the latest workflow run from: https://github.com/Joystream/joystream/actions/workflows/joystream-node-docker-dev.yml?query=branch%3Amaster - In the job column choose either the
STAGINGorPLAYGROUNDjobs.STAGINGuses the same chain parameters as theJoystream testnetwhilePLAYGROUNDhas value simplifying testing (like shorter elections cycles) - Click on the
Check if we have pre-built image on Dockerhubstep to view the image tag. E.g in:Run export IMAGE_EXISTS=$(docker manifest inspect joystream/node:1e27c1330d5a67f347789a7849ea2176ec89702a > /dev/null ; echo $?),1e27c1330d5a67f347789a7849ea2176ec89702ais the tag we are looking for.
In the .env file at the root of the joystream repo, find the line which contains # JOYSTREAM_NODE_TAG=latest and replace it by JOYSTREAM_NODE_TAG={IMAGE-TAG} ({IMAGE-TAG} being the image tag found on the previous step).
All the below commands should be run inside joystream repo.
In order to build required packages run the below command. This step is only needed after updating the branch.
yarn run build:packagesdocker-compose up -d joystream-nodeyarn workspace query-node-root startIn order to do a full restart and clear the services state execute:
docker-compose rm -vsf joystream-node
yarn workspace query-node-root kill
docker-compose up -d joystream-node
yarn workspace query-node-root start