From 7435c4f7b240e1f007c834d0d378d970709f6eda Mon Sep 17 00:00:00 2001 From: Vlado Djerek Date: Thu, 7 Sep 2023 13:55:58 +0200 Subject: [PATCH] adds maven to image --- .../gh-actions-self-hosted-runners/arc/images/Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/gh-actions-self-hosted-runners/arc/images/Dockerfile b/.github/gh-actions-self-hosted-runners/arc/images/Dockerfile index 951bd504920dd..41f8061d44a9c 100644 --- a/.github/gh-actions-self-hosted-runners/arc/images/Dockerfile +++ b/.github/gh-actions-self-hosted-runners/arc/images/Dockerfile @@ -63,6 +63,13 @@ RUN curl -OL https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-c #revert permission chown -R runner:runner /home/runner/.config ENV PATH="${PATH}:/usr/local/google-cloud-sdk/bin" +#Install Apache Maven +RUN curl -OL https://dlcdn.apache.org/maven/maven-3/3.9.4/binaries/apache-maven-3.9.4-bin.tar.gz && \ + tar -xvf apache-maven-3.9.4-bin.tar.gz && \ + rm apache-maven-3.9.4-bin.tar.gz && \ + mv apache-maven-3.9.4 /usr/local/maven +ENV PATH="${PATH}:/usr/local/maven/bin" +ENV MAVEN_HOME="/usr/local/maven" # Needed to transfer path addtitions to runner environment RUN echo PATH=$PATH >> /runnertmp/.env