2014-04-15 14:27:14 -04:00
|
|
|
to build and upload quay to quay:
|
|
|
|
|
|
|
|
```
|
|
|
|
curl -s https://get.docker.io/ubuntu/ | sudo sh
|
2014-04-17 13:04:35 -04:00
|
|
|
sudo apt-get update && sudo apt-get install -y git
|
2014-04-15 14:27:14 -04:00
|
|
|
git clone git clone https://bitbucket.org/yackob03/quay.git
|
|
|
|
cd quay
|
2014-05-16 18:31:24 -04:00
|
|
|
rm Dockerfile
|
|
|
|
ln -s Dockerfile.web Dockerfile
|
2014-04-15 14:27:14 -04:00
|
|
|
sudo docker build -t quay.io/quay/quay .
|
|
|
|
sudo docker push quay.io/quay/quay
|
|
|
|
```
|
|
|
|
|
2013-10-11 00:57:27 -04:00
|
|
|
to prepare a new host:
|
|
|
|
|
|
|
|
```
|
2014-04-10 18:30:09 -04:00
|
|
|
curl -s https://get.docker.io/ubuntu/ | sudo sh
|
2014-04-17 13:04:35 -04: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
|
|
|
|
sudo docker login -p 9Y1PX7D3IE4KPSGCIALH17EM5V3ZTMP8CNNHJNXAQ2NJGAS48BDH8J1PUOZ869ML -u 'quay+deploy' -e notused quay.io
|
2013-10-11 00:57:27 -04:00
|
|
|
```
|
|
|
|
|
2014-04-10 18:30:09 -04:00
|
|
|
start the quay processes:
|
2013-10-02 20:42:12 +00:00
|
|
|
|
2013-10-11 00:57:27 -04:00
|
|
|
```
|
2014-04-17 13:04:35 -04:00
|
|
|
cd ~
|
2014-04-15 15:37:22 -04:00
|
|
|
git clone https://bitbucket.org/yackob03/quayconfig.git
|
2014-04-10 18:30:09 -04:00
|
|
|
sudo docker pull quay.io/quay/quay
|
|
|
|
sudo mkdir -p /mnt/logs/
|
2014-04-17 13:04:35 -04:00
|
|
|
cd ~/gantryd
|
|
|
|
sudo venv/bin/python gantry.py ../quayconfig/production/gantry.json update quay
|
2013-10-18 15:28:16 -04:00
|
|
|
```
|
|
|
|
|
2014-04-11 13:32:45 -04:00
|
|
|
start the log shipper (DEPRECATED):
|
2014-01-31 19:21:05 -05:00
|
|
|
|
|
|
|
```
|
|
|
|
sudo docker pull quay.io/quay/logstash
|
|
|
|
sudo docker run -d -e REDIS_PORT_6379_TCP_ADDR=logs.quay.io -v /mnt/logs:/mnt/logs quay.io/quay/logstash quay.conf
|
|
|
|
```
|
|
|
|
|
2013-11-07 17:24:01 -05:00
|
|
|
running the tests:
|
|
|
|
|
|
|
|
```
|
2014-04-10 15:20:16 -04:00
|
|
|
TEST=true python -m unittest discover
|
2013-11-07 17:24:01 -05:00
|
|
|
```
|
2013-11-07 22:46:11 -05:00
|
|
|
|
2014-02-26 13:45:49 -05:00
|
|
|
running the tests with coverage (requires coverage module):
|
|
|
|
|
|
|
|
```
|
2014-04-10 15:20:16 -04:00
|
|
|
TEST=true coverage run -m unittest discover
|
2014-02-26 13:45:49 -05:00
|
|
|
coverage html
|
|
|
|
```
|
|
|
|
|
2013-11-07 22:46:11 -05:00
|
|
|
generating screenshots:
|
|
|
|
|
|
|
|
```
|
|
|
|
cd screenshots
|
|
|
|
casperjs screenshots.js --d
|
|
|
|
```
|