Skip to content

Commit

Permalink
tools/docker: Fix almalinux and rockylinux
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Sep 9, 2024
1 parent dca273b commit 9c84a99
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 3 additions & 5 deletions tools/docker/images/almalinux-9.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ FROM almalinux:9 AS env
#############
## SETUP ##
#############
ENV PATH=/usr/local/bin:$PATH
RUN dnf -y update \
&& dnf -y install git wget openssl-devel cmake \
&& dnf -y groupinstall "Development Tools" \
&& dnf clean all \
&& rm -rf /var/cache/dnf
ENTRYPOINT ["/usr/bin/bash", "-c"]
CMD [ "/usr/bin/bash" ]
CMD ["/usr/bin/bash"]

# Install SWIG 4.2.1
RUN dnf -y update \
Expand Down Expand Up @@ -41,7 +42,6 @@ RUN dnf -y update \
&& dnf -y install java-1.8.0-openjdk java-1.8.0-openjdk-devel maven \
&& dnf clean all \
&& rm -rf /var/cache/dnf
ENV JAVA_HOME=/usr/lib/jvm/java

# Install Python
RUN dnf -y update \
Expand All @@ -51,9 +51,6 @@ RUN dnf -y update \
RUN python3 -m pip install \
absl-py mypy mypy-protobuf pandas

ENV TZ=America/Los_Angeles
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

################
## OR-TOOLS ##
################
Expand Down Expand Up @@ -92,6 +89,7 @@ RUN make archive_cpp
# .Net
## build
FROM cpp_build AS dotnet_build
RUN sed -i 's/\(<SignAssembly>\).*\(<\/SignAssembly>\)/\1false\2/' ortools/dotnet/Google.OrTools*.csproj.in
ENV USE_DOTNET_CORE_31=ON
RUN make detect_dotnet \
&& make dotnet JOBS=8
Expand Down
8 changes: 3 additions & 5 deletions tools/docker/images/rockylinux-9.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ FROM rockylinux:9 AS env
#############
## SETUP ##
#############
ENV PATH=/usr/local/bin:$PATH
RUN dnf -y update \
&& dnf -y install git wget openssl-devel cmake \
&& dnf -y groupinstall "Development Tools" \
&& dnf clean all \
&& rm -rf /var/cache/dnf
ENTRYPOINT ["/usr/bin/bash", "-c"]
CMD [ "/usr/bin/bash" ]
CMD ["/usr/bin/bash"]

# Install SWIG 4.2.1
RUN dnf -y update \
Expand Down Expand Up @@ -41,7 +42,6 @@ RUN dnf -y update \
&& dnf -y install java-1.8.0-openjdk java-1.8.0-openjdk-devel maven \
&& dnf clean all \
&& rm -rf /var/cache/dnf
ENV JAVA_HOME=/usr/lib/jvm/java

# Install Python
RUN dnf -y update \
Expand All @@ -51,9 +51,6 @@ RUN dnf -y update \
RUN python3 -m pip install \
absl-py mypy mypy-protobuf pandas

ENV TZ=America/Los_Angeles
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

################
## OR-TOOLS ##
################
Expand Down Expand Up @@ -92,6 +89,7 @@ RUN make archive_cpp
# .Net
## build
FROM cpp_build AS dotnet_build
RUN sed -i 's/\(<SignAssembly>\).*\(<\/SignAssembly>\)/\1false\2/' ortools/dotnet/Google.OrTools*.csproj.in
ENV USE_DOTNET_CORE_31=ON
RUN make detect_dotnet \
&& make dotnet JOBS=8
Expand Down

0 comments on commit 9c84a99

Please sign in to comment.