From 35d5a28ee3b9741b757b7ef2e50b778702026384 Mon Sep 17 00:00:00 2001 From: Elara6331 Date: Tue, 12 Mar 2024 14:48:34 -0700 Subject: [PATCH] Add static-root and busybox-root containers --- busybox-root/README.md | 5 +++++ busybox-root/apko.yaml | 9 +++++++++ busybox-root/build.sh | 3 +++ busybox/README.md | 2 +- static-root/README.md | 7 +++++++ static-root/apko.yaml | 13 +++++++++++++ static-root/build.sh | 3 +++ 7 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 busybox-root/README.md create mode 100644 busybox-root/apko.yaml create mode 100755 busybox-root/build.sh create mode 100644 static-root/README.md create mode 100644 static-root/apko.yaml create mode 100755 static-root/build.sh diff --git a/busybox-root/README.md b/busybox-root/README.md new file mode 100644 index 0000000..822d83b --- /dev/null +++ b/busybox-root/README.md @@ -0,0 +1,5 @@ +# busybox-root + +The [busybox-root image](https://gitea.elara.ws/Elara6331/-/packages/container/busybox-root/latest) is a basic image with the busybox utilities installed. + +This image runs as root. See [busybox-root](https://gitea.elara.ws/Elara6331/riscv-docker/src/branch/master/busybox) for a rootless container. diff --git a/busybox-root/apko.yaml b/busybox-root/apko.yaml new file mode 100644 index 0000000..69e6c66 --- /dev/null +++ b/busybox-root/apko.yaml @@ -0,0 +1,9 @@ +include: gitea.elara.ws/elara6331/riscv-docker/static-root/apko.yaml@master + +contents: + packages: + - busybox + - ssl_client + +entrypoint: + command: /bin/sh diff --git a/busybox-root/build.sh b/busybox-root/build.sh new file mode 100755 index 0000000..757230b --- /dev/null +++ b/busybox-root/build.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -e +apko publish --sbom=false apko.yaml gitea.elara.ws/elara6331/busybox:latest diff --git a/busybox/README.md b/busybox/README.md index 462e5b9..c30e640 100644 --- a/busybox/README.md +++ b/busybox/README.md @@ -1,3 +1,3 @@ -# static +# busybox The [busybox image](https://gitea.elara.ws/Elara6331/-/packages/container/busybox/latest) is a basic image with the busybox utilities installed. diff --git a/static-root/README.md b/static-root/README.md new file mode 100644 index 0000000..cf57b02 --- /dev/null +++ b/static-root/README.md @@ -0,0 +1,7 @@ +# static-root + +The [static-root image](https://gitea.elara.ws/Elara6331/-/packages/container/static-root/latest) is a basic image with just enough files to run static binaries. It's meant to be used as a base image and is useless outside of that. + +This image will only run static binaries (i.e. Go binaries with `CGO_ENABLED=0`) as it doesn't include musl or glibc + +This image runs as root. See [static](https://gitea.elara.ws/Elara6331/riscv-docker/src/branch/master/static) for a rootless container. diff --git a/static-root/apko.yaml b/static-root/apko.yaml new file mode 100644 index 0000000..fd81d70 --- /dev/null +++ b/static-root/apko.yaml @@ -0,0 +1,13 @@ +contents: + repositories: + - https://dl-cdn.alpinelinux.org/alpine/edge/main + packages: + - alpine-baselayout-data + - alpine-release + - ca-certificates-bundle + - tzdata + +archs: + - amd64 + - arm64 + - riscv64 diff --git a/static-root/build.sh b/static-root/build.sh new file mode 100755 index 0000000..57b26f4 --- /dev/null +++ b/static-root/build.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -e +apko publish --sbom=false apko.yaml gitea.elara.ws/elara6331/static:latest