mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 04:31:21 -03:30
update docker-compose build, resolves #1377
This commit is contained in:
parent
bf5db9cf83
commit
097fba690b
@ -6,7 +6,6 @@ tower:
|
||||
links:
|
||||
- postgres
|
||||
- redis
|
||||
- mongo
|
||||
- graphite
|
||||
volumes:
|
||||
- ../:/tower_devel
|
||||
@ -18,17 +17,6 @@ redis:
|
||||
image: redis:3.0.1
|
||||
# ports:
|
||||
# - 6379:6379
|
||||
mongo:
|
||||
image: mongo:3.0
|
||||
# ports:
|
||||
# - 27017:27017
|
||||
dockerui:
|
||||
image: dockerui/dockerui
|
||||
ports:
|
||||
- "9000:9000"
|
||||
privileged: true
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
graphite:
|
||||
image: hopsoft/graphite-statsd
|
||||
ports:
|
||||
|
||||
@ -8,7 +8,7 @@ RUN apt-get update && apt-get install -y software-properties-common python-softw
|
||||
RUN add-apt-repository -y ppa:chris-lea/redis-server; add-apt-repository -y ppa:chris-lea/zeromq; add-apt-repository -y ppa:chris-lea/node.js; add-apt-repository -y ppa:ansible/ansible; add-apt-repository -y ppa:jal233/proot;
|
||||
RUN curl -sL https://deb.nodesource.com/setup_0.12 | bash -
|
||||
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 && apt-key adv --fetch-keys http://www.postgresql.org/media/keys/ACCC4CF8.asc
|
||||
RUN echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.0.list && echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" | tee /etc/apt/sources.list.d/postgres-9.4.list
|
||||
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" | tee /etc/apt/sources.list.d/postgres-9.4.list
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y openssh-server ansible mg vim tmux git mercurial subversion python-dev python-psycopg2 make postgresql-client libpq-dev nodejs python-psutil libxml2-dev libxslt-dev lib32z1-dev libsasl2-dev libldap2-dev libffi-dev libzmq-dev proot python-pip libxmlsec1-dev swig redis-server && rm -rf /var/lib/apt/lists/*
|
||||
RUN pip install flake8
|
||||
|
||||
@ -4,7 +4,6 @@ set +x
|
||||
# Wait for the databases to come up
|
||||
ansible -i "127.0.0.1," -c local -v -m wait_for -a "host=postgres port=5432" all
|
||||
ansible -i "127.0.0.1," -c local -v -m wait_for -a "host=redis port=6379" all
|
||||
ansible -i "127.0.0.1," -c local -v -m wait_for -a "host=mongo port=27017" all
|
||||
|
||||
# In case Tower in the container wants to connect to itself, use "docker exec" to attach to the container otherwise
|
||||
/etc/init.d/ssh start
|
||||
|
||||
@ -3,7 +3,6 @@
|
||||
/etc/init.d/ssh start
|
||||
/etc/init.d/postgresql start
|
||||
/etc/init.d/redis-server start
|
||||
nohup mongod &
|
||||
if ! [ -d "/tower_devel/awx/lib/site-packages" ]; then
|
||||
ln -s /tower/awx/lib/site-packages /tower_devel/awx/lib/site-packages
|
||||
fi
|
||||
|
||||
@ -2,7 +2,6 @@
|
||||
|
||||
/etc/init.d/postgresql start
|
||||
/etc/init.d/redis-server start
|
||||
nohup mongod --smallfiles &
|
||||
|
||||
(cd /tower_devel && make server &&
|
||||
/bin/bash)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user