mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 01:28:09 -03:30
Stop using PG SCL in dev env
This commit is contained in:
@@ -5,11 +5,9 @@ ARG UID=0
|
||||
# Add ansible-devel so that we get collections!
|
||||
ADD tools/docker-compose/ansible_nightly.repo /etc/yum.repos.d/ansible_nightly.repo
|
||||
|
||||
# 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
|
||||
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
|
||||
RUN yum -y install acl \
|
||||
@@ -54,10 +52,9 @@ RUN yum -y install acl \
|
||||
openldap-devel \
|
||||
openssh-server \
|
||||
patch \
|
||||
rh-postgresql10-postgresql-devel \
|
||||
rh-postgresql10-postgresql-server-syspaths \
|
||||
scl-utils-build \
|
||||
scl-utils \
|
||||
postgresql10 \
|
||||
postgresql10-contrib \
|
||||
postgresql10-devel \
|
||||
python-devel \
|
||||
python-pip \
|
||||
python-psutil \
|
||||
@@ -85,14 +82,13 @@ RUN yum -y install acl \
|
||||
xorg-x11-utils \
|
||||
yum-utils
|
||||
|
||||
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 /usr/bin/ssh-keygen -q -t rsa -N "" -f /root/.ssh/id_rsa
|
||||
RUN mkdir -p /data/db
|
||||
|
||||
# symlink python interpreter
|
||||
RUN ln -s /awx_devel/tools/scripts/awx-python /usr/bin/awx-python
|
||||
|
||||
ADD tools/docker-compose/awx.egg-link /tmp/awx.egg-link
|
||||
ADD tools/docker-compose/awx-manage /usr/local/bin/awx-manage
|
||||
ADD tools/docker-compose/awx.egg-info /tmp/awx.egg-info
|
||||
@@ -114,7 +110,7 @@ ADD requirements/requirements.txt \
|
||||
requirements/requirements_tower_uninstall.txt \
|
||||
/tmp/requirements/
|
||||
RUN mkdir -p /venv && chmod g+w /venv
|
||||
RUN scl enable rh-postgresql10 """cd /tmp && VENV_BASE="/venv" make requirements_dev"""
|
||||
RUN cd /tmp && VENV_BASE="/venv" make requirements_dev
|
||||
|
||||
# Use the distro provided npm to bootstrap our required version of node
|
||||
RUN npm install -g n
|
||||
@@ -136,7 +132,7 @@ RUN yum -y remove cyrus-sasl-devel \
|
||||
libxml2-devel \
|
||||
libxslt-devel \
|
||||
openldap-devel \
|
||||
rh-postgresql10-postgresql-devel \
|
||||
postgresql10-devel \
|
||||
python-devel \
|
||||
python36-devel \
|
||||
nodejs \
|
||||
@@ -147,9 +143,6 @@ RUN yum -y clean all
|
||||
|
||||
RUN rm -rf /root/.cache
|
||||
|
||||
# makes postgres available for data migrations when upgrading
|
||||
RUN export PATH=/usr/pgsql-10/bin:$PATH
|
||||
|
||||
RUN localedef -c -i en_US -f UTF-8 en_US.UTF-8
|
||||
ENV LANG en_US.UTF-8
|
||||
ENV LANGUAGE en_US:en
|
||||
@@ -164,6 +157,7 @@ ADD tools/docker-compose/bootstrap_development.sh /bootstrap_development.sh
|
||||
EXPOSE 8043 8013 8080 22
|
||||
|
||||
ADD tools/docker-compose/entrypoint.sh /
|
||||
ADD tools/scripts/awx-python /usr/bin/awx-python
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
CMD ["/bin/bash"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user