add distroless-toybox image #74

Merged
fedorovand merged 1 commits from obirvalger/image-forge:master into master 2024-11-13 12:07:26 +03:00
3 changed files with 21 additions and 0 deletions

View File

@ -30,6 +30,9 @@ do
if [[ $test != '' ]]; then
command="podman run --rm --entrypoint=\"$entrypoint\" $3/$imgpath -c \"$test\""
else
if [[ $IM == 'distroless-toybox' ]]; then
command="podman run --rm $3/$imgpath toysh -c true"
fi
if [[ $IM == 'distroless-true' ]]; then
command="podman run --rm $3/$imgpath \"true\""
fi

View File

@ -0,0 +1,11 @@
ALT distroless-toybox image
===========================
This is distroless image with toybox binary. It can be used for debugging
containers as toybox provides a lot of utils.
To launch a shell in the container:
`docker run --rm -it registry.altlinux.org/alt/distroless-toybox`
To get system inforamtion:
`docker run --rm -it registry.altlinux.org/alt/distroless-toybox uname -a`

View File

@ -0,0 +1,7 @@
from = "{{ registry }}{{ organization }}/distroless-static:{{ branch }}"
builder-install-packages = ["toybox"]
files = ["/bin/toybox"]
entrypoint = ["/bin/toybox"]
cmd = ["sh"]