Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automated docker image builds (#323)
* Inhouse Dockerfile and entrypoint from ajacobson/chiadog-docker This brings over only only drop dead simple bits that really should live with the tool itself. Major benefits: - Can easily build any state of the repo regardless of branch or mid-development into a functional image without mucking about with an external repo. - Faster builds when the source code is already present without an extra clone Minor fixes added as well: - entrypoint.sh was missing a shebang - Simplified entrypoint running now that the script has a proper shabang - Simplified logic by switching WORKDIR earlier - Add a .dockerignore file to prune dirty state and useless weight from the container. Does not include: - Any documentation. Docker is an advanced option in any case but this should be added as a followup. - Automated Docker builds. Those come in the next commit. * Automate building of Docker images. - Images based on the `main` branch will update the `latest` tag. - Other branches will be tagged with the branch name and first 6 chars of commit hash. - Any git tags will tag images as-is, say `v0.7.0` would become: `ghcr.io/martomi/chiadog:v0.7.0` * Simplify & improve Docker image, change config env to CHIADOG_CONFIG_DIR - Breaking change for anyone coming from ajacobson/chiadog-docker: The config dir env variable is now called CHIADOG_CONFIG_DIR - Switch base image to python:3.10-slim, reduced image size significantly - Dropped manual TZ handling at the container system level, just setting env TZ is enough - Dropped manual PyNaCL install, requirements pull in the binary wheel just fine - Simplify entrypoint and use sh for security.
- Loading branch information