Create a launcher that builds, rebuilds, starts or stops the container. This allows a tightly coupled docker-compose and Dockerfile combination that doesn't depend on default naming conventions.
It's important to have one script, as the provisioning of a docker container has many pieces, and the links between them aren't always clear.
./combined-docker.sh --help
Usage: combined-docker.sh [-b|--build] [-r|--run] [-h|--help] [ -r|--refresh_build ] [-m|--requirements <dag-requirements-file>] [-l|--build_dir <build-dir>]
-b|--build: build a replacement airflow image
-r|--run: run the composed container ** default action if no flags given
-h|--help
-r|--refresh_build: if building, purge all built material and start over
-m|--requirements <dag-requirements-file>: default: ./StagingGlacierProcess-requirements.txt
-l|--build_dir <build-dir>: default ~/tmp/compose-build
Fixes #5 Fixes #8
Create a launcher that builds, rebuilds, starts or stops the container. This allows a tightly coupled docker-compose and Dockerfile combination that doesn't depend on default naming conventions.
It's important to have one script, as the provisioning of a docker container has many pieces, and the links between them aren't always clear.