mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-08-03 07:55:17 +00:00
Merge pull request #663 from justincormack/curl-fail
make curl fail on 404
This commit is contained in:
commit
9b58a9921b
@ -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
|
||||
|
||||
|
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user