Skip to content

Commit

Permalink
feat: add packages in curl docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
this-is-tobi committed Dec 27, 2024
1 parent 9f94294 commit 251d0e9
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 16 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +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/curl` | *ligthweight image with bash, curl, jq and openssl (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) |
Expand All @@ -18,17 +18,17 @@ Utility tools & scripts.

__Versions correlation table :__

| 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` |
| Name | Image version | Base image |
| ------------ | ------------- | ---------------------------------- |
| act-runner | 2.0.2 | `docker.io/ubuntu:24.04` |
| curl | 1.1.0 | `docker.io/alpine:3.21.0` |
| 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.
Expand Down
4 changes: 2 additions & 2 deletions ci/matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
{
"name": "curl",
"build": {
"base": "docker.io/curlimages/curl-base:8.11.1",
"base": "docker.io/alpine:3.21.0",
"context": "./docker/curl",
"dockerfile": "./docker/curl/Dockerfile",
"target": "build",
"tag": "1.0.0",
"tag": "1.1.0",
"latest": true
}
},
Expand Down
8 changes: 6 additions & 2 deletions docker/curl/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
ARG BASE_IMAGE=docker.io/curlimages/curl-base:8.11.1
ARG BASE_IMAGE=docker.io/alpine:3.21.0

FROM ${BASE_IMAGE} AS build

RUN apk add jq \
RUN apk add \
bash \
curl \
jq \
openssl \
&& rm -rf /var/cache/apk/*

0 comments on commit 251d0e9

Please sign in to comment.