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

remove minor version to get docker build working #4

Merged
merged 1 commit into from
Sep 23, 2021

Conversation

edwardsb
Copy link

@edwardsb edwardsb commented Sep 9, 2021

I was getting:

#6 [2/3] RUN yum install -y tzdata &&     yum clean all &&     rm -rf /var/cache/yum
#6 sha256:ad773330932af216d0b026092d11f222560a55f09a5d3c5588707c145e2a16ac
#6 0.509 Loaded plugins: ovl
#6 1.401 http://repo.mysql.com/yum/mysql-5.7-community/docker/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
#6 1.402 Trying other mirror.
#6 1.416
#6 1.416
#6 1.416  One of the configured repositories failed (MySQL 5.7 Server Minimal),
#6 1.416  and yum doesn't have enough cached data to continue. At this point the only
#6 1.416  safe thing yum can do is fail. There are a few ways to work "fix" this:
#6 1.416
#6 1.416      1. Contact the upstream for the repository and get them to fix the problem.
#6 1.416
#6 1.416      2. Reconfigure the baseurl/etc. for the repository, to point to a working
#6 1.416         upstream. This is most often useful if you are using a newer
#6 1.416         distribution release than is supported by the repository (and the
#6 1.416         packages for the previous distribution release still work).
#6 1.416
#6 1.416      3. Run the command with the repository temporarily disabled
#6 1.416             yum --disablerepo=mysql57-server-minimal ...
#6 1.416
#6 1.416      4. Disable the repository permanently, so yum won't use it by default. Yum
#6 1.416         will then just ignore the repository until you permanently enable it
#6 1.416         again or use --enablerepo for temporary usage:
#6 1.416
#6 1.416             yum-config-manager --disable mysql57-server-minimal
#6 1.416         or
#6 1.416             subscription-manager repos --disable=mysql57-server-minimal
#6 1.416
#6 1.416      5. Configure the failing repository to be skipped, if it is unavailable.
#6 1.416         Note that yum will try to contact the repo. when it runs most commands,
#6 1.416         so will have to try and fail each time (and thus. yum will be be much
#6 1.416         slower). If it is a very temporary problem though, this is often a nice
#6 1.416         compromise:
#6 1.416
#6 1.416             yum-config-manager --save --setopt=mysql57-server-minimal.skip_if_unavailable=true
#6 1.416
#6 1.416 failure: repodata/repomd.xml from mysql57-server-minimal: [Errno 256] No more mirrors to try.
#6 1.416 http://repo.mysql.com/yum/mysql-5.7-community/docker/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
#6 ERROR: executor failed running [/bin/sh -c yum install -y tzdata &&     yum clean all &&     rm -rf /var/cache/yum]: exit code: 1

But removing the minor version in the FROM statement seems to clear this up.

@edwardsb
Copy link
Author

@crcastle can you take a look?

@crcastle
Copy link

Thanks for the detailed log output and fix @edwardsb!

@crcastle crcastle merged commit 6c87057 into render-examples:mysql-5 Sep 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants