2014-04-15 18:27:14 +00:00
|
|
|
to build and upload quay to quay:
|
|
|
|
|
|
|
|
```
|
|
|
|
curl -s https://get.docker.io/ubuntu/ | sudo sh
|
2014-04-17 17:04:35 +00:00
|
|
|
sudo apt-get update && sudo apt-get install -y git
|
2014-05-20 22:26:12 +00:00
|
|
|
git clone https://bitbucket.org/yackob03/quay.git
|
2014-04-15 18:27:14 +00:00
|
|
|
cd quay
|
2014-05-16 22:31:24 +00:00
|
|
|
rm Dockerfile
|
|
|
|
ln -s Dockerfile.web Dockerfile
|
2014-04-15 18:27:14 +00:00
|
|
|
sudo docker build -t quay.io/quay/quay .
|
|
|
|
sudo docker push quay.io/quay/quay
|
|
|
|
```
|
|
|
|
|
2013-10-11 04:57:27 +00:00
|
|
|
to prepare a new host:
|
|
|
|
|
2014-05-27 19:19:23 +00:00
|
|
|
Deploy cloud-init script from quayconfig/cloudconfig/webserver.yaml
|
|
|
|
|
|
|
|
or
|
|
|
|
|
|
|
|
|
2013-10-11 04:57:27 +00:00
|
|
|
```
|
2014-04-10 22:30:09 +00:00
|
|
|
curl -s https://get.docker.io/ubuntu/ | sudo sh
|
2014-04-17 17:04:35 +00:00
|
|
|
sudo apt-get update && sudo apt-get install -y git
|
|
|
|
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
|
2014-05-27 19:24:29 +00:00
|
|
|
sudo docker login -u 'quay+deploy' -e notused staging.quay.io
|
2013-10-11 04:57:27 +00:00
|
|
|
```
|
|
|
|
|
2014-04-10 22:30:09 +00:00
|
|
|
start the quay processes:
|
2013-10-02 20:42:12 +00:00
|
|
|
|
2013-10-11 04:57:27 +00:00
|
|
|
```
|
2014-04-17 17:04:35 +00:00
|
|
|
cd ~
|
2014-04-15 19:37:22 +00:00
|
|
|
git clone https://bitbucket.org/yackob03/quayconfig.git
|
2014-05-20 22:26:12 +00:00
|
|
|
sudo docker pull staging.quay.io/quay/quay
|
2014-04-17 17:04:35 +00:00
|
|
|
cd ~/gantryd
|
|
|
|
sudo venv/bin/python gantry.py ../quayconfig/production/gantry.json update quay
|
2013-10-18 19:28:16 +00:00
|
|
|
```
|
|
|
|
|
2014-05-27 19:19:23 +00:00
|
|
|
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 builder from a fresh 14.04 server:
|
|
|
|
|
|
|
|
Deploy cloud-init script from quayconfig/cloudconfig/builder.yaml
|
|
|
|
|
|
|
|
or
|
|
|
|
|
2014-02-01 00:21:05 +00:00
|
|
|
|
|
|
|
```
|
2014-05-27 19:19:23 +00:00
|
|
|
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
|
2014-05-27 19:24:29 +00:00
|
|
|
sudo docker login -u 'quay+deploy' -e notused quay.io
|
2014-05-27 19:19:23 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
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
|
2014-02-01 00:21:05 +00:00
|
|
|
```
|
|
|
|
|
2013-11-07 22:24:01 +00:00
|
|
|
running the tests:
|
|
|
|
|
|
|
|
```
|
2014-04-10 19:20:16 +00:00
|
|
|
TEST=true python -m unittest discover
|
2013-11-07 22:24:01 +00:00
|
|
|
```
|
2013-11-08 03:46:11 +00:00
|
|
|
|
2014-02-26 18:45:49 +00:00
|
|
|
running the tests with coverage (requires coverage module):
|
|
|
|
|
|
|
|
```
|
2014-04-10 19:20:16 +00:00
|
|
|
TEST=true coverage run -m unittest discover
|
2014-02-26 18:45:49 +00:00
|
|
|
coverage html
|
|
|
|
```
|
|
|
|
|
2013-11-08 03:46:11 +00:00
|
|
|
generating screenshots:
|
|
|
|
|
|
|
|
```
|
|
|
|
cd screenshots
|
|
|
|
casperjs screenshots.js --d
|
|
|
|
```
|