Skip to content

Commit

Permalink
fix(expose): pass http-proxy variables to build behind proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieske committed Nov 27, 2024
1 parent b7f7571 commit 4eb3d27
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@

---

## Unreleased...

* Fix: pass http-proxy variables when building `expose`
[#624](https://github.com/Kong/kong-pongo/pull/624).

---

## 2.14.0 released 24-Sep-2024

* Feat: enable FIPS support for plugin testing
Expand Down
6 changes: 5 additions & 1 deletion assets/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ networks:
services:
expose:
image: pongo-expose
build: ./expose
build:
context: ./expose
args:
HTTP_PROXY: ${HTTP_PROXY:-}
HTTPS_PROXY: ${HTTPS_PROXY:-}
ports:
- "8000:8000"
- "8001:8001"
Expand Down
7 changes: 6 additions & 1 deletion assets/expose/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
FROM alpine:3.11

# add helper files to workaround some issues
ARG HTTP_PROXY
ENV HTTP_PROXY=$HTTP_PROXY

ARG HTTPS_PROXY
ENV HTTPS_PROXY=$HTTPS_PROXY

COPY entrypoint.sh /entrypoint.sh

RUN apk --no-cache --virtual add socat
Expand Down

0 comments on commit 4eb3d27

Please sign in to comment.