mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
fix
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
013ceb6617
commit
8b4b42e3a3
|
@ -8,14 +8,14 @@ image=$2
|
||||||
|
|
||||||
volume=/build
|
volume=/build
|
||||||
|
|
||||||
mkdir -p "$build"
|
mkdir -p "$volume"
|
||||||
|
|
||||||
curl --fail --silent --show-error --location "$tarball" | tar xvz --strip=1 -C %s 2>/dev/null) || (echo ""; printf "ERROR: %%s\n" "Could not prepare an image." "Please verify that $tarball is still available and is publicly accessible."; exit 1)
|
(curl --fail --silent --show-error --location "$tarball" | tar xvz --strip=1 -C "$volume" 2>/dev/null) || (echo ""; echo "ERROR: Could not prepare an image.";echo "Please verify that $tarball is still available and is publicly accessible."; exit 1;)
|
||||||
|
|
||||||
# Try to pull the image.
|
# Try to pull the image.
|
||||||
docker pull "$image" || true
|
docker pull "$image" || true
|
||||||
|
|
||||||
cd "$build"
|
cd "$volume"
|
||||||
|
|
||||||
docker build --cache-from "$image" -t "$image" .
|
docker build --cache-from "$image" -t "$image" .
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user