stdlib: os package

Signed-off-by: Solomon Hykes <solomon@dagger.io>
This commit is contained in:
Solomon Hykes
2021-05-06 06:53:04 +00:00
parent d93a1d24b8
commit 98b3951c73
12 changed files with 193 additions and 232 deletions

View File

@@ -4,7 +4,7 @@ import (
"dagger.io/dagger"
"dagger.io/js/react"
"dagger.io/alpine"
"dagger.io/docker"
"dagger.io/os"
)
TestData: dagger.#Artifact
@@ -14,26 +14,13 @@ TestReact: {
source: TestData
}
test: docker.#Container & {
test: os.#Container & {
image: alpine.#Image & {
package: bash: "=5.1.0-r0"
}
volume: build: {
from: app.build
dest: "/build"
}
mount: "/build": from: app.build
command: """
test "$(cat /build/test)" = "output"
"""
shell: {
path: "/bin/bash"
args: [
"--noprofile",
"--norc",
"-eo",
"pipefail",
"-c",
]
}
}
}