engine.#Copy matches docker.#Copy

Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
Richard Jones
2022-01-27 20:09:12 -07:00
parent 39e206e7d2
commit 7eb10f96fb
6 changed files with 29 additions and 30 deletions

View File

@@ -29,13 +29,12 @@ engine.#Plan & {
}
copy: engine.#Copy & {
input: image.output
source: {
root: exec.output
path: "/output.txt"
}
dest: "/output.txt"
input: image.output
contents: exec.output
source: "/output.txt"
dest: "/output.txt"
}
verify_copy: engine.#ReadFile & {
input: copy.output
path: "/output.txt"

View File

@@ -29,12 +29,10 @@ engine.#Plan & {
}
copy: engine.#Copy & {
input: image.output
source: {
root: exec.output
path: "/output.txt"
}
dest: "/output.txt"
input: image.output
contents: exec.output
source: "/output.txt"
dest: "/output.txt"
}
verify_copy: engine.#ReadFile & {
input: copy.output

View File

@@ -23,12 +23,10 @@ engine.#Plan & {
}
copy: engine.#Copy & {
input: busybox1_34_1.output
source: {
root: alpine3_15_0.output
path: "/etc/alpine-release"
}
dest: "/alpine3_15_0_release"
input: busybox1_34_1.output
contents: alpine3_15_0.output
source: "/etc/alpine-release"
dest: "/alpine3_15_0_release"
}
verify_copy: engine.#ReadFile & {