Skip to content

Commit

Permalink
Removes failing symlink to /usr/bin/python3 during the image build
Browse files Browse the repository at this point in the history
Installing the latest python36-setuptools automatically creates the symlink from python3 -> python3.6 and from python36 -> /usr/bin/python3.6. Building the images fails when the symlink is created explicitly in the AWX installer.

Signed-off-by: Uriel Mandujano <[email protected]>
  • Loading branch information
konkolorado committed Apr 6, 2019
1 parent 97e030d commit 4821a94
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions installer/roles/image_build/files/Dockerfile.sdist
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ RUN curl --silent --location https://rpm.nodesource.com/setup_8.x | bash -
RUN yum install -y nodejs
RUN npm set progress=false

RUN ln -s /usr/bin/python36 /usr/bin/python3

WORKDIR "/awx"

ENTRYPOINT ["/bin/bash", "-c"]
Expand Down
1 change: 0 additions & 1 deletion installer/roles/image_build/templates/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ RUN yum -y install epel-release && \
yum -y localinstall https://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 mercurial subversion curl python-psycopg2 python-pip python-setuptools libselinux-python setools-libs yum-utils sudo acl make postgresql-devel nginx 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 python36-setuptools python36-devel krb5-workstation krb5-libs libcurl-devel rsync unzip && \
ln -s /usr/bin/python36 /usr/bin/python3 && \
python36 -m ensurepip && \
pip3 install virtualenv && \
pip install virtualenv supervisor && \
Expand Down

0 comments on commit 4821a94

Please sign in to comment.