docker-zen-node
docker-zen-node copied to clipboard
zen 2.0.22 info
I do appreciate all the hard work which has been put in to create and update this repository. But servers need to be updated ...
In case somebody else is still waiting for docker repository https://hub.docker.com/r/whenlambomoon/zend/tags to be rebuilt so you can restart zen-node services and be upgraded to 2.0.22 https://blog.horizen.io/mandatory-software-upgrade-download-zen-2-0-22-now/
I gave up and moved to gitlab and set up CI there: https://gitlab.com/crypto1/docker-zen-node
Here are some ansible scripts which I used to update nodes, first one and then the rest
# change zend repo and upgrade (first use -l zen-server1, then -l '!zen-server1')
ansible zennodes -i hosts/hosts -m shell -a 'docker pull registry.gitlab.com/crypto1/docker-zen-node/zend:latest' -l zen-server1
ansible zennodes -i hosts/hosts -m shell -a 'sudo sed -i 's@whenlambomoon/zend:[email protected]/crypto1/docker-zen-node/zend:latest@g' /etc/systemd/system/zen-node.service' -l zen-server1
ansible zennodes -i hosts/hosts -m shell -a 'sudo cat /etc/systemd/system/zen-node.service' -l zen-server1
ansible zennodes -i hosts/hosts -m shell -a 'sudo systemctl daemon-reload' -l zen-server1
ansible zennodes -i hosts/hosts -m shell -a 'sudo systemctl restart zen-node' -l zen-server1
ansible zennodes -i hosts/hosts -m shell -a 'docker exec zen-node gosu user zen-cli getinfo | grep \"version' -l zen-server1
ansible zennodes -i hosts/hosts -m shell -a 'sudo systemctl restart zen-secnodetracker' -l zen-server1
ansible zennodes -i hosts/hosts -m shell -a 'docker logs zen-secnodetracker | tail -n 5' -l zen-server1
In case you do not use ansible here are the same scripts which you can execute one by one on the server
docker pull registry.gitlab.com/crypto1/docker-zen-node/zend:latest
sudo sed -i 's@whenlambomoon/zend:[email protected]/crypto1/docker-zen-node/zend:latest@g' /etc/systemd/system/zen-node.service
sudo cat /etc/systemd/system/zen-node.service
sudo systemctl daemon-reload
sudo systemctl restart zen-node
docker exec zen-node gosu user zen-cli getinfo | grep \"version
sudo systemctl restart zen-secnodetracker
docker logs zen-secnodetracker | tail -n 5
Add sudo before docker if you are not in the docker group.
You can also see other docker image tags here (need to log in to see them, not sure if it is a bug): https://gitlab.com/crypto1/docker-zen-node/container_registry/1492098 Those which can be used are:
- latest (which is the latest from ubuntu-16.04 for now)
- ubuntu-16.04-latest (you can use this if you do not want to be upgraded to ubuntu 18.04 and 20.04 image later)
- ubuntu-16.04-v2.0.22 (use this if you do not like that some changes could bring down your nodes)
- ubuntu-18.04-latest (not tested yet, but the same as for ubuntu 16.04)
- ubuntu-18.04-v2.0.22
I have not yet tested ubuntu-18.04 images so use at your own risk. And image for ubuntu-20.04 had some issue and I did not have time to figure out what was wrong.
Good luck!