Skip to content

Commit c067332

Browse files
committed
chore: faster maven mirror
1 parent 68f44ee commit c067332

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/docker-publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
with:
5353
java-version: '17'
5454
distribution: 'temurin'
55+
cache: 'maven'
5556
- name: Extract Comet version
5657
id: extract_version
5758
run: |

kube/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ COPY .scalafix.conf /comet/.scalafix.conf
5555
COPY Makefile /comet/Makefile
5656
COPY pom.xml /comet/pom.xml
5757

58+
RUN mkdir -p /root/.m2 && \
59+
echo '<settings><mirrors><mirror><id>central</id><mirrorOf>central</mirrorOf><url>https://repo1.maven.org/maven2</url></mirror></mirrors></settings>' > /root/.m2/settings.xml
60+
5861
# Pick the JDK instead of JRE to compile Comet
5962
RUN cd /comet \
6063
&& JAVA_HOME=$(readlink -f $(which javac) | sed "s/\/bin\/javac//") make release-nogit PROFILES="-Pspark-$SPARK_VERSION -Pscala-$SCALA_VERSION"

0 commit comments

Comments
 (0)