mirror of
https://github.com/ansible/awx.git
synced 2026-02-19 04:00:06 -03:30
Base the task container image on the web image
Remove DEBUG from the image
This commit is contained in:
@@ -32,13 +32,15 @@ RUN mkdir -p /var/log/tower
|
|||||||
RUN mkdir -p /etc/tower
|
RUN mkdir -p /etc/tower
|
||||||
RUN echo "awxsecret" > /etc/tower/SECRET_KEY
|
RUN echo "awxsecret" > /etc/tower/SECRET_KEY
|
||||||
RUN VENV_BASE=/var/lib/awx/venv make requirements_ansible && VENV_BASE=/var/lib/awx/venv make requirements_awx
|
RUN VENV_BASE=/var/lib/awx/venv make requirements_ansible && VENV_BASE=/var/lib/awx/venv make requirements_awx
|
||||||
COPY dist/{{ tar }} /tmp/{{ tar }}
|
COPY dist/awx-3.2.0.3953.tar.gz /tmp/awx-3.2.0.3953.tar.gz
|
||||||
RUN OFFICIAL=yes pip install /tmp/{{ tar }}
|
RUN OFFICIAL=yes pip install /tmp/awx-3.2.0.3953.tar.gz
|
||||||
|
|
||||||
RUN echo "{{ version }}" > /var/lib/awx/.tower_version
|
RUN echo "3.2.0.3953" > /var/lib/awx/.tower_version
|
||||||
ADD installer/openshift/nginx.conf /etc/nginx/nginx.conf
|
ADD installer/openshift/nginx.conf /etc/nginx/nginx.conf
|
||||||
ADD installer/openshift/supervisor.conf /supervisor.conf
|
ADD installer/openshift/supervisor.conf /supervisor.conf
|
||||||
|
ADD installer/openshift/supervisor_task.conf /supervisor_task.conf
|
||||||
ADD installer/openshift/launch_awx.sh /usr/bin/launch_awx.sh
|
ADD installer/openshift/launch_awx.sh /usr/bin/launch_awx.sh
|
||||||
|
ADD installer/openshift/launch_awx_task.sh /usr/bin/launch_awx_task.sh
|
||||||
ADD installer/openshift/settings.py /etc/tower/settings.py
|
ADD installer/openshift/settings.py /etc/tower/settings.py
|
||||||
RUN yum -y remove gcc postgresql-devel libxml2-devel libxslt-devel cyrus-sasl-devel openldap-devel xmlsec1-devel krb5-devel xmlsec1-openssl-devel libtool-ltdl-devel gcc-c++ python-devel && yum -y clean all
|
RUN yum -y remove gcc postgresql-devel libxml2-devel libxslt-devel cyrus-sasl-devel openldap-devel xmlsec1-devel krb5-devel xmlsec1-openssl-devel libtool-ltdl-devel gcc-c++ python-devel && yum -y clean all
|
||||||
RUN rm -rf /root/.cache
|
RUN rm -rf /root/.cache
|
||||||
|
|||||||
@@ -1,53 +1,6 @@
|
|||||||
FROM centos:7
|
FROM awx_web
|
||||||
|
USER 0
|
||||||
# Do we need this?
|
RUN sudo yum -y remove nginx
|
||||||
#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
|
|
||||||
|
|
||||||
USER root
|
|
||||||
|
|
||||||
# Init System
|
|
||||||
ADD https://github.com/krallin/tini/releases/download/v0.14.0/tini /tini
|
|
||||||
RUN chmod +x /tini
|
|
||||||
|
|
||||||
# AWX Dependencies Install
|
|
||||||
ADD Makefile /tmp/Makefile
|
|
||||||
RUN mkdir /tmp/requirements
|
|
||||||
ADD requirements/requirements_ansible.txt \
|
|
||||||
requirements/requirements_ansible_uninstall.txt \
|
|
||||||
requirements/requirements_ansible_git.txt \
|
|
||||||
requirements/requirements.txt \
|
|
||||||
requirements/requirements_tower_uninstall.txt \
|
|
||||||
requirements/requirements_git.txt \
|
|
||||||
/tmp/requirements/
|
|
||||||
|
|
||||||
# OS Dependencies
|
|
||||||
RUN yum -y install epel-release && yum -y localinstall http://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm && yum -y update && yum -y install ansible git curl python-psycopg2 python-pip python-setuptools libselinux-python setools-libs yum-utils sudo acl make postgresql-devel python-psutil libxml2-devel libxslt-devel libstdc++.so.6 gcc cyrus-sasl-devel cyrus-sasl openldap-devel libffi-devel python-pip xmlsec1-devel swig krb5-devel xmlsec1-openssl xmlsec1 xmlsec1-openssl-devel libtool-ltdl-devel bubblewrap gcc-c++ python-devel
|
|
||||||
RUN pip install virtualenv supervisor
|
|
||||||
WORKDIR /tmp
|
|
||||||
RUN mkdir -p /var/lib/awx
|
|
||||||
|
|
||||||
RUN mkdir -p /var/log/tower
|
|
||||||
RUN mkdir -p /etc/tower
|
|
||||||
RUN mkdir -p /var/lib/awx/public/static
|
|
||||||
RUN echo "awxsecret" > /etc/tower/SECRET_KEY
|
|
||||||
RUN VENV_BASE=/var/lib/awx/venv make requirements_ansible && VENV_BASE=/var/lib/awx/venv make requirements_awx
|
|
||||||
COPY dist/{{ tar }} /tmp/{{ tar }}
|
|
||||||
RUN OFFICIAL=yes pip install /tmp/{{ tar }}
|
|
||||||
|
|
||||||
RUN echo "{{ version }}" > /var/lib/awx/.tower_version
|
|
||||||
ADD installer/openshift/nginx.conf /etc/nginx/nginx.conf
|
|
||||||
ADD installer/openshift/supervisor_task.conf /supervisor_task.conf
|
|
||||||
ADD installer/openshift/launch_awx_task.sh /usr/bin/launch_awx_task.sh
|
|
||||||
ADD installer/openshift/settings.py /etc/tower/settings.py
|
|
||||||
RUN yum -y remove gcc postgresql-devel libxml2-devel libxslt-devel cyrus-sasl-devel openldap-devel xmlsec1-devel krb5-devel xmlsec1-openssl-devel libtool-ltdl-devel gcc-c++ python-devel && yum -y clean all
|
|
||||||
RUN rm -rf /root/.cache
|
|
||||||
RUN chmod g+w /etc/passwd
|
|
||||||
RUN chgrp -Rf root /var/lib/awx && chmod -Rf g+w /var/lib/awx
|
|
||||||
USER 1000
|
USER 1000
|
||||||
EXPOSE 80 443
|
EXPOSE 8052
|
||||||
WORKDIR /var/lib/awx
|
|
||||||
ENTRYPOINT ["/tini", "--"]
|
|
||||||
CMD /usr/bin/launch_awx_task.sh
|
CMD /usr/bin/launch_awx_task.sh
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ data:
|
|||||||
import os
|
import os
|
||||||
import socket
|
import socket
|
||||||
ADMINS = ()
|
ADMINS = ()
|
||||||
DEBUG = True
|
|
||||||
|
|
||||||
# Container environments don't like chroots
|
# Container environments don't like chroots
|
||||||
AWX_PROOT_ENABLED = False
|
AWX_PROOT_ENABLED = False
|
||||||
|
|||||||
Reference in New Issue
Block a user