Skip to content

Commit

Permalink
chore: add curl to image for healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Sep 26, 2024
1 parent 0b24e96 commit d31cc62
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,17 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Download gosu
- name: Download curl + gosu
run: |
cd build
wget https://github.com/stunnel/static-curl/releases/download/8.10.1/curl-linux-x86_64-8.10.1.tar.xz
tar -xJf curl-linux-x86_64-8.10.1.tar.xz
mv curl curl-amd64
rm trurl curl-linux-x86_64-8.10.1.tar.xz
wget https://github.com/stunnel/static-curl/releases/download/8.10.1/curl-linux-aarch64-glibc-8.10.1.tar.xz
tar -xJf curl-linux-aarch64-glibc-8.10.1.tar.xz
mv curl curl-arm64
rm trurl curl-linux-aarch64-glibc-8.10.1.tar.xz
wget https://github.com/tianon/gosu/releases/download/1.17/gosu-amd64
wget https://github.com/tianon/gosu/releases/download/1.17/gosu-arm64
cd ..
Expand Down
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ ENV KC_HOSTNAME_STRICT=false
# Copy our custom entrypoint in
COPY ./entrypoint.bash .

# Copy in curl - used for service self-healthchecks
COPY ./build/curl-$TARGETARCH /usr/bin/curl

# Copy in gosu
COPY ./build/gosu-$TARGETARCH /gosu

Expand Down

0 comments on commit d31cc62

Please sign in to comment.