ci: Fix centos dockerfiles

This commit is contained in:
Corentin Le Molgat
2023-07-07 14:20:37 +02:00
parent 0180f3a9e0
commit 1b8133cc3a
4 changed files with 14 additions and 13 deletions

View File

@@ -20,11 +20,11 @@ RUN dnf -y update \
RUN echo "source /opt/rh/gcc-toolset-11/enable" >> /etc/bashrc
SHELL ["/bin/bash", "--login", "-c"]
# Install CMake 3.25.2
RUN wget -q "https://cmake.org/files/v3.25/cmake-3.25.2-linux-x86_64.sh" \
&& chmod a+x cmake-3.25.2-linux-x86_64.sh \
&& ./cmake-3.25.2-linux-x86_64.sh --prefix=/usr/local/ --skip-license \
&& rm cmake-3.25.2-linux-x86_64.sh
# Install CMake 3.26.4
RUN wget -q "https://cmake.org/files/v3.26/cmake-3.26.4-linux-x86_64.sh" \
&& chmod a+x cmake-3.26.4-linux-x86_64.sh \
&& ./cmake-3.26.4-linux-x86_64.sh --prefix=/usr/local/ --skip-license \
&& rm cmake-3.26.4-linux-x86_64.sh
CMD [ "/usr/bin/bash" ]
# Install SWIG 4.1.1

View File

@@ -1,9 +1,9 @@
FROM ortools/make:centos_swig AS env
RUN dnf -y update \
&& dnf -y install python39-devel python39-numpy python39-pip \
&& dnf -y install python3.11-devel python3.11-numpy python3.11-pip \
&& dnf clean all \
&& rm -rf /var/cache/dnf
RUN python3.9 -m pip install absl-py mypy-protobuf pandas
RUN python3.11 -m pip install absl-py mypy-protobuf pandas
FROM env AS devel
WORKDIR /home/project