It uses several functions from /deploy/lib.sh. The main idea behind using a helper like this is to be able to generate configurations and certificates before launching the containers. For a pure docker or k8s environment just use each
Dockerfile as reference.
./docker/dockerize.sh -h to show the usage of the script:
$ ./docker/dockerize.sh -h Usage: ./docker/dockerize.sh -h [PARAMETER] [PARAMETER] ... Parameters: -h Shows this help message and exit. -b Builds new docker containers. -u Run osctrl containers. -c Generates configuration files. -f Forces the generation of new certificates and configuration. -m Uses mkcert (https://github.com/FiloSottile/mkcert) to generate certificate. -d Takes down running containers. -x Removes container images. Examples: Run dockerized osctrl building new containers and forcing to generate new configuration/certs: ./docker/dockerize.sh -u -b -f Generate only configuration files: ./docker/dockerize.sh -c
There are good examples of the usage of
dockerize.sh in the Makefile.