investigate why python docker image has earlier version of python #9

Closed
opened 2023-06-05 00:20:01 +00:00 by jon_nfc · 7 comments
jon_nfc commented 2023-06-05 00:20:01 +00:00 (Migrated from gitlab.com)

during usage of the ansible-ee container, ansible reported that a python module could not be found. in investigation it was discovered that ansible was using python3.9 in a python 3.11 docker container. aftter running commands

rm /usr/bin/python3
ln -s /usr/local/bin/python3.11 /usr/bin/python3

ansible started to run detecting the installed python modules.

on looking in the docker build logs it doesnt appear to be installed during a build. within a clean python:3.11 container python 3.9 is also installed.

related:

during usage of the ansible-ee container, ansible reported that a python module could not be found. in investigation it was discovered that ansible was using python3.9 in a python 3.11 docker container. aftter running commands ``` bash rm /usr/bin/python3 ln -s /usr/local/bin/python3.11 /usr/bin/python3 ``` ansible started to run detecting the installed python modules. on looking in the docker build logs it doesnt appear to be installed during a build. within a clean python:3.11 container python 3.9 is also installed. related: - https://gitlab.com/nofusscomputing/infrastructure/config/-/issues/22 - %Restructure
jon_nfc commented 2023-06-05 00:27:10 +00:00 (Migrated from gitlab.com)

mentioned in commit e82f96a402

mentioned in commit e82f96a40269b42a5421360724e93768b2958bdb
jon_nfc commented 2023-06-05 00:27:25 +00:00 (Migrated from gitlab.com)

added 30m of time spent

added 30m of time spent
jon_nfc commented 2023-07-31 20:39:47 +00:00 (Migrated from gitlab.com)

assigned to @jon_nfc

assigned to @jon_nfc
jon_nfc commented 2023-07-31 20:40:44 +00:00 (Migrated from gitlab.com)

python3.9 still causing issues. on running tests removing and accompanied libs fixes the problems. i.e. apt not installing via ansible.

python3.9 still causing issues. on running tests removing and accompanied libs fixes the problems. i.e. apt not installing via ansible.
jon_nfc commented 2023-07-31 20:45:12 +00:00 (Migrated from gitlab.com)

mentioned in commit 40e46cd22e

mentioned in commit 40e46cd22e6dab013fd04b3c6f479e143c1b424c
jon_nfc commented 2023-07-31 20:45:39 +00:00 (Migrated from gitlab.com)

mentioned in merge request !89

mentioned in merge request !89
jon_nfc commented 2023-07-31 20:55:25 +00:00 (Migrated from gitlab.com)

mentioned in commit 9d63839226

mentioned in commit 9d638392267314985d1e2514bb870fdb84d1540f
jon_nfc (Migrated from gitlab.com) closed this issue 2023-07-31 20:55:25 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: docker/execution_environment#9
No description provided.