From 2fdd95f069788f5e3a0bb7cb9cddfe19d1a21a3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vicente=20Mataix=20Ferr=C3=A1ndiz?= Date: Thu, 28 Nov 2024 16:53:38 +0100 Subject: [PATCH 1/2] [Scripts] Adding Rocky Linux docker file --- .../docker_file_ci_rockylinux8/Dockerfile | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 scripts/docker_files/docker_file_ci_rockylinux8/Dockerfile diff --git a/scripts/docker_files/docker_file_ci_rockylinux8/Dockerfile b/scripts/docker_files/docker_file_ci_rockylinux8/Dockerfile new file mode 100644 index 000000000000..e77ab6dce14c --- /dev/null +++ b/scripts/docker_files/docker_file_ci_rockylinux8/Dockerfile @@ -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 From 8c5c253269893789a145134c660f103059506ebb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vicente=20Mataix=20Ferr=C3=A1ndiz?= Date: Thu, 28 Nov 2024 16:53:53 +0100 Subject: [PATCH 2/2] Remove old Centos 7 dockerfile --- .../docker_file_ci_centos_7/DockerFile | 54 ------------------- 1 file changed, 54 deletions(-) delete mode 100644 scripts/docker_files/docker_file_ci_centos_7/DockerFile diff --git a/scripts/docker_files/docker_file_ci_centos_7/DockerFile b/scripts/docker_files/docker_file_ci_centos_7/DockerFile deleted file mode 100644 index 8fee1faf901e..000000000000 --- a/scripts/docker_files/docker_file_ci_centos_7/DockerFile +++ /dev/null @@ -1,54 +0,0 @@ -FROM centos:centos7 - -USER root - -ENV HOME /root - -# Enable devtools packages -RUN yum -y install centos-release-scl -RUN yum-config-manager --enable rhel-7-server-devtools-rpms -RUN yum-config-manager --enable rhel-7-server-extras-rpms -RUN yum-config-manager --enable rhel-7-server-optional-rpms -RUN yum-config-manager --enable rhel-server-rhscl-7-rpms - -RUN yum -y update - -# Installing dependencies -RUN yum -y --quiet install wget git cmake gcc-c++ unzip python-pip make gcc-gfortran zlib-devel bzip2-devel openssl-devel samba-client openmpi-devel hdf5-openmpi-devel boost-devel - -# Installing scl-utils -RUN yum -y install scl-utils - -# Installing Devtools 8 -RUN yum -y install devtoolset-8 devtoolset-8-gcc-c++ -RUN yum -y install binutils-devel wget && rm -rf /var/cache/yum/* -RUN source scl_source enable devtoolset-8 - -# Installing Python 3.8 -RUN cd /usr/src -RUN wget https://www.python.org/ftp/python/3.8.10/Python-3.8.10.tgz -RUN tar xzf Python-3.8.10.tgz -C /usr/src -RUN ls /usr/src/Python-3.8.10 -RUN sh /usr/src/Python-3.8.10/configure --enable-optimizations --with-lto --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib" -RUN make altinstall -RUN rm Python-3.8.10.tgz - -# Installing Python packages -RUN python3.8 -m pip install numpy sympy parameterized - -# Setting the needed environment variables for being able to run/compile -ENV PYTHON_EXECUTABLE /usr/local/bin/python3.8 -ENV AMS_EXTERNAL_LIBRARIES_INSTALL_PATH /usr/local/ - -# Installing cmake3 -RUN source scl_source enable devtoolset-8 && wget https://cmake.org/files/v3.18/cmake-3.18.6.tar.gz && tar zxvf cmake-3.* && cd cmake-3.* \ - && ./bootstrap --prefix=/usr/local && gmake -j$(nproc) && make install - -CMD [ "/bin/bash" ] - -WORKDIR $HOME - -#In case of dns problem please check https://forums.centos.org/viewtopic.php?t=74270P -# For build please run the following command from the DockerFile folder -# docker build ../../../ --file DockerFile --tag ams/ams-centos7-python35-build -# For python compilation: https://www.workaround.cz/howto-compile-install-latest-python-37-38-39-centos-7-8/