Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
DockerHelper
/
maven
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Registry
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b6d4c147
authored
Jun 03, 2017
by
Jessica Hawkwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Installing bash
1 parent
21b341de
Pipeline
#170
passed
in 1 minute 13 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
Dockerfile
mvn-entrypoint.sh
Dockerfile
View file @
b6d4c14
...
...
@@ -7,7 +7,7 @@ ARG SHA=beb91419245395bd69a4a6edad5ca3ec1a8b64e41457672dc687c173a495f034
ARG BASE_URL=https://apache.osuosl.org/maven/maven-3/${MAVEN_VERSION}/binaries
RUN
mkdir -p /usr/share/maven /usr/share/maven/ref
\
&&
apk update
&&
apk add curl
&&
apk add git
\
&&
apk update
&&
apk add curl
&&
apk add git
&&
apk add bash
\
&&
curl -fsSl -o /tmp/apache-maven.tar.gz
${
BASE_URL
}
/apache-maven-
$MAVEN_VERSION
-bin.tar.gz
\
&&
echo
"
${
SHA
}
/tmp/apache-maven.tar.gz"
| sha256sum -c -
\
&&
tar -xzf /tmp/apache-maven.tar.gz -C /usr/share/maven --strip-components
=
1
\
...
...
mvn-entrypoint.sh
View file @
b6d4c14
#! /bin/
sh
#! /bin/
bash -eu
set
-o pipefail
...
...
@@ -26,13 +26,13 @@ copy_reference_files() {
if
(
touch
"
${
log
}
"
> /dev/null 2>&1
)
then
echo
"--- Copying files at
$(
date
)
"
>>
"
$log
"
find /usr/share/maven/ref/ -type f -exec
sh
-c
'copy_reference_file /usr/share/maven/ref/ "$1" "$2"'
_
{}
"
$log
"
\;
find /usr/share/maven/ref/ -type f -exec
bash -eu
-c
'copy_reference_file /usr/share/maven/ref/ "$1" "$2"'
_
{}
"
$log
"
\;
else
echo
"Can not write to
${
log
}
. Wrong volume permissions? Carrying on ..."
fi
}
export
copy_reference_file
export
-f
copy_reference_file
copy_reference_files
exec
"
$@
"
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment