mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
Merge pull request #279 from chrismeyersfsu/fix-docker_ssh
added ssh to docker env
This commit is contained in:
commit
11620f1a2c
@ -10,7 +10,7 @@ RUN add-apt-repository -y ppa:chris-lea/redis-server; add-apt-repository -y ppa:
|
||||
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
|
||||
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
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y ansible mg vim tmux git mercurial subversion python-dev python-pip libyaml-dev python-yaml python-paramiko python-jinja2 make postgresql python-psycopg2 python-ldap nodejs redis-server python-gevent libzmq3 python-zmq python-netifaces mongodb-org python-psutil && rm -rf /var/lib/apt/lists/*
|
||||
RUN apt-get install -y openssh-server ansible mg vim tmux git mercurial subversion python-dev python-pip libyaml-dev python-yaml python-paramiko python-jinja2 make postgresql python-psycopg2 python-ldap nodejs redis-server python-gevent libzmq3 python-zmq python-netifaces mongodb-org python-psutil && rm -rf /var/lib/apt/lists/*
|
||||
RUN git clone http://d7f73f8614295715a4777bf15f46d0d486ad0e21:x-oauth-basic@github.com/ansible/ansible-commander.git tower
|
||||
RUN pip install Django==1.6.7 django-devserver django-debug-toolbar django-jenkins ipython pymongo==2.8 mongoengine
|
||||
RUN cd /tower ; make develop
|
||||
@ -26,5 +26,5 @@ RUN /etc/init.d/postgresql start; cd /tower ; make migrate ; make init ; /etc/in
|
||||
ADD start_everything.sh /start_everything.sh
|
||||
ADD start_development.sh /start_development.sh
|
||||
|
||||
EXPOSE 8013 8080 27017
|
||||
EXPOSE 8013 8080 27017 22
|
||||
CMD /start_development.sh
|
||||
|
@ -1,2 +1,2 @@
|
||||
sudo docker build --no-cache=true --rm=true -t ansible/tower_devel:latest .
|
||||
sudo docker run --name tower_test -it --memory="4g" --cpuset="0,1" -v /home/meyers/ansible/:/tower_devel -p 8013:8013 -p 8080:8080 -p 27017:27017 ansible/tower_devel
|
||||
sudo docker run --name tower_test -it --memory="4g" --cpuset="0,1" -v /home/meyers/ansible/:/tower_devel -p 8013:8013 -p 8080:8080 -p 27017:27017 -p 2222:22 ansible/tower_devel
|
||||
|
@ -1,5 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
/etc/init.d/ssh start
|
||||
/etc/init.d/postgresql start
|
||||
/etc/init.d/redis-server start
|
||||
nohup mongod &
|
||||
|
Loading…
Reference in New Issue
Block a user