mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 14:57:39 -02:30
Update AWX images to CentOS 8
This commit is contained in:
@@ -1,75 +1,57 @@
|
||||
FROM centos:7
|
||||
FROM centos:8
|
||||
|
||||
USER root
|
||||
|
||||
ADD ansible.repo /etc/yum.repos.d/ansible.repo
|
||||
ADD RPM-GPG-KEY-ansible-release /etc/pki/rpm-gpg/RPM-GPG-KEY-ansible-release
|
||||
|
||||
|
||||
# add rhscl repo for rh-postgresql-devel
|
||||
RUN yum -y install centos-release-scl
|
||||
RUN yum-config-manager --enable rhel-server-rhscl-7-rpms
|
||||
|
||||
RUN yum -y update && yum -y install epel-release && yum -y install https://centos7.iuscommunity.org/ius-release.rpm
|
||||
|
||||
# sync with tools/docker-compose/Dockerfile
|
||||
RUN yum -y install acl \
|
||||
# sync with installer/roles/image_build/templates/Dockerfile.j2
|
||||
RUN dnf -y update && \
|
||||
dnf -y install epel-release 'dnf-command(config-manager)' && \
|
||||
dnf module -y enable 'postgresql:10' && \
|
||||
dnf config-manager --set-enabled PowerTools && \
|
||||
dnf -y install acl \
|
||||
ansible \
|
||||
bubblewrap \
|
||||
curl \
|
||||
cyrus-sasl \
|
||||
cyrus-sasl-devel \
|
||||
gcc \
|
||||
gcc-c++ \
|
||||
git2u \
|
||||
git2u-core \
|
||||
krb5-devel \
|
||||
krb5-libs \
|
||||
git-core \
|
||||
krb5-workstation \
|
||||
libcurl-devel \
|
||||
libffi-devel \
|
||||
libselinux-python \
|
||||
libstdc++.so.6 \
|
||||
libtool-ltdl-devel \
|
||||
libxml2-devel \
|
||||
libxslt-devel \
|
||||
libcgroup-tools \
|
||||
make \
|
||||
mercurial \
|
||||
mg \
|
||||
nginx \
|
||||
nodejs \
|
||||
nss \
|
||||
openldap-devel \
|
||||
openssh-server \
|
||||
rh-postgresql10-postgresql-devel \
|
||||
rh-postgresql10-postgresql-server-syspaths \
|
||||
scl-utils-build \
|
||||
scl-utils \
|
||||
python-devel \
|
||||
python-pip \
|
||||
python-psutil \
|
||||
python-psycopg2 \
|
||||
python-setuptools \
|
||||
python36-devel \
|
||||
python36-setuptools \
|
||||
patch \
|
||||
@postgresql:10 \
|
||||
postgresql-devel \
|
||||
python3-devel \
|
||||
python3-libselinux \
|
||||
python3-pip \
|
||||
python3-setuptools \
|
||||
rsync \
|
||||
setools-libs \
|
||||
subversion \
|
||||
sudo \
|
||||
swig \
|
||||
tmux \
|
||||
unzip \
|
||||
vim \
|
||||
vim-minimal \
|
||||
xmlsec1 \
|
||||
xmlsec1-devel \
|
||||
xmlsec1-openssl \
|
||||
xmlsec1-openssl-devel \
|
||||
yum-utils
|
||||
dnf-utils
|
||||
|
||||
ADD https://github.com/krallin/tini/releases/download/v0.14.0/tini /tini
|
||||
RUN chmod +x /tini
|
||||
|
||||
RUN python3 -m ensurepip && pip3 install virtualenv
|
||||
RUN pip install supervisor
|
||||
RUN pip3 install supervisor
|
||||
|
||||
ADD Makefile /tmp/Makefile
|
||||
RUN mkdir /tmp/requirements
|
||||
@@ -80,30 +62,19 @@ ADD requirements/requirements_ansible.txt \
|
||||
requirements/requirements_tower_uninstall.txt \
|
||||
requirements/requirements_git.txt \
|
||||
/tmp/requirements/
|
||||
RUN scl enable rh-postgresql10 'cd /tmp && VENV_BASE="/var/lib/awx/venv" make requirements'
|
||||
RUN cd /tmp && VENV_BASE="/var/lib/awx/venv" make requirements_awx requirements_ansible_py3
|
||||
|
||||
RUN yum -y remove cyrus-sasl-devel \
|
||||
RUN dnf -y remove *-devel \
|
||||
gcc \
|
||||
gcc-c++ \
|
||||
krb5-devel \
|
||||
libtool-ltdl-devel \
|
||||
libxml2-devel \
|
||||
libxslt-devel \
|
||||
openldap-devel \
|
||||
rh-postgresql10-postgresql-devel \
|
||||
python-devel \
|
||||
python36-devel \
|
||||
nodejs \
|
||||
xmlsec1-devel \
|
||||
xmlsec1-openssl-devel
|
||||
nodejs
|
||||
|
||||
# makes postgres available for data migrations when upgrading
|
||||
RUN export PATH=/usr/pgsql-10/bin:$PATH
|
||||
|
||||
RUN yum -y clean all
|
||||
RUN dnf -y clean all
|
||||
RUN rm -rf /root/.cache
|
||||
|
||||
RUN localedef -c -i en_US -f UTF-8 en_US.UTF-8
|
||||
ENV LANG en_US.UTF-8
|
||||
ENV LANGUAGE en_US:en
|
||||
ENV LC_ALL en_US.UTF-8
|
||||
@@ -131,7 +102,7 @@ RUN cd /usr/local/bin && \
|
||||
tar -xz --strip-components=1 --wildcards --no-anchored 'oc'
|
||||
|
||||
ADD google-cloud-sdk.repo /etc/yum.repos.d/
|
||||
RUN yum install -y kubectl
|
||||
RUN dnf install -y kubectl
|
||||
|
||||
RUN find /var/lib/awx -not -path '/var/lib/awx/venv*' | xargs chgrp root
|
||||
RUN find /var/lib/awx -not -path '/var/lib/awx/venv*' | xargs chmod g+w
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
FROM {{ web_image }}:{{ awx_version }}
|
||||
USER 0
|
||||
RUN sudo yum -y remove nginx
|
||||
RUN sudo dnf -y remove nginx
|
||||
USER 1000
|
||||
EXPOSE 8052
|
||||
CMD /usr/bin/launch_awx_task.sh
|
||||
|
||||
Reference in New Issue
Block a user