Skip to main content

docker

Build and upload a docker image.

archibald docker|d [options]

The command is built into @archibald/cli — there is nothing to install. It packages the project, builds an image from a shipped Dockerfile, and optionally pushes it (plus a :latest tag) to the container registry configured under project.docker in archibald.json. Docker must be enabled via project.docker.active for the command to run.

Build assets

The CLI ships the build assets it uses (Dockerfile, entrypoint.sh, entrypoint-single.sh). Projects may override any of them individually:

{
"project": {
"docker": {
"active": true,
"files": {
"dockerFile": "./docker/Dockerfile",
"entrypoint": "./docker/entrypoint.sh",
"entrypointSingle": "./docker/entrypoint-single.sh"
}
}
}
}

Options

OptionInteractiveDescription
-t, --tenant [tenant]✔️Specify tenant to use. Tenants are configured in Archibald config under project/tenants property.
-p, --platform [platform]✔️Specify platform to use. Platforms are configured in Archibald config under project/platforms property.
-e, --environment [environment]✔️Specify environment to use. When provided only that Env is built. Environments are configured in Archibald config under project/environments property.
-po, --platformOverride [platform]Specify override platform to use. Platforms are configured in Archibald config under project/platforms property.
-m, --mode [mode]✔️Specify compile mode to use. Possible values:
  • development
  • production
-v, --version [version]✔️Specify version to build the container with.
-psh, --push [push]✔️Push the image to a container registry. Container registry is configured in Archibald config under project/docker property. Default: true.
-b, --build [build]✔️Build the image. Default: true.
-p, --pack [pack]Package and build the project. Default: true.
-tg, --tag [tag]✔️Tag the image. Default: true.
-l, --latest [latest]✔️Tag the image with latest version. Default: true.
-v, --version✔️Provide a version to build with. That will be bunled and the artifact identifies itself with that version. Default: develop-SNAPSHOT
-hs, --hashProvide a hash to build with. That will be bunled and the artifact identifies itself with that hash.
-c, --clientBuild only client.
-s, --serverBuild only server.
-q, --quietDon't use interactive cli and run the command with default options.
-h, --helpShow help commands.