Skip to content

Commit

Permalink
Always use the mvn installation of the image (java-native-access#118)
Browse files Browse the repository at this point in the history
Motivation:

Let's use always the mvn installation which is part of the image to minimize things that needs to be fetched

Modifications:

Use mvn directly

Result:

Less downloads during build
  • Loading branch information
normanmaurer authored Dec 20, 2020
1 parent 483e2c9 commit 386727e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions docker/Dockerfile.centos6
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ RUN echo 'PATH=$PATH:$HOME/.cargo/bin' >> ~/.bashrc

WORKDIR /opt
RUN curl https://downloads.apache.org/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz | tar -xz
RUN echo 'PATH=/opt/apache-maven-3.6.3/bin/:$PATH' >> ~/.bashrc

# Prepare our own build
ENV PATH /opt/apache-maven-3.6.3/bin/:$PATH
Expand Down
6 changes: 3 additions & 3 deletions docker/docker-compose.centos-6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ services:

build-clean:
<<: *common
command: /bin/bash -cl "./mvnw clean package"
command: /bin/bash -cl "mvn clean package"

shell:
<<: *common
environment:
- SANOTYPE_USER
- SANOTYPE_PASSWORD
- SONATYPE_USER
- SONATYPE_PASSWORD
volumes:
- ~/.ssh:/root/.ssh:delegated
- ~/.gnupg:/root/.gnupg:delegated
Expand Down

0 comments on commit 386727e

Please sign in to comment.