Commit b6d4c147 by Jessica Hawkwell

Installing bash

1 parent 21b341de
Pipeline #170 passed
in 1 minute 13 seconds
Showing with 4 additions and 4 deletions
......@@ -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 \
......
#! /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 "$@"
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!