From 9e52c042a1ba7a80642d71129e4c25096d96a689 Mon Sep 17 00:00:00 2001 From: Sergio Talens-Oliag Date: Wed, 30 Apr 2025 18:55:31 +0200 Subject: [PATCH] feat: created dummyhttp image --- dummyhttp/Dockerfile | 21 +++++++++++++++++++++ dummyhttp/msr.yaml | 1 + 2 files changed, 22 insertions(+) create mode 100644 dummyhttp/Dockerfile create mode 100644 dummyhttp/msr.yaml diff --git a/dummyhttp/Dockerfile b/dummyhttp/Dockerfile new file mode 100644 index 0000000..ba0f1db --- /dev/null +++ b/dummyhttp/Dockerfile @@ -0,0 +1,21 @@ +# Image to run the dummyhttp application + +# This arg could be passed by the container build command (used with mirrors) +ARG OCI_REGISTRY_PREFIX + +# Latest tested version of alpine +FROM ${OCI_REGISTRY_PREFIX}alpine:3.21.3 + +# Tool versions +ARG DUMMYHTTP_VERS=1.1.1 + +# Download binary +RUN ARCH="$(apk --print-arch)" && \ + VERS="$DUMMYHTTP_VERS" && \ + URL="https://github.com/svenstaro/dummyhttp/releases/download/v$VERS/dummyhttp-$VERS-$ARCH-unknown-linux-musl" && \ + wget "$URL" -O "/tmp/dummyhttp" && \ + install /tmp/dummyhttp /usr/local/bin && \ + rm -f /tmp/dummyhttp + +# Set the entrypoint to /usr/local/bin/dummyhttp +ENTRYPOINT [ "/usr/local/bin/dummyhttp" ] diff --git a/dummyhttp/msr.yaml b/dummyhttp/msr.yaml new file mode 100644 index 0000000..2ef3d52 --- /dev/null +++ b/dummyhttp/msr.yaml @@ -0,0 +1 @@ +version: 1.0.0