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

Recent upgrade removes apt-get #875

Closed
ifmason2 opened this issue Jul 6, 2022 · 4 comments
Closed

Recent upgrade removes apt-get #875

ifmason2 opened this issue Jul 6, 2022 · 4 comments

Comments

@ifmason2
Copy link

ifmason2 commented Jul 6, 2022

We have been building an image based on mysql:5.7, where we pull in git, python 3.9 and the AWS commandline.
Since the update of 05/07/2022 (docker-library/official-images#12743), when we launch our docker file we get

Status: Downloaded newer image for mysql:5.7 ---> 34e82e623818 Step 2/14 : RUN apt-get update && apt-get upgrade -y && apt-get install -y python-pip python-dev build-essential git ---> Running in b21557a71b92 /bin/sh: apt-get: command not found

Creating a local docker based on mysql:5.7 we find that apt-get does not exist in /usr/bin or /usr/local/bin

@magnusbarata
Copy link

magnusbarata commented Jul 6, 2022

@ifmason2 If it is urgent you can try using mysql:5.7-debian, which should always support apt-get.

Looking at this PR (line 19 and 25), it seems like they intentionally move the tag of 5.7 from debian to oracle.

@magnusbarata
Copy link

It seems they already decided to move to "oracle" variants by default. (see here)
So it is either you adapt to use yum as a package manager, or use "debian" variants image explicitly.

Quoting from the link above, the rationale for this decision were:

Update "oracle" variants to be the default variants

To reiterate the rationale:

more "upstream-supported" configuration
more architectures (hello, arm64v8!)
smaller images 👀
mysqlsh

@ifmason2
Copy link
Author

ifmason2 commented Jul 6, 2022

@ifmason2 If it is urgent you can try using mysql:5.7-debian, which should always support apt-get.

Looking at this PR (line 19 and 25), it seems like they intentionally move the tag of 5.7 from debian to oracle.

@ifmason2 If it is urgent you can try using mysql:5.7-debian, which should always support apt-get.

Looking at this PR (line 19 and 25), it seems like they intentionally move the tag of 5.7 from debian to oracle.

I will try with the debian variant. If that works, I will close the ticket.
Thanks @magnusbarata.

@ifmason2
Copy link
Author

ifmason2 commented Jul 6, 2022

@magnusbarata,
That worked well, so I am happy to close the ticket.
Thanks for the quick response.

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