zpz / docker-tiny

docker-tiny

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker-tiny

This repo defines a tiny Docker image that contains a few basic shell sripts and commands used in my Docker workflow.

For internal projects that constantly, continuously evolve, the best versioning scheme is auto-generated, trivially sortable versions. To this end, datetime-based fixed-length versions are the most obvious choice.

This repo contains two types of commands. The first type of commands reside in bin/. These commands run within a container of this image, because all their dependencies are satisfied by the base image busybox. Example usage:

$ docker run --rm zppz/tiny:22.12.11 make-date-version

The second type of commands reside in tools/. These commands can not run directly in a container of this image, because their dependencies go beyond busybox. The intended way to use them is to print out their code, capture the printout outside of the container, and then run it outside of the container. For example,

$ cmd="$(docker run --rm zppz/tiny:22.12.11 cat /tools/find-image)"
$ bash -c "${cmd}" -- <args>

This repo should be fairly stable so that other scripts simply use a particular version of this image, and rarely need to revise the hard-coded version.

Please see docker for more info.

The latest build is zppz/tiny:22.12.11.

About

docker-tiny

License:MIT License


Languages

Language:Shell 98.8%Language:Dockerfile 1.2%