Skip to main content

Application

Depending on how you compose Dockerfile, you can build container images for your application in a variety of ways. You can change only some files you need from the base image, or you can build a container image with just one Dockerfile. Also you can use environment variables to create images for different environments.

mykollection
โ””โ”€โ”€ apps
ย ย  โ”œโ”€โ”€ app1
ย ย  โ”‚ย ย  โ””โ”€โ”€ Dockerfile
ย ย  โ””โ”€โ”€ app2
โ”œโ”€โ”€ src
ย ย  โ””โ”€โ”€ Dockerfile

Build#

Applications defined in config can be built using the commands below, and the container image built in this way is automatically pushed to the Harbor registry defined in kupboard.yaml (or custom configuration file).

Build customer application

$ kupboard kollection app -c <kollection-name> -n <app-name>

Build all customer applications

$ kupboard kollection app -c <kollection-name>

Build all customer applications from all customer kollections

$ kupboard kollection app

Deployment#

If a container image is pushed properly to the Harbor registry, you can use the deploy command to deploy the container to the service cluster.

$ kupboard deploy -s <application-name>