Dagger
Search

medplum

A Dagger Module for Medplum CI Pipeline

Installation

dagger install github.com/levlaz/medplum@6580286c1259cab60e408a5e77908c55f71be26a

Entrypoint

Return Type
Medplum !
Arguments
NameTypeDescription
sourceDirectory 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() *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
NameTypeDefault ValueDescription
nodeVersionString !"latest"version of NodeJS for base image
Example
dagger -m github.com/levlaz/medplum@6580286c1259cab60e408a5e77908c55f71be26a 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
String !
Example
dagger -m github.com/levlaz/medplum@6580286c1259cab60e408a5e77908c55f71be26a call \
 build-matrix
func (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
NameTypeDefault ValueDescription
nodeVersionString !-No description provided
Example
dagger -m github.com/levlaz/medplum@6580286c1259cab60e408a5e77908c55f71be26a 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)
}