@@ -54,6 +54,13 @@ RUN dnf -y update \
54
54
&& rm -rf /var/cache/dnf
55
55
ENV JAVA_HOME=/usr/lib/jvm/java
56
56
57
+ # Update maven
58
+ ADD https://dlcdn.apache.org/maven/maven-3/3.9.9/binaries/apache-maven-3.9.9-bin.tar.gz /usr/local
59
+ RUN mkdir -p /usr/local/maven \
60
+ && tar xzvf /usr/local/apache-maven-3.9.9-bin.tar.gz --strip-components=1 -C /usr/local/maven \
61
+ && rm /usr/local/apache-maven-3.9.9-bin.tar.gz
62
+ ENV PATH=/usr/local/maven/bin:$PATH
63
+
57
64
ENV TZ=America/Los_Angeles
58
65
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
59
66
@@ -67,9 +74,9 @@ WORKDIR /root
67
74
# use ORTOOLS_GIT_SHA1 to modify the command
68
75
# i.e. avoid docker reusing the cache when new commit is pushed
69
76
ARG ORTOOLS_GIT_BRANCH
70
- ENV ORTOOLS_GIT_BRANCH ${ORTOOLS_GIT_BRANCH:-main}
77
+ ENV ORTOOLS_GIT_BRANCH= ${ORTOOLS_GIT_BRANCH:-main}
71
78
ARG ORTOOLS_GIT_SHA1
72
- ENV ORTOOLS_GIT_SHA1 ${ORTOOLS_GIT_SHA1:-unknown}
79
+ ENV ORTOOLS_GIT_SHA1= ${ORTOOLS_GIT_SHA1:-unknown}
73
80
RUN git clone -b "${ORTOOLS_GIT_BRANCH}" --single-branch https://github.com/google/or-tools \
74
81
&& cd or-tools \
75
82
&& git reset --hard "${ORTOOLS_GIT_SHA1}"
@@ -79,9 +86,9 @@ FROM devel AS delivery
79
86
WORKDIR /root/or-tools
80
87
81
88
ARG ORTOOLS_TOKEN
82
- ENV ORTOOLS_TOKEN ${ORTOOLS_TOKEN}
89
+ ENV ORTOOLS_TOKEN= ${ORTOOLS_TOKEN}
83
90
ARG ORTOOLS_DELIVERY
84
- ENV ORTOOLS_DELIVERY ${ORTOOLS_DELIVERY:-all}
91
+ ENV ORTOOLS_DELIVERY= ${ORTOOLS_DELIVERY:-all}
85
92
RUN ./tools/release/build_delivery_linux.sh "${ORTOOLS_DELIVERY}"
86
93
87
94
# Publish delivery
0 commit comments