From fd30ed821a587bbda2e9a52dd3f5730961cd2042 Mon Sep 17 00:00:00 2001 From: this-is-tobi Date: Thu, 26 Dec 2024 20:59:01 +0100 Subject: [PATCH] feat: add curl image --- README.md | 22 ++++++++++++---------- ci/matrix.json | 11 +++++++++++ docker/curl/Dockerfile | 6 ++++++ 3 files changed, 29 insertions(+), 10 deletions(-) create mode 100644 docker/curl/Dockerfile diff --git a/README.md b/README.md index 9a3f501..dd9bf50 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ Utility tools & scripts. | Image | Description | Dockerfiles | | ----------------------------------------- | ----------------------------------------------------------------------- | ---------------------------------------------- | | `ghcr.io/this-is-tobi/tools/act-runner` | *act runner image for local CI tests (ubuntu based).* | [Dockerfile](./docker/act-runner/Dockerfile) | +| `ghcr.io/this-is-tobi/tools/curl` | *ligthweight image with curl and jq (alpine based).* | [Dockerfile](./docker/curl/Dockerfile) | | `ghcr.io/this-is-tobi/tools/debug` | *debug image with all convenients tools (debian based).* | [Dockerfile](./docker/debug/Dockerfile) | | `ghcr.io/this-is-tobi/tools/dev` | *development image with all convenients tools (debian based).* | [Dockerfile](./docker/dev/Dockerfile) | | `ghcr.io/this-is-tobi/tools/pg-backup` | *helper image to backup postgresql to s3 (postgres based).* | [Dockerfile](./docker/pg-backup/Dockerfile) | @@ -17,16 +18,17 @@ Utility tools & scripts. __Versions correlation table :__ -| Name | Image version | Base image | -| ------------ | ------------- | ---------------------------------- | -| act-runner | 2.0.2 | `docker.io/ubuntu:24.04` | -| debug | 2.0.1 | `docker.io/debian:12` | -| dev | 2.0.1 | `docker.io/debian:12` | -| pg-backup | 3.0.2 | `docker.io/postgres:17.2` | -| pg-backup | 2.0.2 | `docker.io/postgres:16.6` | -| pg-backup | 1.4.5 | `docker.io/postgres:15.10` | -| s3-backup | 1.1.4 | `docker.io/debian:12` | -| vault-backup | 1.2.3 | `docker.io/hashicorp/vault:1.18.3` | +| Name | Image version | Base image | +| ------------ | ------------- | --------------------------------------- | +| act-runner | 2.0.2 | `docker.io/ubuntu:24.04` | +| curl | 1.0.0 | `docker.io/curlimages/curl-base:8.11.1` | +| debug | 2.0.1 | `docker.io/debian:12` | +| dev | 2.0.1 | `docker.io/debian:12` | +| pg-backup | 3.0.2 | `docker.io/postgres:17.2` | +| pg-backup | 2.0.2 | `docker.io/postgres:16.6` | +| pg-backup | 1.4.5 | `docker.io/postgres:15.10` | +| s3-backup | 1.1.4 | `docker.io/debian:12` | +| vault-backup | 1.2.3 | `docker.io/hashicorp/vault:1.18.3` | > [!TIP] > The backup images are supplied with a sample kubernetes cronjob in their respective folders. diff --git a/ci/matrix.json b/ci/matrix.json index d42ea0f..1f19b7b 100644 --- a/ci/matrix.json +++ b/ci/matrix.json @@ -10,6 +10,17 @@ "latest": true } }, + { + "name": "curl", + "build": { + "base": "docker.io/curlimages/curl-base:8.11.1", + "context": "./docker/curl", + "dockerfile": "./docker/curl/Dockerfile", + "target": "build", + "tag": "1.0.0", + "latest": true + } + }, { "name": "debug", "build": { diff --git a/docker/curl/Dockerfile b/docker/curl/Dockerfile new file mode 100644 index 0000000..5de9244 --- /dev/null +++ b/docker/curl/Dockerfile @@ -0,0 +1,6 @@ +ARG BASE_IMAGE=docker.io/curlimages/curl-base:8.11.1 + +FROM ${BASE_IMAGE} AS build + +RUN apk add jq \ + && rm -rf /var/cache/apk/*