-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12884 from KratosMultiphysics/scripts/adding-dock…
…erfile-rockylinux [Scripts] Adding Rocky Linux docker file and remove legacy Centos docker file
- Loading branch information
Showing
2 changed files
with
33 additions
and
54 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
33 changes: 33 additions & 0 deletions
33
scripts/docker_files/docker_file_ci_rockylinux8/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
FROM rockylinux:8 | ||
|
||
USER root | ||
|
||
ENV HOME /root | ||
|
||
# install python3.8.10 | ||
RUN dnf update -y && \ | ||
dnf groupinstall "Development Tools" -y && \ | ||
dnf install -y wget openssl-devel bzip2-devel libffi-devel && \ | ||
wget https://www.python.org/ftp/python/3.8.10/Python-3.8.10.tgz && \ | ||
tar xzf Python-3.8.10.tgz && \ | ||
cd Python-3.8.10 && \ | ||
./configure --enable-optimizations && \ | ||
make altinstall && \ | ||
cd .. && \ | ||
rm -rf Python-3.8.10 Python-3.8.10.tgz | ||
|
||
ENV PYTHON_EXECUTABLE /usr/local/bin/python3.8 | ||
|
||
RUN python3.8 -m pip install numpy sympy scipy parameterized | ||
|
||
# install build utils | ||
RUN dnf update -y && dnf install -y \ | ||
--enablerepo=devel ninja-build \ | ||
cmake \ | ||
gcc-gfortran \ | ||
--enablerepo=devel blas-devel \ | ||
--enablerepo=devel lapack-devel | ||
|
||
CMD [ "/bin/bash" ] | ||
|
||
WORKDIR $HOME |