Open alexteplyaxins opened 1 week ago
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
FYI @ansys/pydyna
Thank you, it help me!
Reopening because I think the Dockerfile
should be fixed s.t. it works out of the box.
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