diff --git a/containers/docker/Earthfile b/containers/docker/Earthfile index 8304453..35bdaef 100644 --- a/containers/docker/Earthfile +++ b/containers/docker/Earthfile @@ -13,9 +13,11 @@ docker-base: kubectl \ bash \ wget \ - ca-certificates + ca-certificates \ + kubectl RUN set -eux && \ mkdir -p ~/.docker/cli-plugins && \ + mkdir -p ~/.kube && \ cd /tmp && \ ARCH=$(uname -m) && \ case "${ARCH}" in \ @@ -44,4 +46,4 @@ build: DO common+SAVE_IMAGE --IMAGE_NAME=docker --TAG=${TAG} --GITHUB_REPOSITORY_OWNER=${GITHUB_REPOSITORY_OWNER} build-multiplatform: - DO --pass-args common+BUILD_MULTIPLATFORM --TARGET=./docker+build + DO --pass-args common+BUILD_MULTIPLATFORM --TARGET=./docker+build \ No newline at end of file diff --git a/containers/qemu-user-static/Earthfile b/containers/qemu-user-static/Earthfile new file mode 100644 index 0000000..41b971e --- /dev/null +++ b/containers/qemu-user-static/Earthfile @@ -0,0 +1,22 @@ +VERSION 0.8 +IMPORT .. AS common + +ARG --global BASE_VERSION +ARG --global TAG +ARG --global GITHUB_REPOSITORY_OWNER + +qemu-user-static-base: + FROM docker.io/multiarch/qemu-user-static:${BASE_VERSION} + DO common+ADD_LABELS + +validate: + FROM +qemu-user-static-base + RUN --no-cache test -n "$BASE_VERSION" || (echo "BASE_VERSION is required" && exit 1) + +build: + BUILD +validate + FROM +qemu-user-static-base + DO common+SAVE_IMAGE --IMAGE_NAME=qemu-user-static --TAG=${TAG} --GITHUB_REPOSITORY_OWNER=${GITHUB_REPOSITORY_OWNER} + +build-multiplatform: + DO --pass-args common+BUILD_MULTIPLATFORM --TARGET=./qemu-user-static+build diff --git a/containers/qemu-user-static/README.md b/containers/qemu-user-static/README.md new file mode 100644 index 0000000..af423e7 --- /dev/null +++ b/containers/qemu-user-static/README.md @@ -0,0 +1,19 @@ +# qemu-user-static + +Aliased container image for Qemu-user-static. + +## Available Versions + + + +| Tag | Base Version | +| -------- | ------------ | +| `latest` | latest | + + + +## Usage + +```bash +docker pull ghcr.io/expnt/containers/qemu-user-static: +``` diff --git a/containers/qemu-user-static/versions.yaml b/containers/qemu-user-static/versions.yaml new file mode 100644 index 0000000..9211fd6 --- /dev/null +++ b/containers/qemu-user-static/versions.yaml @@ -0,0 +1,9 @@ +image_name: qemu-user-static +tag_pattern: "{base_version}" +versions: + - base_version: "latest" +watch: + - pattern: ^latest$ + source: docker.io/multiarch/qemu-user-static + target: base_version + type: docker \ No newline at end of file