This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/README.md

60 lines
1.1 KiB
Markdown
Raw Normal View History

to prepare a new host:
```
curl -s https://get.docker.io/ubuntu/ | sudo sh
sudo apt-get update
sudo apt-get install -y git
```
start the quay processes:
```
git clone git clone https://bitbucket.org/yackob03/quayconfig.git
sudo docker pull quay.io/quay/quay
sudo mkdir -p /mnt/logs/
sudo docker run -d -p 80:80 -p 443:443 -v /mnt/logs:/mnt/logs -v `pwd`/quayconfig/production:/conf/stack quay.io/quay/quay
2013-10-18 19:28:16 +00:00
```
start the log shipper:
```
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
```
start the workers (FIXME):
2013-10-18 19:28:16 +00:00
```
STACK=prod python -m workers.diffsworker -D
STACK=prod python -m workers.webhookworker -D
2013-10-18 19:28:16 +00:00
```
2013-10-18 21:52:55 +00:00
bouncing the servers (FIXME):
2013-10-18 21:52:55 +00:00
```
sudo kill -HUP `cat /mnt/logs/nginx.pid`
kill -HUP `cat /mnt/logs/gunicorn.pid`
2013-10-18 21:52:55 +00:00
kill <pids of worker daemons>
restart daemons
```
running the tests:
```
TEST=true python -m unittest discover
```
running the tests with coverage (requires coverage module):
```
TEST=true coverage run -m unittest discover
coverage html
```
generating screenshots:
```
cd screenshots
casperjs screenshots.js --d
```