Skip to content

Commit

Permalink
Merge pull request #12884 from KratosMultiphysics/scripts/adding-dock…
Browse files Browse the repository at this point in the history
…erfile-rockylinux

[Scripts] Adding Rocky Linux docker file and remove legacy Centos docker file
  • Loading branch information
loumalouomega authored Nov 28, 2024
2 parents d3afb31 + 8c5c253 commit 56ab70c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 54 deletions.
54 changes: 0 additions & 54 deletions scripts/docker_files/docker_file_ci_centos_7/DockerFile

This file was deleted.

33 changes: 33 additions & 0 deletions scripts/docker_files/docker_file_ci_rockylinux8/Dockerfile
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

0 comments on commit 56ab70c

Please sign in to comment.