-
Notifications
You must be signed in to change notification settings - Fork 838
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(*): use cloudsmith instead of pulp to download packages (#701)
- Loading branch information
Showing
5 changed files
with
27 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,10 @@ | |
FROM debian:bullseye-20230502-slim | ||
|
||
LABEL maintainer="Kong Docker Maintainers <[email protected]> (@team-gateway-bot)" | ||
ARG KONG_VERSION=3.6.1 | ||
ARG KONG_VERSION=3.7.0 | ||
ENV KONG_VERSION $KONG_VERSION | ||
|
||
ARG KONG_SHA256="97da5168777d5ebc48ff5488d254bee930c52a631203e94c76b3b9dcc83a5d5c" | ||
ARG KONG_SHA256="3f325e456d884f809b9480100dfb2ae613467fec6864a86e08c44b52a010d73a" | ||
|
||
ARG KONG_PREFIX=/usr/local/kong | ||
ENV KONG_PREFIX $KONG_PREFIX | ||
|
@@ -20,7 +20,8 @@ RUN set -ex; \ | |
apt-get install -y curl; \ | ||
if [ "$ASSET" = "remote" ] ; then \ | ||
CODENAME=$(cat /etc/os-release | grep VERSION_CODENAME | cut -d = -f 2) \ | ||
&& DOWNLOAD_URL="https://download.konghq.com/gateway-${KONG_VERSION%%.*}.x-debian-${CODENAME}/pool/all/k/kong/kong_${KONG_VERSION}_amd64.deb" \ | ||
&& KONG_REPO=$(echo ${KONG_VERSION%.*} | sed 's/\.//') \ | ||
&& DOWNLOAD_URL="https://packages.konghq.com/public/gateway-$KONG_REPO/deb/debian/pool/$CODENAME/main/k/ko/kong_$KONG_VERSION/kong_${KONG_VERSION}_amd64.deb" \ | ||
&& curl -fL $DOWNLOAD_URL -o /tmp/kong.deb \ | ||
&& echo "$KONG_SHA256 /tmp/kong.deb" | sha256sum -c -; \ | ||
fi \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ FROM registry.access.redhat.com/ubi8/ubi-minimal:8.7@sha256:6910799b75ad41f00891 | |
|
||
LABEL maintainer="Kong Docker Maintainers <[email protected]> (@team-gateway-bot)" | ||
|
||
ARG KONG_VERSION=3.6.1 | ||
ARG KONG_VERSION=3.7.0 | ||
ENV KONG_VERSION $KONG_VERSION | ||
|
||
# RedHat required labels | ||
|
@@ -18,7 +18,7 @@ LABEL name="Kong" \ | |
# RedHat required LICENSE file approved path | ||
COPY LICENSE /licenses/ | ||
|
||
ARG KONG_SHA256="18b9cdcf7d89b4cbaa8d30c1115fea7e8f8ecfb8d4fd7126e3c3ff8c3d9b405c" | ||
ARG KONG_SHA256="f9f00e9674c970aa366cd2f4d6e597edb867084a84caee299c444cc973b5d8eb" | ||
|
||
ARG KONG_PREFIX=/usr/local/kong | ||
ENV KONG_PREFIX $KONG_PREFIX | ||
|
@@ -31,7 +31,8 @@ COPY kong.rpm /tmp/kong.rpm | |
# hadolint ignore=DL3015 | ||
RUN set -ex; \ | ||
if [ "$ASSET" = "remote" ] ; then \ | ||
DOWNLOAD_URL="https://download.konghq.com/gateway-${KONG_VERSION%%.*}.x-rhel-8/Packages/k/kong-$KONG_VERSION.rhel8.amd64.rpm" \ | ||
KONG_REPO=$(echo ${KONG_VERSION%.*} | sed 's/\.//') \ | ||
&& DOWNLOAD_URL="https://packages.konghq.com/public/gateway-$KONG_REPO/rpm/el/8/x86_64/kong-$KONG_VERSION.el8.x86_64.rpm" \ | ||
&& curl -fL $DOWNLOAD_URL -o /tmp/kong.rpm \ | ||
&& echo "$KONG_SHA256 /tmp/kong.rpm" | sha256sum -c - \ | ||
|| exit 1; \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters