mirror of
https://github.com/ansible/awx.git
synced 2026-05-13 20:37:39 -02:30
Merge pull request #5152 from shanemcd/centos-8-dev-env
Update dev env to centos:8 Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
2
Makefile
2
Makefile
@@ -196,7 +196,7 @@ requirements_awx_dev:
|
|||||||
|
|
||||||
requirements: requirements_ansible requirements_awx
|
requirements: requirements_ansible requirements_awx
|
||||||
|
|
||||||
requirements_dev: requirements requirements_awx_dev requirements_ansible_dev
|
requirements_dev: requirements_awx requirements_ansible_py3 requirements_awx_dev requirements_ansible_dev
|
||||||
|
|
||||||
requirements_test: requirements
|
requirements_test: requirements
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
FROM centos:7
|
FROM centos:8
|
||||||
|
|
||||||
ARG UID=0
|
ARG UID=0
|
||||||
|
|
||||||
# Add ansible-devel so that we get collections!
|
# Add ansible-devel so that we get collections!
|
||||||
ADD tools/docker-compose/ansible_nightly.repo /etc/yum.repos.d/ansible_nightly.repo
|
ADD tools/docker-compose/ansible_nightly.repo /etc/yum.repos.d/ansible_nightly.repo
|
||||||
|
|
||||||
RUN yum -y update && yum -y install epel-release && \
|
|
||||||
yum -y install https://centos7.iuscommunity.org/ius-release.rpm \
|
|
||||||
yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
|
|
||||||
|
|
||||||
# sync with installer/roles/image_build/templates/Dockerfile.j2
|
# sync with installer/roles/image_build/templates/Dockerfile.j2
|
||||||
RUN yum -y install acl \
|
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 \
|
||||||
alsa-lib \
|
alsa-lib \
|
||||||
ansible \
|
ansible \
|
||||||
atk \
|
atk \
|
||||||
@@ -22,16 +22,13 @@ RUN yum -y install acl \
|
|||||||
gcc \
|
gcc \
|
||||||
gcc-c++ \
|
gcc-c++ \
|
||||||
GConf2 \
|
GConf2 \
|
||||||
git2u \
|
git \
|
||||||
git2u-core \
|
|
||||||
gtk3 \
|
gtk3 \
|
||||||
ipa-gothic-fonts \
|
|
||||||
krb5-devel \
|
krb5-devel \
|
||||||
krb5-libs \
|
krb5-libs \
|
||||||
krb5-workstation \
|
krb5-workstation \
|
||||||
libcurl-devel \
|
libcurl-devel \
|
||||||
libffi-devel \
|
libffi-devel \
|
||||||
libselinux-python \
|
|
||||||
libstdc++.so.6 \
|
libstdc++.so.6 \
|
||||||
libtool-ltdl-devel \
|
libtool-ltdl-devel \
|
||||||
libcgroup-tools \
|
libcgroup-tools \
|
||||||
@@ -47,24 +44,23 @@ RUN yum -y install acl \
|
|||||||
libXtst \
|
libXtst \
|
||||||
make \
|
make \
|
||||||
mercurial \
|
mercurial \
|
||||||
mg \
|
|
||||||
nginx \
|
nginx \
|
||||||
nodejs \
|
nodejs \
|
||||||
|
nss \
|
||||||
openldap-devel \
|
openldap-devel \
|
||||||
openssh-server \
|
openssh-server \
|
||||||
patch \
|
patch \
|
||||||
postgresql10 \
|
@postgresql:10 \
|
||||||
postgresql10-contrib \
|
postgresql-devel \
|
||||||
postgresql10-devel \
|
python3-devel \
|
||||||
python-devel \
|
python3-libselinux \
|
||||||
python-pip \
|
python3-pip \
|
||||||
python-psutil \
|
python3-psutil \
|
||||||
python-psycopg2 \
|
python3-psycopg2 \
|
||||||
python-setuptools \
|
python3-setuptools \
|
||||||
python36-devel \
|
python3-devel \
|
||||||
python36-setuptools \
|
python3-setuptools \
|
||||||
rsync \
|
rsync \
|
||||||
setools-libs \
|
|
||||||
subversion \
|
subversion \
|
||||||
sudo \
|
sudo \
|
||||||
swig \
|
swig \
|
||||||
@@ -81,11 +77,11 @@ RUN yum -y install acl \
|
|||||||
xorg-x11-fonts-misc \
|
xorg-x11-fonts-misc \
|
||||||
xorg-x11-fonts-Type1 \
|
xorg-x11-fonts-Type1 \
|
||||||
xorg-x11-utils \
|
xorg-x11-utils \
|
||||||
yum-utils
|
dnf-utils
|
||||||
|
|
||||||
ENV PATH="/usr/pgsql-10/bin:${PATH}"
|
ENV PATH="/usr/pgsql-10/bin:${PATH}"
|
||||||
|
|
||||||
RUN yum install -y https://github.com/krallin/tini/releases/download/v0.18.0/tini_0.18.0.rpm
|
RUN dnf install -y https://github.com/krallin/tini/releases/download/v0.18.0/tini_0.18.0.rpm
|
||||||
|
|
||||||
RUN /usr/bin/ssh-keygen -q -t rsa -N "" -f /root/.ssh/id_rsa
|
RUN /usr/bin/ssh-keygen -q -t rsa -N "" -f /root/.ssh/id_rsa
|
||||||
RUN mkdir -p /data/db
|
RUN mkdir -p /data/db
|
||||||
@@ -98,7 +94,7 @@ RUN openssl req -nodes -newkey rsa:2048 -keyout /etc/nginx/nginx.key -out /etc/n
|
|||||||
RUN openssl x509 -req -days 365 -in /etc/nginx/nginx.csr -signkey /etc/nginx/nginx.key -out /etc/nginx/nginx.crt
|
RUN openssl x509 -req -days 365 -in /etc/nginx/nginx.csr -signkey /etc/nginx/nginx.key -out /etc/nginx/nginx.crt
|
||||||
|
|
||||||
RUN python3 -m ensurepip && pip3 install virtualenv flake8
|
RUN python3 -m ensurepip && pip3 install virtualenv flake8
|
||||||
RUN pip install supervisor
|
RUN pip3 install supervisor
|
||||||
|
|
||||||
ADD Makefile /tmp/Makefile
|
ADD Makefile /tmp/Makefile
|
||||||
RUN mkdir /tmp/requirements
|
RUN mkdir /tmp/requirements
|
||||||
@@ -117,23 +113,15 @@ RUN cd /tmp && VENV_BASE="/venv" make requirements_dev
|
|||||||
RUN npm install -g n
|
RUN npm install -g n
|
||||||
RUN n 10.15.0
|
RUN n 10.15.0
|
||||||
|
|
||||||
# Install a newer SQLite to make Django happy (centos7 has a really old one,
|
|
||||||
# and we can probably stop doing this in centos8)
|
|
||||||
RUN curl -O "https://sqlite.org/2019/sqlite-autoconf-3290000.tar.gz"
|
|
||||||
RUN tar zxvf sqlite-autoconf-3290000.tar.gz
|
|
||||||
RUN cd sqlite-autoconf-3290000 && ./configure && make && make install
|
|
||||||
RUN mv -f /usr/local/lib/libsqlite3.so.0 /lib64/
|
|
||||||
RUN mv -f /usr/local/lib/libsqlite3.so.0.8.6 /lib64/
|
|
||||||
|
|
||||||
# Install OpenShift CLI
|
# Install OpenShift CLI
|
||||||
RUN cd /usr/local/bin && \
|
RUN cd /usr/local/bin && \
|
||||||
curl -L https://github.com/openshift/origin/releases/download/v3.9.0/openshift-origin-client-tools-v3.9.0-191fece-linux-64bit.tar.gz | \
|
curl -L https://github.com/openshift/origin/releases/download/v3.9.0/openshift-origin-client-tools-v3.9.0-191fece-linux-64bit.tar.gz | \
|
||||||
tar -xz --strip-components=1 --wildcards --no-anchored 'oc'
|
tar -xz --strip-components=1 --wildcards --no-anchored 'oc'
|
||||||
|
|
||||||
ADD tools/docker-compose/google-cloud-sdk.repo /etc/yum.repos.d/
|
ADD tools/docker-compose/google-cloud-sdk.repo /etc/yum.repos.d/
|
||||||
RUN yum install -y kubectl
|
RUN dnf install -y kubectl
|
||||||
|
|
||||||
RUN yum -y remove cyrus-sasl-devel \
|
RUN dnf -y remove cyrus-sasl-devel \
|
||||||
gcc \
|
gcc \
|
||||||
gcc-c++ \
|
gcc-c++ \
|
||||||
krb5-devel \
|
krb5-devel \
|
||||||
@@ -148,11 +136,10 @@ RUN yum -y remove cyrus-sasl-devel \
|
|||||||
xmlsec1-devel \
|
xmlsec1-devel \
|
||||||
xmlsec1-openssl-devel
|
xmlsec1-openssl-devel
|
||||||
|
|
||||||
RUN yum -y clean all
|
RUN dnf -y clean all
|
||||||
|
|
||||||
RUN rm -rf /root/.cache
|
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 LANG en_US.UTF-8
|
||||||
ENV LANGUAGE en_US:en
|
ENV LANGUAGE en_US:en
|
||||||
ENV LC_ALL en_US.UTF-8
|
ENV LC_ALL en_US.UTF-8
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
[ansible-nightly]
|
[ansible-nightly]
|
||||||
baseurl=https://releases.ansible.com/ansible/rpm/nightly/devel/epel-7-$basearch
|
name=ansible-nightly
|
||||||
|
baseurl=https://releases.ansible.com/ansible/rpm/nightly/devel/epel-8-$basearch
|
||||||
gpgcheck=0
|
gpgcheck=0
|
||||||
enabled=1
|
enabled=1
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[google-cloud-sdk]
|
[google-cloud-sdk]
|
||||||
name=Google Cloud SDK
|
name=Google Cloud SDK
|
||||||
baseurl=https://packages.cloud.google.com/yum/repos/cloud-sdk-el7-x86_64
|
baseurl=https://packages.cloud.google.com/yum/repos/cloud-sdk-el8-x86_64
|
||||||
enabled=1
|
enabled=1
|
||||||
gpgcheck=1
|
gpgcheck=1
|
||||||
repo_gpgcheck=1
|
repo_gpgcheck=1
|
||||||
|
|||||||
Reference in New Issue
Block a user