Changeset View
Changeset View
Standalone View
Standalone View
contrib/gitian/provisioner.sh
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | |||||
wget http://archive.ubuntu.com/ubuntu/pool/universe/v/vm-builder/vm-builder_0.12.4+bzr494.orig.tar.gz | wget http://archive.ubuntu.com/ubuntu/pool/universe/v/vm-builder/vm-builder_0.12.4+bzr494.orig.tar.gz | ||||
echo "76cbf8c52c391160b2641e7120dbade5afded713afaa6032f733a261f13e6a8e vm-builder_0.12.4+bzr494.orig.tar.gz" | sha256sum -c | echo "76cbf8c52c391160b2641e7120dbade5afded713afaa6032f733a261f13e6a8e vm-builder_0.12.4+bzr494.orig.tar.gz" | sha256sum -c | ||||
# (verification -- must return OK) | # (verification -- must return OK) | ||||
tar -zxvf vm-builder_0.12.4+bzr494.orig.tar.gz | tar -zxvf vm-builder_0.12.4+bzr494.orig.tar.gz | ||||
cd vm-builder-0.12.4+bzr494 | cd vm-builder-0.12.4+bzr494 | ||||
sudo python setup.py install | sudo python setup.py install | ||||
cd .. | cd .. | ||||
## Install Gitian | |||||
git clone https://github.com/devrandom/gitian-builder.git | |||||
cd gitian-builder | |||||
git config --global user.email "vagrant@vagrant.com" | git config --global user.email "vagrant@vagrant.com" | ||||
git config --global user.name "vagrant" | git config --global user.name "vagrant" | ||||
chown -R ${BUILDUSER}:${BUILDUSER} /home/${BUILDUSER} | chown -R ${BUILDUSER}:${BUILDUSER} /home/${BUILDUSER} | ||||
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" | echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" | ||||
echo "!!! Provisioning Complete !!!!" | echo "!!! Provisioning Complete !!!!" | ||||
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" | echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" | ||||
echo | echo | ||||
echo "As the user ${BUILDUSER} run the following commands to produce a linux build:" | echo "As the user ${BUILDUSER} run the following commands to produce a linux build:" | ||||
echo "export COMMIT=v0.18.3" | echo "export COMMIT=v0.18.3" | ||||
echo "export URL=https://github.com/Bitcoin-ABC/bitcoin-abc.git" | echo "export URL=https://github.com/Bitcoin-ABC/bitcoin-abc.git" | ||||
echo "cd gitian-builder" | echo "cd contrib/gitian-builder" | ||||
echo "./bin/make-base-vm --lxc --distro debian --suite stretch --arch amd64" | echo "./bin/make-base-vm --lxc --distro debian --suite stretch --arch amd64" | ||||
echo "./bin/gbuild --commit bitcoin=\${COMMIT} --url bitcoin=\${URL} /vagrant/contrib/gitian-descriptors/gitian-linux.yml" | echo "./bin/gbuild --commit bitcoin=\${COMMIT} --url bitcoin=\${URL} /vagrant/contrib/gitian-descriptors/gitian-linux.yml" |