docker exec -it <container-name> /bin/bash
for i in `ls /opt/docker/examples/*.rho | sort -R | tail -n 3`; do echo "running deploy with ${i}"; /opt/docker/bin/rnode deploy --from "0x1" --phlo-limit 0 --phlo-price 0 --nonce 0 ${i}; done
for i in `ls /opt/docker/examples/tut-hello.rho | sort -R | tail -n 3`; do echo "running deploy with ${i}"; /opt/docker/bin/rnode deploy --from "0x1" --phlo-limit 0 --phlo-price 0 --nonce 0 ${i}; done
Node Test testing branch
sudo docker run -u root --network host -it rchain/rnode:testing run -b rnode://f4f20286feebc89d36d11b9e6ad726b6dd3d1490@52.119.8.51:40400 --validator-private-key 901b1f0837b7e891d7c2ea0047f502fd95637e450b0226c39a97d68dd951c8a7
Dev
sudo docker run -u root --network host -it rchain/rnode:dev run --validator-private-key 901b1f0837b7e891d7c2ea0047f502fd95637e450b0226c39a97d68dd951c8a7 -b rnode://c61769b39d368cbcbc9499634e030386c79d5b02@52.119.8.108:40400 -p 5252
Master
sudo docker run -u root --network host -it rchain/rnode:master run --validator-private-key 901b1f0837b7e891d7c2ea0047f502fd95637e450b0226c39a97d68dd951c8a7 -b rnode://de6eed5d00cf080fc587eeb412cb31a75fd10358@52.119.8.109:40400
bootstrap-release
sudo docker run -u root --network host -it rchain/rnode:v0.5.3 run --validator-private-key 901b1f0837b7e891d7c2ea0047f502fd95637e450b0226c39a97d68dd951c8a7 -b rnode://baa289f8b32ce8009753bbffcd2c6814aef0da9b@52.119.8.52:40400
DEPLOY/PROPOSE USING DEV BOOTSTRAP and DOCKER
You will need your validator-private-key from here https://docs.google.com/spreadsheets/d/18merD3OzaDk7nmxQ78SUZBzWLbxA-aOnmcdxpXrp_U0
docker pull rnode/rchain:dev
sudo docker run -u root --network host -it rchain/rnode:dev run -b rnode://c61769b39d368cbcbc9499634e030386c79d5b02@52.119.8.108:40400 --validator-private-key <validator-private-key>
sudo docker ps -q | head -n 1
sudo docker exec -it <container-name> /bin/bash
for i in `ls /opt/docker/examples/*.rho | sort -R | tail -n 3`; do echo "running deploy with ${i}"; /opt/docker/bin/rnode deploy ${i}; done
/opt/docker/bin/rnode propose
/opt/docker/bin/rnode show-blocks
/opt/docker/bin/rnode show-block <hash>
nano helloworldfromjeremy.rho
new helloWorld in { contract helloWorld(@name) = { new ack in { @"stdoutAck"!("Hello, ", *ack) | for (_ <- ack) { @"stdoutAck"!(name, *ack) | for (_ <- ack) { @"stdout"!("\n") } } } } | helloWorld!("JeremyBusk") }
MASTER
https://repo.pyr8.io/rchain/downloads/master/
sudo -u rnode rnode run --data_dir /var/lib/rnode -b rnode://acd0b05a971c243817a0cfd469f5d1a238c60294@52.119.8.109:40400
docker pull rnode/rchain:master
sudo docker run -u root --network host -it rchain/rnode:master run -b rnode://acd0b05a971c243817a0cfd469f5d1a238c60294@52.119.8.109:40400
DEV
https://repo.pyr8.io/rchain/downloads/dev/
sudo -u rnode rnode run --data_dir /var/lib/rnode -b rnode://c61769b39d368cbcbc9499634e030386c79d5b02@52.119.8.108:40400
docker pull rnode/rchain:dev
sudo docker run -u root --network host -it rchain/rnode:dev run -b rnode://c61769b39d368cbcbc9499634e030386c79d5b02@52.119.8.108:40400
With Validator
sudo docker run -u root --network host -it rchain/rnode:dev run -b rnode://c61769b39d368cbcbc9499634e030386c79d5b02@52.119.8.108:40400 --validator-private-key 901b1f0837b7e891d7c2ea0047f502fd95637e450b0226c39a97d68dd951c8a7
validator and port
sudo docker run -u root --network host -it rchain/rnode:dev run -b rnode://c61769b39d368cbcbc9499634e030386c79d5b02@52.119.8.108:40400 --validator-private-key 901b1f0837b7e891d7c2ea0047f502fd95637e450b0226c39a97d68dd951c8a7 -p 7777