Skygear Cluster supports building Docker image for your micro-services before deployment. Currently we support build image using two methods: from template, and from Dockerfile.
Developer can also specify a pre-built image, which Skygear Cluster would use it directly.
To build image from template, the
template key must be specified in the micro-service configuration.
context key specifies the location of the micro-service code, it will be copied into the image at build time.
template key specifies the image template to use. Currently, we support three templates:
To build image from Dockerfile, the
context key must be specified in the micro-service configuration.
context key specifies the context of image build.
Dockerfile must exists at the root of context, or otherwise specified using
To use pre-built image, the
image key must be specified in the micro-service configuration.
To pull image from private image registry, the
image_pull_secret key must be specified. The value should a secret name, refer to a secret created with type
$ skycli secret create --type=dockerconfigjson --name="<secret name>" --file="<docker_json_file>"