-
Notifications
You must be signed in to change notification settings - Fork 838
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(*): use cloudsmith instead of pulp to download packages #701
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed the mentions to this
.deb.tar.gz
packages as I could not find them. If the reference is still relevant, please let me know and I will add it back.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed with this, leaving the comment up and "unresolved" for future reviewers.