Skip to content

Commit 3b6363c

Browse files
committed
tools/docker: Fixup for almalinux and rockylinux
1 parent 74ef591 commit 3b6363c

File tree

7 files changed

+13
-12
lines changed

7 files changed

+13
-12
lines changed

tools/docker/Makefile

+5-5
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,13 @@ help:
100100
@echo -e "\t\t${BOLD}fedora-39${RESET}"
101101
@echo -e "\t\t${BOLD}fedora-38${RESET}"
102102
@echo -e "\t\t${BOLD}fedora-37${RESET}"
103+
@echo -e "\t\t${BOLD}opensuse-leap${RESET} (latest)"
104+
@echo -e "\t\t${BOLD}rockylinux-9${RESET} (latest)"
103105
@echo -e "\t\t${BOLD}ubuntu-24.04${RESET} (Ubuntu 24.04 LTS, latest)"
104106
@echo -e "\t\t${BOLD}ubuntu-23.10${RESET} (Ubuntu 23.10, rolling)"
105107
@echo -e "\t\t${BOLD}ubuntu-23.04${RESET} (Ubuntu 23.04)"
106108
@echo -e "\t\t${BOLD}ubuntu-22.04${RESET} (Ubuntu 22.04 LTS)"
107109
@echo -e "\t\t${BOLD}ubuntu-20.04${RESET} (Ubuntu 20.04 LTS)"
108-
@echo -e "\t\t${BOLD}opensuse-leap${RESET} (latest)"
109-
@echo -e "\t\t${BOLD}rockylinux-9${RESET} (latest)"
110110
@echo
111111
@echo -e "\t${BOLD}<stage>${RESET}:"
112112
@echo -e "\t\t${BOLD}env${RESET}"
@@ -150,7 +150,7 @@ OR_TOOLS_BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
150150
OR_TOOLS_SHA1 := $(shell git rev-parse --verify HEAD)
151151
# OR_TOOLS_MAJOR & OR_TOOLS_MINOR
152152
include ../../Version.txt
153-
OR_TOOLS_PATCH := $(shell git rev-list --count v${OR_TOOLS_MAJOR}.0..HEAD)
153+
OR_TOOLS_PATCH := $(shell git rev-list --count v${OR_TOOLS_MAJOR}.0..HEAD || echo 0)
154154
OR_TOOLS_VERSION := ${OR_TOOLS_MAJOR}.${OR_TOOLS_MINOR}.${OR_TOOLS_PATCH}
155155
ifdef PRE_RELEASE
156156
OR_TOOLS_VERSION := ${OR_TOOLS_VERSION}-rc
@@ -412,9 +412,9 @@ DISTROS := \
412412
archlinux \
413413
debian-11 debian-12 debian-sid \
414414
fedora-37 fedora-38 fedora-39 \
415-
ubuntu-20.04 ubuntu-22.04 ubuntu-23.04 ubuntu-23.10 ubuntu-24.04 \
416415
opensuse-leap \
417-
rockylinux-9
416+
rockylinux-9 \
417+
ubuntu-20.04 ubuntu-22.04 ubuntu-23.04 ubuntu-23.10 ubuntu-24.04
418418

419419
# List of stages
420420
STAGES := env devel

tools/docker/images/almalinux-9.Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ RUN dnf -y update \
1111
&& dnf clean all \
1212
&& rm -rf /var/cache/dnf
1313
ENTRYPOINT ["/usr/bin/bash", "-c"]
14-
CMD [ "/usr/bin/bash" ]
14+
CMD ["/usr/bin/bash"]
1515

1616
# Install SWIG 4.2.1
17-
FROM base AS swig
1817
RUN dnf -y update \
1918
&& dnf -y install pcre2-devel \
2019
&& dnf clean all \
@@ -90,6 +89,7 @@ RUN make archive_cpp
9089
# .Net
9190
## build
9291
FROM cpp_build AS dotnet_build
92+
RUN sed -i 's/\(<SignAssembly>\).*\(<\/SignAssembly>\)/\1false\2/' ortools/dotnet/Google.OrTools*.csproj.in
9393
ENV USE_DOTNET_CORE_31=ON
9494
RUN make detect_dotnet \
9595
&& make dotnet JOBS=8

tools/docker/images/rockylinux-9.Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ RUN dnf -y update \
1111
&& dnf clean all \
1212
&& rm -rf /var/cache/dnf
1313
ENTRYPOINT ["/usr/bin/bash", "-c"]
14-
CMD [ "/usr/bin/bash" ]
14+
CMD ["/usr/bin/bash"]
1515

1616
# Install SWIG 4.2.1
1717
RUN dnf -y update \
@@ -89,6 +89,7 @@ RUN make archive_cpp
8989
# .Net
9090
## build
9191
FROM cpp_build AS dotnet_build
92+
RUN sed -i 's/\(<SignAssembly>\).*\(<\/SignAssembly>\)/\1false\2/' ortools/dotnet/Google.OrTools*.csproj.in
9293
ENV USE_DOTNET_CORE_31=ON
9394
RUN make detect_dotnet \
9495
&& make dotnet JOBS=8

tools/docker/test/almalinux-9/java.Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ RUN dnf -y update \
1616
&& dnf -y install java-1.8.0-openjdk java-1.8.0-openjdk-devel maven \
1717
&& dnf clean all \
1818
&& rm -rf /var/cache/dnf
19+
#ENV JAVA_HOME=/usr/lib/jvm/java
1920

2021
WORKDIR /root
2122
ADD or-tools_amd64_almalinux-9_java_v*.tar.gz .

tools/docker/test/almalinux-9/python.Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ FROM almalinux:9
66
#############
77
#ENV PATH=/usr/local/bin:$PATH
88
RUN dnf -y update \
9-
&& dnf -y install git wget openssl-devel cmake \
10-
&& dnf -y groupinstall "Development Tools" \
9+
&& dnf -y groupinstall 'Development Tools' \
1110
&& dnf clean all \
1211
&& rm -rf /var/cache/dnf
1312
#CMD ["/usr/bin/bash"]

tools/docker/test/rockylinux-9/java.Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ RUN dnf -y update \
1616
&& dnf -y install java-1.8.0-openjdk java-1.8.0-openjdk-devel maven \
1717
&& dnf clean all \
1818
&& rm -rf /var/cache/dnf
19+
#ENV JAVA_HOME=/usr/lib/jvm/java
1920

2021
WORKDIR /root
2122
ADD or-tools_amd64_rockylinux-9_java_v*.tar.gz .

tools/docker/test/rockylinux-9/python.Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ FROM rockylinux:9
66
#############
77
#ENV PATH=/usr/local/bin:$PATH
88
RUN dnf -y update \
9-
&& dnf -y install git wget openssl-devel cmake \
10-
&& dnf -y groupinstall "Development Tools" \
9+
&& dnf -y groupinstall 'Development Tools' \
1110
&& dnf clean all \
1211
&& rm -rf /var/cache/dnf
1312
#CMD ["/usr/bin/bash"]

0 commit comments

Comments
 (0)