Skip to content

Commit

Permalink
Adding python3 venv to Ansible Tower image (#579)
Browse files Browse the repository at this point in the history
* Adding python3 venv to Ansible Tower image

* Spelling out python3

Spelling out python3

Co-authored-by: Øystein Bedin <[email protected]>
  • Loading branch information
makirill and oybed authored May 12, 2022
1 parent a3df655 commit 93b6502
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tower-ocp-custom/.openshift/templates/tower-ocp-custom-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ objects:
pandoc
RUN curl --fail -sL https://mirror.openshift.com/pub/openshift-v4/clients/oc/${OC_CLIENT_VERSION}/linux/oc.tar.gz | tar -C /usr/local/bin/ -xzf -
RUN umask 0022
RUN virtualenv /var/lib/awx/venv/ansible
RUN /var/lib/awx/venv/ansible/bin/pip install \
Expand All @@ -40,6 +41,19 @@ objects:
ansible-tower-cli==3.3.6 \
pytz==2021.1
RUN /usr/bin/python3 -m venv /var/lib/awx/venv/ansible-python3
RUN source /var/lib/awx/venv/ansible-python3/bin/activate && \
umask 0022 && \
python3 -m pip install --upgrade --no-cache-dir pip setuptools wheel && \
python3 -m pip install --no-cache-dir \
ansible==2.9.27 \
boto3==1.22.12 \
botocore==1.25.12 \
awscli==1.23.12 \
ansible-tower-cli==3.3.6 \
psutil==5.9.0 && \
deactivate
RUN rm -rf /var/cache/yum
USER awx
Expand Down

0 comments on commit 93b6502

Please sign in to comment.