Go to file
2023-05-01 14:28:07 -04:00
bin add pull recipe 2023-04-22 14:50:15 -04:00
ctx/home move .exrc 2023-05-01 14:28:07 -04:00
.build.yml publish image to quay.io 2023-05-01 14:17:40 -04:00
.gitignore cleanup 2023-03-16 12:21:36 -04:00
.skip-ci Add 2023-03-28 20:19:41 -04:00
Dockerfile Add labels, update just helper 2023-04-22 14:40:07 -04:00
justfile update publish process 2023-05-01 14:01:27 -04:00
LICENSE initial revision 2023-02-27 13:33:28 -05:00
NOTICE initial revision 2023-02-27 13:33:28 -05:00
README.md Doc update 2023-03-29 10:29:20 -04:00

alpine-cli

A minimal image for running Linux CLI utilities - shell scripts and similar. This is useful for both interactive purposes or as the basis for other utility images.

Quickstart

$ docker run -ti --rm ghcr.io/jswank/alpine-cli
~ $ ^D
exit

$ bin/cli
~ $ ^D
exit

More Info

The image is based on alpine:edge, with a small amount of additional setup/installation done. See the Dockerfile and ctx/ for the specifics.

  • Some basic utilities are installed for interative and script-based shell usage
  • A user is created with sudo (-u root) access.
  • A few personal preferences are enabled via dotfiles.

A helper script, using casey/just is in bin/cli. It can be used to quickly start an ephemeral (or persistent) container.

$ bin/cli --list
Available recipes:
    clean   # remove the persistent image
    default # run
    persist # run (or attach to) a perisent container {{n}}
    run     # run a temporary container based on {{image}}

$ bin/cli
~ $ ^D
exit

$ bin/cli persist
~ $ ls
~ $ 
exit

$ podman cp foo.json cli:/home/cli

$ bin/cli persist
~ $ ls
foo.json
~ $ ^D
exit

Bonus - the same script could be used to start other containers:

$ bin/cli image=alpine:edge
/ # ^D