mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
docker image python:3 is now using 3.7 and building pyyaml < 3.13 fails yaml/pyyaml#126 also filed pull request to update trough's pyyaml dependency spec internetarchive/trough#20
37 lines
1.3 KiB
Bash
37 lines
1.3 KiB
Bash
#!/bin/bash
|
|
#
|
|
# this is used by .travis.yml
|
|
#
|
|
|
|
set -x
|
|
|
|
pip install git+https://github.com/jkafader/snakebite@feature/python3-version-string
|
|
pip install git+https://github.com/internetarchive/trough.git
|
|
|
|
mkdir /etc/trough
|
|
|
|
# hello docker user-defined bridge networking
|
|
echo '
|
|
HDFS_HOST: hadoop
|
|
RETHINKDB_HOSTS:
|
|
- rethinkdb
|
|
' > /etc/trough/settings.yml
|
|
|
|
sync.py >>/tmp/trough-sync-local.out 2>&1 &
|
|
|
|
sleep 5
|
|
python -c "
|
|
import doublethink
|
|
from trough.settings import settings
|
|
rr = doublethink.Rethinker(settings['RETHINKDB_HOSTS'])
|
|
rr.db('trough_configuration').wait().run()"
|
|
|
|
sync.py --server >>/tmp/trough-sync-server.out 2>&1 &
|
|
uwsgi --http :6222 --master --processes=2 --harakiri=240 --max-requests=50000 --vacuum --die-on-term --wsgi-file /usr/local/bin/writer.py >>/tmp/trough-write.out 2>&1 &
|
|
uwsgi --http :6112 --master --processes=2 --harakiri=20 --max-requests=50000 --vacuum --die-on-term --mount /=trough.wsgi.segment_manager:local >>/tmp/trough-segment-manager-local.out 2>&1 &
|
|
uwsgi --http :6111 --master --processes=2 --harakiri=20 --max-requests=50000 --vacuum --die-on-term --mount /=trough.wsgi.segment_manager:server >>/tmp/trough-segment-manager-server.out 2>&1 &
|
|
uwsgi --http :6444 --master --processes=2 --harakiri=3200 --socket-timeout=3200 --max-requests=50000 --vacuum --die-on-term --wsgi-file /usr/local/bin/reader.py >>/tmp/trough-read.out 2>&1 &
|
|
|
|
wait
|
|
|