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-04-15 18:27:14 +00:00
|
|
|
git clone git clone https://bitbucket.org/yackob03/quay.git
|
|
|
|
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-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
|
|
|
|
sudo docker login -p 9Y1PX7D3IE4KPSGCIALH17EM5V3ZTMP8CNNHJNXAQ2NJGAS48BDH8J1PUOZ869ML -u 'quay+deploy' -e notused 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-04-10 22:30:09 +00:00
|
|
|
sudo docker pull quay.io/quay/quay
|
|
|
|
sudo mkdir -p /mnt/logs/
|
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-04-11 17:32:45 +00:00
|
|
|
start the log shipper (DEPRECATED):
|
2014-02-01 00:21:05 +00: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 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
|
|
|
|
```
|