Simplify use of containerized CLI tools
10K+
This is a small tool to help you generate wrapper scripts for containerized CLI tools, i.e., CLI tools that can be started in a Docker or Podman container.
GitHub repository: https://github.com/aspettl/ccliwrapper
npm/yarn or gem/bundle
because there are often lots of dependencies in software projects, which can run
arbitrary code already on installBinaries are automatically built for all releases and can be downloaded from the
release page at GitHub. Extract the artifact suitable for your platform and run
./ccliwrapper --help to get some usage hints.
Generate wrapper scripts for example config:
./ccliwrapper generate --config=example/ccliwrapper.yaml
The example config also functions as documentation for now.
Note: only the x64 artifact for Linux is tested for now.
Check out this repository and run go build to compile. Then see Option 1.
There is a distroless image for ccliwrapper that can be easily used. Of course, this
means that you need to take care that all folders (config file, output folder) needed
are mounted.
For the example config in this repo use (with podman):
podman run --rm -v $PWD/example:/example docker.io/aspettl/ccliwrapper:edge generate --config /example/ccliwrapper.yaml
Note: ccliwrapper tries to create folders listed in the config file for mounts (and
prints a warning if it does so). The simple reason is that a run command fails when
local folders do not exist. Naturally, this feature does not work properly when
ccliwrapper itself runs in a container - because most folders will not exist there.
Content type
Image
Digest
sha256:5a2ec3fcb…
Size
5.7 MB
Last updated
7 months ago
docker pull aspettl/ccliwrapper