Add a Docker Compose v2 deployment path#266
Open
mtelvers wants to merge 1 commit into
Open
Conversation
Embed a current_compose_v2 library (plugins/compose_v2/) that runs
'docker compose up' for a deployment, reading docker-compose.yml from the
build source (e.g. a Git checkout) and pinning built images to their
digests. It builds against the released current_docker via its public
Raw.Cmd.docker / Raw.Image API, so nothing needs upstreaming.
Wire it into the cluster deployer:
- cluster.ml: deploy_info gains an optional compose deployment; after
build+push+manifest, fetch the source commit and run compose_v2 on the
target docker context.
- pipeline.ml: add make_compose_deployment and a deployment for
ocurrent/ocaml-docs-ci#dill -> dill.caelum.ci.dev.
- create-config.sh: add the dill.caelum.ci.dev docker context.
main.ml: make --slack optional (no notifications when omitted).
.gitignore: never commit secrets/.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a Docker Compose v2 deployment mechanism and uses it to deploy
ocurrent/ocaml-docs-ci#dilltodill.caelum.ci.dev.The existing
compose_clionly takes the compose file as an in-memory string and pins a single image. This adds a path where thedocker-compose.ymlis read from the build source (the Git checkout), so the target repo owns its own compose file, and multiple built images are pinned by digest into that file beforedocker compose up.It's implemented as an embedded plugin building against the released
current_dockerpublic API (Raw.Cmd.docker/Raw.Image), so nothing needs upstreaming intoocurrent/ocurrent.