Skip to content

Commit

Permalink
adds curl-yq image: we frequently need to process response bodies
Browse files Browse the repository at this point in the history
  • Loading branch information
solsson committed Aug 29, 2024
1 parent bcf0b2e commit 4515a6e
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
34 changes: 33 additions & 1 deletion .github/workflows/images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
TAG_ZOOKEEPER=2.5.1-zookeeper-server-start
TAG_INITUTILS=initutils-nonroot@sha256:8988aca5b34feabe8d7d4e368f74b2ede398f692c7e99a38b262a938d475812c
TAG_ENVOY=v1.31.0
TAG_CURL=8.8.0
TAG_CURL=8.9.1
TAG_BUSYBOX=1.36.1-glibc
TAG_TINYGO=0.32.0
crane cp docker.io/yolean/kafka-keyvalue:$TAG_KKV ghcr.io/yolean/kafka-keyvalue:$TAG_KKV
Expand Down Expand Up @@ -639,3 +639,35 @@ jobs:
cache-to: type=gha,mode=max
build-contexts: |
yolean/toil-storage:root=docker-image://ghcr.io/yolean/toil-storage:root
-
name: Build and push curl-yq root
uses: docker/build-push-action@v5
env:
SOURCE_DATE_EPOCH: 0
with:
context: curl-yq
tags: |
ghcr.io/yolean/curl-yq:root
ghcr.io/yolean/curl-yq:${{ github.sha }}-root
platforms: linux/amd64,linux/arm64/v8
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
build-contexts: |
yolean/builder-base=docker-image://ghcr.io/yolean/builder-base
-
name: Build and push curl-yq latest
uses: docker/build-push-action@v5
env:
SOURCE_DATE_EPOCH: 0
with:
context: to-nonroot/curl-yq
tags: |
ghcr.io/yolean/curl-yq:latest
ghcr.io/yolean/curl-yq:${{ github.sha }}
platforms: linux/amd64,linux/arm64/v8
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
build-contexts: |
yolean/curl-yq:root=docker-image://ghcr.io/yolean/curl-yq:root
13 changes: 13 additions & 0 deletions curl-yq/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
ARG TAG_CURL=8.9.1

FROM --platform=$TARGETPLATFORM yolean/builder-base as ystack-runner

FROM --platform=$TARGETPLATFORM ghcr.io/yolean/curl:${TAG_CURL}

COPY --from=ystack-runner /usr/local/src/ystack/bin/y-yq-v* /usr/bin/yq

# bypass entrypoint.sh
ENTRYPOINT ["/usr/bin/curl"]

# so we get root/nonroot build
USER root
1 change: 1 addition & 0 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ runtime-quarkus-ubuntu
runtime-quarkus-ubuntu-jre
runtime-quarkus-dev
toil-storage
curl-yq
"

DEPRECATED="
Expand Down

0 comments on commit 4515a6e

Please sign in to comment.