35 lines
1 KiB
Markdown
35 lines
1 KiB
Markdown
to build and upload the builder to quay
|
|
|
|
```
|
|
curl -s https://get.docker.io/ubuntu/ | sudo sh
|
|
sudo apt-get update && sudo apt-get install -y git
|
|
git clone git clone https://bitbucket.org/yackob03/quay.git
|
|
cd quay
|
|
rm Dockerfile
|
|
ln -s Dockerfile.buildworker Dockerfile
|
|
sudo docker build -t quay.io/quay/builder .
|
|
sudo docker push quay.io/quay/builder
|
|
```
|
|
|
|
to run the code from a fresh 14.04 server:
|
|
|
|
```
|
|
sudo apt-get update && sudo apt-get install -y git lxc linux-image-extra-`uname -r`
|
|
curl -s https://get.docker.io/ubuntu/ | sudo sh
|
|
git clone https://github.com/DevTable/gantryd.git
|
|
cd gantryd
|
|
cat requirements.system | xargs sudo apt-get install -y
|
|
virtualenv --distribute venv
|
|
venv/bin/pip install -r requirements.txt
|
|
sudo docker login -p 9Y1PX7D3IE4KPSGCIALH17EM5V3ZTMP8CNNHJNXAQ2NJGAS48BDH8J1PUOZ869ML -u 'quay+deploy' -e notused quay.io
|
|
```
|
|
|
|
start the worker
|
|
|
|
```
|
|
cd ~
|
|
git clone https://bitbucket.org/yackob03/quayconfig.git
|
|
sudo docker pull quay.io/quay/builder
|
|
cd ~/gantryd
|
|
sudo venv/bin/python gantry.py ../quayconfig/production/gantry.json update builder
|
|
```
|