Collection of scripts to make it more convient to build, run and prune.
MacOS do not support long option as --service and so on so we need to install gnu-getopts.
Note: it's not necessary beacuse we use a docker image if it gnu-getopt is missing but you gain 10-15s boot time to run/build.
brew install gnu-getopt
Zsh
sudo echo 'export PATH="/usr/local/opt/gnu-getopt/bin:$PATH"' >> ~/.zshrc
sudo echo 'export FLAGS_GETOPT_CMD="$(brew --prefix gnu-getopt)/bin/getopt"' >> ~/.zshrc
bash
sudo echo 'export PATH="/usr/local/opt/gnu-getopt/bin:$PATH"' >> ~/.bash_rpofile
sudo echo 'export FLAGS_GETOPT_CMD="$(brew --prefix gnu-getopt)/bin/getopt"' >> ~/.bash_rpofile
Desciption of available commands
Command | Description |
---|---|
run | Run a container |
build | Build images |
prune | Prune volumes and images |
If you having trouble you can get vebose log outputs by exporting
VERBOSE=yes
export VERBOSE=yes
When you are done and you wish less log outputs just use unset command
unset VERBOSE