mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
docker container for trough needs a hostname that works from outside the container (since it registers itself in the service registry)
This commit is contained in:
parent
7b5fe4475e
commit
81497088e4
11
.travis.yml
11
.travis.yml
@ -26,11 +26,16 @@ services:
|
|||||||
- docker
|
- docker
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
|
- cat /etc/hosts
|
||||||
- sudo service docker restart ; sleep 10 # https://github.com/travis-ci/travis-ci/issues/4778
|
- sudo service docker restart ; sleep 10 # https://github.com/travis-ci/travis-ci/issues/4778
|
||||||
- docker network create --driver=bridge trough
|
- docker network create --driver=bridge trough
|
||||||
- docker run --detach --network=trough --name=rethinkdb --publish=28015:28015 rethinkdb
|
- docker run --detach --network=trough --host=rethinkdb --name=rethinkdb --publish=28015:28015 rethinkdb
|
||||||
- docker run --detach --network=trough --name=hadoop chalimartines/cdh5-pseudo-distributed
|
- docker run --detach --network=trough --host=hadoop --name=hadoop chalimartines/cdh5-pseudo-distributed
|
||||||
- docker run --detach --network=trough --volume="$PWD/tests/run-trough.sh:/run-trough.sh" --publish=6111:6111 --publish=6112:6112 --publish=6222:6222 --publish=6444:6444 python:3 bash /run-trough.sh
|
- docker run --detach --network=trough --host=trough --volume="$PWD/tests/run-trough.sh:/run-trough.sh" --publish=6111:6111 --publish=6112:6112 --publish=6222:6222 --publish=6444:6444 python:3 bash /run-trough.sh
|
||||||
|
- echo 127.0.0.1 rethinkdb >> /etc/hosts
|
||||||
|
- echo 127.0.0.1 hadoop >> /etc/hosts
|
||||||
|
- echo 127.0.0.1 trough >> /etc/hosts
|
||||||
|
- ping -c2 trough
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install . pytest requests warcio
|
- pip install . pytest requests warcio
|
||||||
|
Loading…
x
Reference in New Issue
Block a user