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

Modify ... Build the Docker image for the solver service #524

Open
alexteplyaxins opened this issue Sep 26, 2024 · 4 comments
Open

Modify ... Build the Docker image for the solver service #524

alexteplyaxins opened this issue Sep 26, 2024 · 4 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation maintenance Package and maintenance related

Comments

@alexteplyaxins
Copy link

Description of the modifications

I followed the instructions on build solver container in these tutorial https://dyna.docs.pyansys.com/version/stable/getting-started/index.html#run-pydyna-server-in-a-docker-container.
But in the step building docker image with the docker build -t dyna_solver_v04 .
It get error messenger:
process "/bin/sh -c yum -y install openssh-clients openssh-server bind-utils sudo python3 unzip &>/dev/null && yum clean all" did not complete successfully: exit code: 1
Does anyone meet these problems?

Useful links and references

No response

@alexteplyaxins alexteplyaxins added the documentation Improvements or additions to documentation label Sep 26, 2024
@greschd
Copy link
Member

greschd commented Sep 26, 2024

The root cause here is that the Dockerfile is built on top of CentOS 7, which has reached its end-of-life. With that, the package repositories that yum install uses have moved from mirror.centos.org to vault.centos.org.

The Dockerfile should be amended to either include the following statement [1]:

RUN \
  sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo && \
  sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo && \
  sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo

or updated to be based on a newer base OS (e.g. RockyLinux 8).

The PyDyna devs would know which is the correct action in this case, I am transferring the issue to that repository.

[1] from https://serverfault.com/questions/1161816/mirrorlist-centos-org-no-longer-resolve

@greschd greschd transferred this issue from ansys/pyansys Sep 26, 2024
@greschd greschd added bug Something isn't working maintenance Package and maintenance related labels Sep 26, 2024
@greschd
Copy link
Member

greschd commented Sep 26, 2024

FYI @ansys/pydyna

@alexteplyaxins
Copy link
Author

Thank you, it help me!

@greschd
Copy link
Member

greschd commented Sep 26, 2024

Reopening because I think the Dockerfile should be fixed s.t. it works out of the box.

@greschd greschd reopened this Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation maintenance Package and maintenance related
Projects
None yet
Development

No branches or pull requests

2 participants