- dmd >= 2.089.0
Set the following environment variables:
REGISTRY_URL
SERVICE_NAMESPACE
- optional, defaults toservice
IMAGE_TAG
- optional, defaults tolatest
DEPS_IMAGE_TAG
- optional, defaults tolatest
Mark docker_bake.d
as execuable and then simply run it on Posix:
./docker_bake.d
- Nix >= 2.4 with experimetnal CLI options enabled (it may work otherwise, but I haven't tested)
Use nix eval
to evaluate the Nix expression. Since the expression is a function we need
to specify how to call it, but to do that, we must first import it. The function parameters
are passed as a single attribute set parameter containing:
{ tag ? "latest"
,depsTag ? "dev"
,registryUrl
,serviceNamespace ? "service"
}
nix eval --raw --impure \
--expr '(import ./scripts/docker-bake.nix) { registryUrl = "my-registry"; }' \
| jq