IComposeEngine over the docker compose CLI. Argv construction and output
parsing are pure; the process runs through an injected exec with
hive-system's shell.core/exec! contract (argv, opts) -> Result.
Secret references in a profile's env are read only by the calls that create
containers (up, a recreating restart), through the injected resolver
(see hive-compose.adapter.secrets). Every other call is given their
renderings, so it interpolates and reads no store.
IComposeEngine over the docker compose CLI. Argv construction and output parsing are pure; the process runs through an injected `exec` with hive-system's `shell.core/exec!` contract (argv, opts) -> Result. Secret references in a profile's env are read only by the calls that create containers (`up`, a recreating `restart`), through the injected resolver (see `hive-compose.adapter.secrets`). Every other call is given their renderings, so it interpolates and reads no store.
(base-argv p)docker compose addressed at profile p: project dir, project name, files
and native compose profiles.
`docker compose` addressed at profile `p`: project dir, project name, files and native compose profiles.
(closure-services s)Sorted services of a config --format json document.
Sorted services of a `config --format json` document.
(container-addresses rows)#{ip} of docker inspect rows: the IPv4 and global IPv6 address each
running container holds on each of its networks.
#{ip} of `docker inspect` rows: the IPv4 and global IPv6 address each
running container holds on each of its networks.(dependency-graph s){service {dep {:required? bool}}} of a config --format json document.
Map-form depends_on reads each entry's "required" (absent = true);
list-form depends_on makes every entry required.
{service {dep {:required? bool}}} of a `config --format json` document.
Map-form depends_on reads each entry's "required" (absent = true);
list-form depends_on makes every entry required.(ids-argv p)The ids of the running containers of p's project.
The ids of the running containers of `p`'s project.
(make-engine opts)CliEngine. opts: :exec (default hive-system shell.core/exec!),
:compose/resolver ({scheme ISecretBackend}, default the pass one over
that exec), :compose/timeout-ms, :compose/up-timeout-ms.
CliEngine. `opts`: :exec (default hive-system `shell.core/exec!`),
:compose/resolver ({scheme ISecretBackend}, default the `pass` one over
that exec), :compose/timeout-ms, :compose/up-timeout-ms.(parse-json-rows s)Rows of compose --format json output, which is a JSON array or one JSON
object per line depending on the compose version.
Rows of compose `--format json` output, which is a JSON array or one JSON object per line depending on the compose version.
(projects rows)Project summaries of ls rows.
Project summaries of `ls` rows.
(published-ports rows){service #{host-port}} of the running containers in ps rows: the
PublishedPort of each of their Publishers that publishes one.
{service #{host-port}} of the running containers in `ps` rows: the
PublishedPort of each of their Publishers that publishes one.(restart-argv p services recreate?)compose restart of services, or when recreate? an up -d --force-recreate --no-deps of exactly them: their dependencies are left
as they are.
`compose restart` of `services`, or when `recreate?` an `up -d --force-recreate --no-deps` of exactly them: their dependencies are left as they are.
(running-services rows)Sorted set of services with a running container in ps rows.
Sorted set of services with a running container in `ps` rows.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |