Develop dagger with dagger: use file package

Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
This commit is contained in:
Solomon Hykes 2021-04-30 01:08:06 +00:00
parent 161e67de9a
commit 2804feb004

View File

@ -3,7 +3,7 @@ package main
import (
"dagger.io/dagger"
"dagger.io/dagger/op"
"dagger.io/file"
"dagger.io/alpine"
"dagger.io/docker"
)
@ -14,20 +14,11 @@ source: dagger.#Artifact
// Build the dagger binaries
build: {
testLogs: {
string
#up: [
op.#Load & {
file.#Read & {
from: ctr
},
op.#Exec & {
args: ["ls", "-l", "/"]
},
op.#Export & {
source: "/test.log"
format: "string"
}
]
filename: "/test.log"
}
}.contents
ctr: docker.#Container & {
image: docker.#ImageFromRegistry & {