docker-cheat
docker-cheat provides a single docker image for cheat and its
community-sourced cheat sheets to simplify installation.
Prerequisites
- Docker
Installation
- Create a
cheatalias by adding the following line to~/.profile:alias cheat='docker run --rm bannmann/docker-cheat' - Rejoice!
Updating
Using the command above will not pick up new image versions automatically. To do that, execute the following command manually:
docker pull bannmann/docker-cheat
You could automate this process using a cron job, but make sure that cron only emails the command output in case of errors.
Fine print
- Although the
latesttag is built for each new commit on themasterbranch, new versions of thecheatbinary and cheat sheets are not picked up automatically yet. Instead, every once in a while, the respective definitions (Dockerfileand thecheatsheetssubmodule) will be updated with a manual commit. This will probably be automated at some point. cheatconfiguration settings are currently hard-coded in the container.- Custom cheat sheets, including writable ones, are not supported yet. However, this could be changed easily by adding a
container directory to the
conf.ymlwhich can then be mapped to a host directory by the user.