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

Docker fix #2402

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open

Docker fix #2402

wants to merge 5 commits into from

Conversation

imxade
Copy link

@imxade imxade commented Mar 6, 2025

  • centos:7 [deprecated] -> almalinux:9

Error log:

#0 building with "default" instance using docker driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 924B done
#1 DONE 0.0s

#2 [internal] load metadata for docker.io/library/centos:7
#2 DONE 0.7s

#3 [internal] load .dockerignore
#3 transferring context: 2B done
#3 DONE 0.0s

#4 [1/6] FROM docker.io/library/centos:7@sha256:be65f488b7764ad3638f236b7b515b3678369a5124c47b8d32916d6487418ea4
#4 CACHED

#5 [2/6] RUN yum -y update && yum install -y wget git python3
#5 0.447 Loaded plugins: fastestmirror, ovl
#5 0.661 Determining fastest mirrors
#5 0.675 Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=container error was
#5 0.675 14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
#5 0.678 
#5 0.678 
#5 0.678  One of the configured repositories failed (Unknown),
#5 0.678  and yum doesn't have enough cached data to continue. At this point the only
#5 0.678  safe thing yum can do is fail. There are a few ways to work "fix" this:
#5 0.678 
#5 0.678      1. Contact the upstream for the repository and get them to fix the problem.
#5 0.678 
#5 0.678      2. Reconfigure the baseurl/etc. for the repository, to point to a working
#5 0.678         upstream. This is most often useful if you are using a newer
#5 0.678         distribution release than is supported by the repository (and the
#5 0.678         packages for the previous distribution release still work).
#5 0.678 
#5 0.678      3. Run the command with the repository temporarily disabled
#5 0.678             yum --disablerepo=<repoid> ...
#5 0.678 
#5 0.678      4. Disable the repository permanently, so yum won't use it by default. Yum
#5 0.678         will then just ignore the repository until you permanently enable it
#5 0.678         again or use --enablerepo for temporary usage:
#5 0.678 
#5 0.678             yum-config-manager --disable <repoid>
#5 0.678         or
#5 0.678             subscription-manager repos --disable=<repoid>
#5 0.678 
#5 0.678      5. Configure the failing repository to be skipped, if it is unavailable.
#5 0.678         Note that yum will try to contact the repo. when it runs most commands,
#5 0.678         so will have to try and fail each time (and thus. yum will be be much
#5 0.678         slower). If it is a very temporary problem though, this is often a nice
#5 0.678         compromise:
#5 0.678 
#5 0.678             yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
#5 0.678 
#5 0.678 Cannot find a valid baseurl for repo: base/7/x86_64
#5 ERROR: process "/bin/sh -c yum -y update && yum install -y wget git python3" did not complete successfully: exit code: 1
------
 > [2/6] RUN yum -y update && yum install -y wget git python3:
0.678 
0.678      5. Configure the failing repository to be skipped, if it is unavailable.
0.678         Note that yum will try to contact the repo. when it runs most commands,
0.678         so will have to try and fail each time (and thus. yum will be be much
0.678         slower). If it is a very temporary problem though, this is often a nice
0.678         compromise:
0.678 
0.678             yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
0.678 
0.678 Cannot find a valid baseurl for repo: base/7/x86_64
------
Dockerfile:5
--------------------
   3 |     ARG ganga_version=8.4.2
   4 |     
   5 | >>> RUN yum -y update && yum install -y wget git python3
   6 |     
   7 |     # Add the user UID:1000, GID:1000, home at /home/ganga
--------------------
ERROR: failed to solve: process "/bin/sh -c yum -y update && yum install -y wget git python3" did not complete successfully: exit code: 1

- centos7 -> python3.11
- python version specified
@imxade imxade requested a deployment to Integrate Pull Request March 6, 2025 17:14 — with GitHub Actions Waiting
@egede
Copy link
Member

egede commented Mar 6, 2025

Thanks for this suggestion. The python3.11 container is based on Debian, whereas most of our user community would prefer a RedHat version. I suggest to change it to be based on an alma9 image instead.

@imxade
Copy link
Author

imxade commented Mar 7, 2025

Thanks for this suggestion. The python3.11 container is based on Debian, whereas most of our user community would prefer a RedHat version. I suggest to change it to be based on an alma9 image instead.

For now, I've switched to ubi9/python-311. Let me know if Alma would be a better fit.

 python:3.11 -> ubi9/python-311
@imxade imxade requested a deployment to Integrate Pull Request March 7, 2025 08:50 — with GitHub Actions Waiting
@imxade imxade requested a deployment to Integrate Pull Request March 7, 2025 13:00 — with GitHub Actions Waiting
@egede
Copy link
Member

egede commented Mar 12, 2025

I would still prefer alma9. The other image you use here is more aimed at web servers which is not the use case here.

@imxade imxade requested a deployment to Integrate Pull Request March 12, 2025 18:19 — with GitHub Actions Waiting
@imxade
Copy link
Author

imxade commented Mar 12, 2025

Switched to alma9.

@imxade imxade temporarily deployed to Integrate Pull Request March 12, 2025 18:52 — with GitHub Actions Inactive
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

Successfully merging this pull request may close these issues.

2 participants