Skip to content

Commit

Permalink
fix(curl) add -f to the curl command so they fail if the asset isn't …
Browse files Browse the repository at this point in the history
…found
  • Loading branch information
hutchic committed Apr 30, 2020
1 parent f61b66a commit 74c5796
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN set -ex; \
if [ "$ASSET" = "local" ] ; then exit 0 ; \
elif [ "$ASSET" = "ce" ] ; then \
apk add --no-cache --virtual .build-deps curl wget tar ca-certificates && \
curl -L "https://bintray.com/kong/kong-alpine-tar/download_file?file_path=kong-$KONG_VERSION.amd64.apk.tar.gz" -o /tmp/kong.tar.gz && \
curl -fL "https://bintray.com/kong/kong-alpine-tar/download_file?file_path=kong-$KONG_VERSION.amd64.apk.tar.gz" -o /tmp/kong.tar.gz && \
echo "$KONG_SHA256 /tmp/kong.tar.gz" | sha256sum -c -; \
apk del .build-deps; \
fi; \
Expand Down
2 changes: 1 addition & 1 deletion centos/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ENV KONG_SHA256 $KONG_SHA256
RUN set -ex; \
if [ "$ASSET" = "local" ] ; then exit 0 ; \
elif [ "$ASSET" = "ce" ] ; then \
curl -L "https://bintray.com/kong/kong-rpm/download_file?file_path=centos/7/kong-$KONG_VERSION.el7.amd64.rpm" -o /tmp/kong.rpm && \
curl -fL "https://bintray.com/kong/kong-rpm/download_file?file_path=centos/7/kong-$KONG_VERSION.el7.amd64.rpm" -o /tmp/kong.rpm && \
echo "$KONG_SHA256 /tmp/kong.rpm" | sha256sum -c -; \
fi; \
yum install -y -q unzip shadow-utils \
Expand Down
2 changes: 1 addition & 1 deletion rhel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ENV KONG_SHA256 $KONG_SHA256
RUN set -ex; \
if [ "$ASSET" = "local" ] ; then exit 0 ; \
elif [ "$ASSET" = "ce" ] ; then \
curl -L "https://bintray.com/kong/kong-rpm/download_file?file_path=rhel/7/kong-$KONG_VERSION.rhel$RESTY_IMAGE_TAG.amd64.rpm" -o /tmp/kong.rpm && \
curl -fL "https://bintray.com/kong/kong-rpm/download_file?file_path=rhel/7/kong-$KONG_VERSION.rhel$RESTY_IMAGE_TAG.amd64.rpm" -o /tmp/kong.rpm && \
echo "$KONG_SHA256 /tmp/kong.rpm" | sha256sum -c -; \
fi; \
yum install -y -q unzip shadow-utils \
Expand Down
2 changes: 1 addition & 1 deletion ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN set -ex; \
elif [ "$ASSET" = "ce" ] ; then \
apt-get update && \
apt-get install -y curl && \
curl -L "https://bintray.com/kong/kong-deb/download_file?file_path=kong-$KONG_VERSION.xenial.$(dpkg --print-architecture).deb" -o /tmp/kong.deb && \
curl -fL "https://bintray.com/kong/kong-deb/download_file?file_path=kong-$KONG_VERSION.xenial.$(dpkg --print-architecture).deb" -o /tmp/kong.deb && \
apt-get purge -y curl; \
fi; \
apt-get update \
Expand Down

0 comments on commit 74c5796

Please sign in to comment.