Skip to content

Commit

Permalink
chore(*): remove some outdated enterprise stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieske committed Nov 28, 2023
1 parent b129cc8 commit 211e866
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 27 deletions.
12 changes: 2 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,7 @@ git pull
Several environment variables are available for configuration:

* Docker credentials; `DOCKER_USERNAME` and `DOCKER_PASSWORD` to prevent rate-
limits when pulling images, but also for testing against older Kong Enterprise
images that are not publicly available.
limits when pulling images.
* Kong license; set `KONG_LICENSE_DATA` with the Enterprise license to enable
Enterprise features.
* Specify a custom image; set the image name/tag in `KONG_IMAGE` and make sure
Expand Down Expand Up @@ -733,10 +732,7 @@ need to set it)

### CI with Kong Enterprise development

**Note: this is NOT publicly available, only Kong internal**

This build will also require a CRON job to build on a daily basis, but also
requires additional credentials to access the Kong Enterprise master image.
This build will also require a CRON job to build on a daily basis.
To build against the Enterprise master, the version can be specified as
`dev-ee`, as given in this example:

Expand All @@ -747,10 +743,6 @@ jobs:
env: KONG_VERSION=dev-ee
```

For this to work the following variables must be present:
- `DOCKER_USERNAME=<your_docker_username>`
- `DOCKER_PASSWORD<your_docker_password>`

At least the api-key must be encrypted as a secret. Follow the instructions above
to encrypt and add them to the `.travis.yml` file.

Expand Down
36 changes: 19 additions & 17 deletions pongo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,10 @@ function globals {
KONG_EE_TAG_PREFIX="kong/kong-gateway:"
KONG_EE_TAG_POSTFIX="-ubuntu"

# all Kong Enterprise images repo (tag is build as $PREFIX$VERSION$POSTFIX).
KONG_EE_PRIVATE_TAG_PREFIX="kong/kong-gateway-private:"
KONG_EE_PRIVATE_TAG_POSTFIX="-ubuntu"
# # all Kong Enterprise images repo (tag is build as $PREFIX$VERSION$POSTFIX).
# # these are private, credentials are needed
# KONG_EE_PRIVATE_TAG_PREFIX="kong/kong-gateway-private:"
# KONG_EE_PRIVATE_TAG_POSTFIX="-ubuntu"

# regular Kong CE images repo (tag is build as $PREFIX$VERSION$POSTFIX)
KONG_OSS_TAG_PREFIX="kong:"
Expand All @@ -110,8 +111,7 @@ function globals {
KONG_OSS_UNOFFICIAL_TAG_PREFIX="kong/kong:"
KONG_OSS_UNOFFICIAL_TAG_POSTFIX="-ubuntu"

# development EE images repo, these require to additionally set the credentials
# in $DOCKER_USERNAME and $DOCKER_PASSWORD
# development EE images repo, these are public, no credentials needed
DEVELOPMENT_EE_TAG="kong/kong-gateway-dev:master-ubuntu"

# development CE images, these are public, no credentials needed
Expand Down Expand Up @@ -475,17 +475,19 @@ function get_image {
if [[ ! $? -eq 0 ]]; then
warn "failed to pull image $image."

if is_enterprise "$KONG_VERSION"; then
# failed to pull EE image, so try the fallback to the private repo
image=$KONG_EE_PRIVATE_TAG_PREFIX$KONG_VERSION$KONG_EE_PRIVATE_TAG_POSTFIX
docker_login_ee
docker pull "$image"
if [[ ! $? -eq 0 ]]; then
docker logout
err "failed to pull: $image"
fi
docker logout
else
# TODO: if this is no longer required, we can remove the whole, but let's
# give it a couple of months, to see if it is still needed. (dd 28-nov-2023)
# if is_enterprise "$KONG_VERSION"; then
# # failed to pull EE image, so try the fallback to the private repo
# image=$KONG_EE_PRIVATE_TAG_PREFIX$KONG_VERSION$KONG_EE_PRIVATE_TAG_POSTFIX
# docker_login_ee
# docker pull "$image"
# if [[ ! $? -eq 0 ]]; then
# docker logout
# err "failed to pull: $image"
# fi
# docker logout
# else
# failed to pull CE image, so try the fallback
# NOTE: new releases take a while (days) to become available in the
# official docker hub repo. Hence we fall back on the unofficial Kong
Expand All @@ -498,7 +500,7 @@ function get_image {
err "failed to pull: $image"
fi
msg "pulling unofficial image succeeded"
fi
# fi
fi
fi
fi
Expand Down

0 comments on commit 211e866

Please sign in to comment.