Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running Docker build fails at Python installation step #25

Open
mabel91 opened this issue Sep 16, 2021 · 1 comment
Open

Running Docker build fails at Python installation step #25

mabel91 opened this issue Sep 16, 2021 · 1 comment

Comments

@mabel91
Copy link

mabel91 commented Sep 16, 2021

Hi,
I am trying to build the docker image in this repository, and the build fails at - Step 6/20 : RUN apt -y install python3.6
Due to compliance and security restrictions at my organization, we cannot use publicly available containers in ECR provided by Amazon for our project.
Error message:
�[91mE: Unable to locate package python3.6
E: Couldn't find any package by glob 'python3.6'
�[0mThe command '/bin/sh -c apt -y install python3.6' returned a non-zero code: 100

Attached is the complete log for the docker build step, could you please guide me as to why apt is not able to find Python? There is an apt update also done before this step
log.txt

TIA,
Manasi

@hanwang-work
Copy link

hanwang-work commented Sep 28, 2021

This seems to be because of changes in the latest version of openjdk:8 that gets picked up by the Dockerfile. It seems like the install of the latest version of openjdk:8 no longer also installs make, gcc, zlib1g-dev or libpython3.7. Two short-term solutions seem to work for us:

Solution 1

Install make, gcc and zlib1g-dev
Delete auto-remove libpython3.7

Solution 2

Lock openjdk:8 to a specific version e.g.:
FROM openjdk:8@sha256:146ab549512e7520f01b1c1016c83aac76f43222d86eef758003b386cc8e6d5a

I think that a rebuild today of the master branch that was last built several months ago would fail with this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants