Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Maven Build
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Docker
Maven Build
Commits
f9f6fc96
Commit
f9f6fc96
authored
6 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Install latest version of maven
parent
7e5e797f
No related branches found
No related tags found
No related merge requests found
Pipeline
#5454
passed
6 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+18
-3
18 additions, 3 deletions
Dockerfile
with
18 additions
and
3 deletions
Dockerfile
+
18
−
3
View file @
f9f6fc96
...
...
@@ -5,8 +5,23 @@ LABEL com.example.vendor="PARAGON Executive Service GmbH" \
version="1.0.0" \
description="Base Ansible image to be built upon by https://gitlab.lakedrops.com/ansible-playbooks/general"
RUN
echo
"===> Adding GIT..."
&&
\
ARG
MAVEN_VERSION=3.6.0
ARG
USER_HOME_DIR="/root"
ARG
SHA=fae9c12b570c3ba18116a4e26ea524b29f7279c17cbaadc3326ca72927368924d9131d11b9e851b8dc9162228b6fdea955446be41207a5cfc61283dd8a561d2f
ARG
BASE_URL=https://apache.osuosl.org/maven/maven-3/${MAVEN_VERSION}/binaries
RUN
echo
"===> Adding CURL..."
&&
\
apk update
&&
\
apk add
maven
&&
\
apk add
curl
&&
\
\
echo
"Completed"
mkdir
-p
/usr/share/maven /usr/share/maven/ref
\
mkdir
-p
/usr/share/maven /usr/share/maven/ref
\
&&
curl
-fsSL
-o
/tmp/apache-maven.tar.gz
${
BASE_URL
}
/apache-maven-
${
MAVEN_VERSION
}
-bin
.tar.gz
\
&&
echo
"
${
SHA
}
/tmp/apache-maven.tar.gz"
|
sha512sum
-c
-
\
&&
tar
-xzf
/tmp/apache-maven.tar.gz
-C
/usr/share/maven
--strip-components
=
1
\
&&
rm
-f
/tmp/apache-maven.tar.gz
\
&&
ln
-s
/usr/share/maven/bin/mvn /usr/bin/mvn
ENV
MAVEN_HOME /usr/share/maven
ENV
MAVEN_CONFIG "$USER_HOME_DIR/.m2"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment