2016-08-24 23:23:47 +03:00
FROM centos:7
2015-09-10 00:16:35 +03:00
2016-08-24 23:23:47 +03:00
# RUN locale-gen en_US.UTF-8
# ENV LANG en_US.UTF-8
# ENV LANGUAGE en_US:en
# ENV LC_ALL en_US.UTF-8
ADD Makefile /tmp/Makefile
RUN mkdir /tmp/requirements
ADD requirements/requirements.txt requirements/requirements_ansible.txt requirements/requirements_dev.txt requirements/requirements_jenkins.txt /tmp/requirements/
RUN yum -y update && yum -y install curl epel-release
RUN curl --silent --location https://rpm.nodesource.com/setup_6.x | bash -
2016-09-29 17:37:18 +03:00
RUN yum -y localinstall http://download.postgresql.org/pub/repos/yum/9.4/redhat/rhel-6-x86_64/pgdg-centos94-9.4-3.noarch.rpm
2016-08-24 23:23:47 +03:00
ADD tools/docker-compose/proot.repo /etc/yum.repos.d/proot.repo
2016-10-03 17:39:59 +03:00
RUN yum -y update && yum -y install openssh-server ansible mg vim tmux git mercurial subversion python-devel python-psycopg2 make postgresql postgresql-devel nodejs python-psutil libxml2-devel libxslt-devel libstdc++.so.6 gcc cyrus-sasl-devel cyrus-sasl openldap-devel libffi-devel zeromq-devel proot python-pip xmlsec1-devel swig krb5-devel xmlsec1-openssl xmlsec1 xmlsec1-openssl-devel libtool-ltdl-devel rabbitmq-server
2016-08-29 16:50:57 +03:00
RUN pip install flake8 pytest = = 2.9.2 pytest-pythonpath pytest-django pytest-cov pytest-mock dateutils django-debug-toolbar= = 1.4 pyflakes = = 1.0.0 virtualenv
2015-09-10 00:16:35 +03:00
RUN /usr/bin/ssh-keygen -q -t rsa -N "" -f /root/.ssh/id_rsa
RUN mkdir -p /etc/tower
RUN mkdir -p /data/db
2016-08-24 23:23:47 +03:00
ADD tools/docker-compose/license /etc/tower/license
2015-09-10 00:16:35 +03:00
RUN pip2 install honcho
2016-08-24 23:23:47 +03:00
RUN curl -LO https://github.com/Yelp/dumb-init/releases/download/v1.1.3/dumb-init_1.1.3_amd64 && chmod +x ./dumb-init_1.1.3_amd64 && mv ./dumb-init_1.1.3_amd64 /usr/bin/dumb-init
ADD tools/docker-compose/ansible-tower.egg-link /tmp/ansible-tower.egg-link
ADD tools/docker-compose/tower-manage /usr/local/bin/tower-manage
ADD tools/docker-compose/awx-manage /usr/local/bin/awx-manage
ADD tools/docker-compose/ansible_tower.egg-info /tmp/ansible_tower.egg-info
2016-04-06 19:24:19 +03:00
RUN ln -s /tower_devel/tools/docker-compose/start_development.sh /start_development.sh
2016-08-24 23:23:47 +03:00
WORKDIR /tmp
RUN SWIG_FEATURES = "-cpperraswarn -includeall -D__`uname -m`__ -I/usr/include/openssl" VENV_BASE = "/venv" make requirements_dev
2016-08-25 18:57:31 +03:00
WORKDIR /
2016-10-14 08:43:14 +03:00
EXPOSE 8050 8051 8080 22
2016-01-26 00:58:04 +03:00
ENTRYPOINT [ "/usr/bin/dumb-init" ]
2015-09-10 00:16:35 +03:00
CMD /start_development.sh