Skip to content

Instantly share code, notes, and snippets.

@resouer
Last active November 11, 2020 23:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save resouer/ed93573fd8f89710a6db03a0d4f89b60 to your computer and use it in GitHub Desktop.
Save resouer/ed93573fd8f89710a6db03a0d4f89b60 to your computer and use it in GitHub Desktop.
name: _my-app-name_
services:
_my-service-name_:
build:
docker:
file: _Dockerfile_name_
context: _Dockerfile_path_
push:
local: kind | ??
type: webservice (default) | worker | task
# parameters of workload
_trait-name-1_:
# properties of trait 1
_trait-name-2_:
# properties of trait 2
...
_trait-name-N_:
# properties of trait N
@hongchaodeng
Copy link

name: _my-app-name_

services:
  _my-service-name_:
    # The image field will be used in build and could be optionally used in workload config.
    image: oamdev/testapp:v1

    build:
      docker:
        file: _Dockerfile_path_ # relative path is supported, e.g. "./Dockerfile"
        context: _Dockerfile_path_ # relative path is supported, e.g. "."

      push:
        local: kind # optionally push to local kind cluster instead of remote registry

    type: webservice (default) | worker | task

    # properties of workload
    ... more properties defined in the template of the specified workload  ...

    _trait-name-1_:
      # properties of trait 1

    _trait-name-2_:
      # properties of trait 2

    ... more traits and their properties ...
  
  _another_service_name: # more services can be defined
    ...
  

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment