add distroless-toybox image #74
@ -30,6 +30,9 @@ do
|
|||||||
if [[ $test != '' ]]; then
|
if [[ $test != '' ]]; then
|
||||||
command="podman run --rm --entrypoint=\"$entrypoint\" $3/$imgpath -c \"$test\""
|
command="podman run --rm --entrypoint=\"$entrypoint\" $3/$imgpath -c \"$test\""
|
||||||
else
|
else
|
||||||
|
if [[ $IM == 'distroless-toybox' ]]; then
|
||||||
|
command="podman run --rm $3/$imgpath toysh -c true"
|
||||||
|
fi
|
||||||
if [[ $IM == 'distroless-true' ]]; then
|
if [[ $IM == 'distroless-true' ]]; then
|
||||||
command="podman run --rm $3/$imgpath \"true\""
|
command="podman run --rm $3/$imgpath \"true\""
|
||||||
fi
|
fi
|
||||||
|
11
org/alt/distroless-toybox/README.md
Normal file
11
org/alt/distroless-toybox/README.md
Normal 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`
|
7
org/alt/distroless-toybox/distroless.toml
Normal file
7
org/alt/distroless-toybox/distroless.toml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
from = "{{ registry }}{{ organization }}/distroless-static:{{ branch }}"
|
||||||
|
|
||||||
|
builder-install-packages = ["toybox"]
|
||||||
|
files = ["/bin/toybox"]
|
||||||
|
|
||||||
|
entrypoint = ["/bin/toybox"]
|
||||||
|
cmd = ["sh"]
|
Reference in New Issue
Block a user