medplum
A Dagger Module for Medplum CI Pipeline
Installation
dagger install github.com/levlaz/medplum@6580286c1259cab60e408a5e77908c55f71be26aEntrypoint
Return Type
Medplum !Arguments
| Name | Type | Default Value | 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@6580286c1259cab60e408a5e77908c55f71be26a call \
func (m *MyModule) Example() *dagger.Medplum {
return dag.
Medplum()
}@function
def example() -> dagger.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@6580286c1259cab60e408a5e77908c55f71be26a call \
base --node-version stringfunc (m *MyModule) Example(nodeVersion string) *dagger.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
String ! Example
dagger -m github.com/levlaz/medplum@6580286c1259cab60e408a5e77908c55f71be26a call \
build-matrixfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Medplum().
BuildMatrix(ctx)
}@function
async def example() -> str:
return await (
dag.medplum()
.build_matrix()
)@func()
async example(): Promise<string> {
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@6580286c1259cab60e408a5e77908c55f71be26a call \
build --node-version stringfunc (m *MyModule) Example(nodeVersion string) *dagger.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)
}