stdlib: docker: default image for simple use cases

Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
This commit is contained in:
Solomon Hykes 2021-04-08 23:39:07 +00:00 committed by Andrea Luzzardi
parent 00710fe387
commit 2d778ea2a7

View File

@ -8,13 +8,21 @@ import (
"dagger.io/dagger"
"dagger.io/dagger/op"
"dagger.io/alpine"
)
// Default image for basic use cases
// FIXME: should just be 'alpine.#Image'.
// referring to '#.up' is a workaround to a dagger engine bug.
// see https://github.com/dagger/dagger/issues/304
#DefaultImage: alpine.#Image.#up
// Run a Docker container
#Container: {
// Container image
image: dagger.#Artifact
image: dagger.#Artifact | *#DefaultImage
// Independently cacheable setup commands
setup: [...string]