Skip to main content

Service

A service specifies the runtime of an artifactArtifactA build or deployment result, such as a Docker container image or Java archive, produced by a software project., provides deployment of an artifactArtifactA build or deployment result, such as a Docker container image or Java archive, produced by a software project.. It has a one-to-one relationship with an artifactArtifactA build or deployment result, such as a Docker container image or Java archive, produced by a software project..

The currently supported service types are:

  • jee-applicationApplicationThe overarching model container grouping all components, domain logic, and configurations for an enterprise solution.
  • angular-frontend
  • gateway
  • database
  • custom

Example​

Options​

Option
project.service.buildContext.disable Service

Indicates that the softwareProject service shouldn't have a build context

<options>
<project.service.buildContext.disable/>
</options>
Option
project.service.volumeName Service

Use a custom name for the service volume. Only takes effect when using a service type that expands a volume e.g. database.

<options>
<project.service.volumeName>my-custom-volume</project.service.volumeName>
</options>
Option
project.service.rootless.enable Service

If a Dockerfile is expanded for this service, generate an image that at runtime uses a user instead of root

<options>
<project.service.rootless.enable/>
</options>