ETOOBUSY 🚀 minimal blogging for the impatient
graffer
TL;DR
A Docker wrapper for using graphics programs from the command line.
Find it here: graffer.
Install it like this:
docker pull registry.gitlab.com/polettix/graffer
docker tag registry.gitlab.com/polettix/graffer graffer:active
curl -LO https://gitlab.com/polettix/graffer/-/raw/master/graffer
chmod +x graffer
# now put graffer in some place into PATH...
The wrapper script is the following (well, as of today!):
#!/bin/sh
main() {
name="$(basename "$0")"
if [ "$name" != "graffer" ] ; then
_call "/app/$name" "$@"
else
_call "$@"
fi
}
_call() {
${DOCKER_COMMAND:-"docker"} run --rm -it \
-v "$PWD:/mnt" \
-e ENV='/mnt/.ashrc' \
${IMAGE_NAME:-"graffer:active"} "$@"
}
main "$@"
This allows creating a symbolic link to access programs inside /app
in
the container.
The first tool I included is cairosvg because well… I needed it:
ln -s graffer cairosvg
I guess this is it!