make curl fail on 404

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack 2016-11-01 13:58:02 +00:00
parent 0f357d2ed5
commit 50a64ac6c4
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ ARG KERNEL_VERSION=4.4.29
ENV KERNEL_SOURCE=https://www.kernel.org/pub/linux/kernel/v4.x/linux-${KERNEL_VERSION}.tar.xz
RUN curl -sSL -o linux-${KERNEL_VERSION}.tar.xz ${KERNEL_SOURCE}
RUN curl -fsSL -o linux-${KERNEL_VERSION}.tar.xz ${KERNEL_SOURCE}
RUN cat linux-${KERNEL_VERSION}.tar.xz | tar --absolute-names -xJ && mv /linux-${KERNEL_VERSION} /linux

View File

@ -35,9 +35,9 @@ cleanusr:
download: cleanusr
ifdef DOCKER_BIN_URL
(curl -sSL ${DOCKER_BIN_URL} && touch ok) | tar xzf -
(curl -fsSL ${DOCKER_BIN_URL} && touch ok) | tar xzf -
else
(curl -sSL https://${DOCKER_HOST}/builds/${OS}/${ARCH}/docker-${DOCKER_VERSION}.tgz && touch ok) | tar xzf -
(curl -fsSL https://${DOCKER_HOST}/builds/${OS}/${ARCH}/docker-${DOCKER_VERSION}.tgz && touch ok) | tar xzf -
endif
rm ok
mv docker/docker-containerd-ctr \