Skip to content

Commit

Permalink
fix(enterprise): our Kong enterprise requires additional ports
Browse files Browse the repository at this point in the history
  • Loading branch information
hutchic committed Aug 29, 2022
1 parent b5b7030 commit 312a59f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ ifneq ($(RESTY_IMAGE_BASE),src)
DOCKER_KONG_VERSION=$(DOCKER_KONG_VERSION) \
DOCKER_BUILD_PROGRESS=$(DOCKER_BUILD_PROGRESS) \
DOCKER_LABELS="$(DOCKER_LABELS)" \
EDITION="$(EDITION)" \
test/build_container.sh
docker tag $(DOCKER_RELEASE_REPOSITORY):amd64-$(KONG_TEST_CONTAINER_TAG) \
$(DOCKER_RELEASE_REPOSITORY):$(KONG_TEST_CONTAINER_TAG)
Expand All @@ -467,6 +468,7 @@ ifeq ($(BUILDX),true)
KONG_TEST_CONTAINER_TAG=$(KONG_TEST_CONTAINER_TAG) \
DOCKER_KONG_VERSION=$(DOCKER_KONG_VERSION) \
DOCKER_LABELS="$(DOCKER_LABELS)" \
EDITION="$(EDITION)" \
test/build_container.sh
endif
endif
Expand Down
4 changes: 4 additions & 0 deletions test/build_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ pushd ./docker-kong
DOCKER_BUILD_ARGS+=(--no-cache)
DOCKER_BUILD_ARGS+=(--pull)
DOCKER_BUILD_ARGS+=(--build-arg ASSET=local .)

if [[ "$EDITION" == 'enterprise' ]]; then
DOCKER_BUILD_ARGS+=(--build-arg EE_PORTS="8002 8445 8003 8446 8004 8447")
fi

docker build \
--progress=${DOCKER_BUILD_PROGRESS:-auto} \
Expand Down

0 comments on commit 312a59f

Please sign in to comment.