medplum
A Dagger Module for Medplum CI Pipeline
Installation
dagger install github.com/levlaz/medplum@89a65857cf913f8b6e2fb02584b8a958c31c30e2
Entrypoint
Return Type
Medplum !
Arguments
Name | Type | Description |
---|---|---|
source | Directory | location of source code, defaults to current working dir more info on defaultPath: https://docs.dagger.io/manuals/developer/functions/#directories-and-files more info on constructor: https://docs.dagger.io/manuals/developer/entrypoint-function/ |
Example
dagger -m github.com/levlaz/medplum@89a65857cf913f8b6e2fb02584b8a958c31c30e2 call \
func (m *myModule) example() *Medplum {
return dag.
Medplum()
}
@function
def example() -> dag.Medplum:
return (
dag.medplum()
)
@func()
example(): Medplum {
return dag
.medplum()
}
Types
Medplum 🔗
base() 🔗
Return base container image
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
nodeVersion | String ! | "latest" | version of NodeJS for base image |
Example
dagger -m github.com/levlaz/medplum@89a65857cf913f8b6e2fb02584b8a958c31c30e2 call \
base --node-version string
func (m *myModule) example(nodeVersion string) *Container {
return dag.
Medplum().
Base(nodeVersion)
}
@function
def example(node_version: str) -> dagger.Container:
return (
dag.medplum()
.base(node_version)
)
@func()
example(nodeVersion: string): Container {
return dag
.medplum()
.base(nodeVersion)
}
buildMatrix() 🔗
Run matrix build of node versions
Return Type
Directory !
Example
dagger -m github.com/levlaz/medplum@89a65857cf913f8b6e2fb02584b8a958c31c30e2 call \
build-matrix
func (m *myModule) example() *Directory {
return dag.
Medplum().
BuildMatrix()
}
@function
def example() -> dagger.Directory:
return (
dag.medplum()
.build_matrix()
)
@func()
example(): Directory {
return dag
.medplum()
.buildMatrix()
}
build() 🔗
Build job modeled from .github/workflows/build.yml
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
nodeVersion | String ! | - | No description provided |
Example
dagger -m github.com/levlaz/medplum@89a65857cf913f8b6e2fb02584b8a958c31c30e2 call \
build --node-version string
func (m *myModule) example(nodeVersion string) *Container {
return dag.
Medplum().
Build(nodeVersion)
}
@function
def example(node_version: str) -> dagger.Container:
return (
dag.medplum()
.build(node_version)
)
@func()
example(nodeVersion: string): Container {
return dag
.medplum()
.build(nodeVersion)
}