Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
update maven home
  • Loading branch information
AlexanderB1290 authored Oct 24, 2022
1 parent 40b9335 commit 247690d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ RUN chmod a+wrx /entrypoint.sh
CMD ["/entrypoint.sh"]

### Install maven
ARG MVN_HOME=/usr/share/maven
COPY --from=maven ${MVN_HOME} ${MVN_HOME}
RUN ln -s ${MVN_HOME} /opt/maven
ENV MAVEN_HOME=/usr/share/maven
COPY --from=maven /usr/share/maven ${MAVEN_HOME}
RUN ln -s ${MAVEN_HOME} /opt/maven

### Install Sonar Scanner
ARG SONAR_DIR=/opt/sonar-scanner
Expand All @@ -34,7 +34,7 @@ ENV SONAR_SCANNER_HOME ${SONAR_DIR}

# Update capabilities as RUN_USER
USER ${RUN_USER}
RUN /bamboo-update-capability.sh "system.builder.mvn3.Maven 3.8.6" ${MVN_HOME} \
RUN /bamboo-update-capability.sh "system.builder.mvn3.Maven 3.8.6" ${MAVEN_HOME} \
&& /bamboo-update-capability.sh "system.git.executable" /usr/bin/git \
&& /bamboo-update-capability.sh "Docker" /usr/bin/docker \
&& /bamboo-update-capability.sh "system.builder.sos" ${SONAR_DIR}

0 comments on commit 247690d

Please sign in to comment.