From 60208b7524bec83064d632927f7a7290ed6fd301 Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Thu, 1 Nov 2018 19:17:39 -0400 Subject: [PATCH] cleanup Signed-off-by: Jess Frazelle --- buildfromtarball/Dockerfile | 11 ----------- buildfromtarball/build.sh | 22 ---------------------- 2 files changed, 33 deletions(-) delete mode 100644 buildfromtarball/Dockerfile delete mode 100755 buildfromtarball/build.sh diff --git a/buildfromtarball/Dockerfile b/buildfromtarball/Dockerfile deleted file mode 100644 index 11ed7a6..0000000 --- a/buildfromtarball/Dockerfile +++ /dev/null @@ -1,11 +0,0 @@ -FROM docker:latest - -RUN apk add --no-cache \ - bash \ - ca-certificates \ - curl \ - tar - -COPY build.sh /usr/local/bin/build - -ENTRYPOINT ["build"] diff --git a/buildfromtarball/build.sh b/buildfromtarball/build.sh deleted file mode 100755 index efbd1f3..0000000 --- a/buildfromtarball/build.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash -set -e -set -o pipefail -set -x - -tarball=$1 -image=$2 - -volume=/build - -mkdir -p "$volume" - -(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. -docker pull "$image" || true - -cd "$volume" - -docker build --cache-from "$image" -t "$image" . - -docker push "$image"