lint all cue files

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi 2021-01-20 18:26:10 -08:00
parent 843f24d763
commit 6ab7f88007
46 changed files with 574 additions and 660 deletions

View File

@ -15,7 +15,7 @@ test:
.PHONY: cuefmt
cuefmt:
@(cd ./dagger && cue fmt -s ./... && cue trim -s ./...)
@(cue fmt -s ./... && cue trim -s ./...)
.PHONY: lint
lint: generate cuefmt

View File

@ -1,5 +1,3 @@
package testing
#dagger: {
compute: true
}
#dagger: compute: true

View File

@ -1,5 +1,3 @@
package testing
#dagger: {
compute: 123
}
#dagger: compute: 123

View File

@ -1,5 +1,3 @@
package testing
#dagger: {
compute: "whatever"
}
#dagger: compute: "whatever"

View File

@ -1,7 +1,3 @@
package testing
#dagger: {
compute: {
whatever: "wrong"
}
}
#dagger: compute: whatever: "wrong"

View File

@ -1,15 +1,13 @@
package testing
#dagger: {
compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["true"]
dir: "/"
}
]
}
#dagger: compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["true"]
dir: "/"
},
]

View File

@ -7,14 +7,14 @@ bar: string
#dagger: {
compute: [
{
do: "fetch-container"
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
do: "exec"
dir: "/"
args: ["sh", "-c", "echo \(foo.bar)"]
}
},
]
foo: bar: bar
}

View File

@ -3,47 +3,43 @@ package testing
test1: {
string
#dagger: {
compute: [
{
do: "fetch-container"
ref: "busybox"
},
{
do: "copy"
from: [{do: "fetch-container", ref: "alpine"}]
src: "/etc/issue"
dest: "/"
},
{
do: "export"
source: "/issue"
format: "string"
},
]
}
#dagger: compute: [
{
do: "fetch-container"
ref: "busybox"
},
{
do: "copy"
from: [{do: "fetch-container", ref: "alpine"}]
src: "/etc/issue"
dest: "/"
},
{
do: "export"
source: "/issue"
format: "string"
},
]
}
test2: {
string
#dagger: {
compute: [
{
do: "fetch-container"
ref: "busybox"
},
{
do: "copy"
from: [{do: "fetch-container", ref: "busybox"}]
src: "/etc/issue"
dest: "/"
},
{
do: "export"
source: "/issue"
format: "string"
},
]
}
#dagger: compute: [
{
do: "fetch-container"
ref: "busybox"
},
{
do: "copy"
from: [{do: "fetch-container", ref: "busybox"}]
src: "/etc/issue"
dest: "/"
},
{
do: "export"
source: "/issue"
format: "string"
},
]
}

View File

@ -1,69 +1,65 @@
package testing
component: #dagger: compute: [{
do: "fetch-container"
do: "fetch-container"
ref: "alpine"
}, {
do: "exec"
args: ["sh", "-c", """
printf lol > /id
"""]
printf lol > /id
"""]
dir: "/"
}]
test1: {
string
#dagger: {
compute: [
{
do: "fetch-container"
ref: "busybox"
},
{
do: "copy"
from: component
src: "/id"
dest: "/"
},
{
do: "export"
source: "/id"
format: "string"
},
]
}
#dagger: compute: [
{
do: "fetch-container"
ref: "busybox"
},
{
do: "copy"
from: component
src: "/id"
dest: "/"
},
{
do: "export"
source: "/id"
format: "string"
},
]
}
test2: {
string
#dagger: {
compute: [
{
do: "fetch-container"
ref: "busybox"
},
{
do: "copy"
from: #dagger: compute: [{
do: "fetch-container"
ref: "alpine"
}, {
do: "exec"
args: ["sh", "-c", """
#dagger: compute: [
{
do: "fetch-container"
ref: "busybox"
},
{
do: "copy"
from: #dagger: compute: [{
do: "fetch-container"
ref: "alpine"
}, {
do: "exec"
args: ["sh", "-c", """
printf lol > /id
"""]
dir: "/"
}]
src: "/id"
dest: "/"
},
{
do: "export"
source: "/id"
format: "string"
},
]
}
dir: "/"
}]
src: "/id"
dest: "/"
},
{
do: "export"
source: "/id"
format: "string"
},
]
}

View File

@ -3,23 +3,21 @@ package testing
test: {
string
#dagger: {
compute: [
{
do: "fetch-container"
ref: "busybox"
},
{
do: "copy"
from: [{do: "fetch-container", ref: "alpine"}]
src: "/etc/issue"
dest: "/"
},
{
do: "export"
source: "/issue"
format: "string"
},
]
}
#dagger: compute: [
{
do: "fetch-container"
ref: "busybox"
},
{
do: "copy"
from: [{do: "fetch-container", ref: "alpine"}]
src: "/etc/issue"
dest: "/"
},
{
do: "export"
source: "/issue"
format: "string"
},
]
}

View File

@ -2,14 +2,14 @@ package testing
#dagger: compute: [
{
do: "fetch-container"
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["echo", "always output"]
// XXX Blocked by https://github.com/blocklayerhq/dagger/issues/19
dir: "/"
dir: "/"
always: true
},
]

View File

@ -2,7 +2,7 @@ package testing
#dagger: compute: [
{
do: "fetch-container"
do: "fetch-container"
ref: "alpine"
},
{

View File

@ -2,15 +2,15 @@ package testing
#dagger: compute: [
{
do: "fetch-container"
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo "pwd is: $(pwd)"
[ "$(pwd)" == "/etc" ] || exit 1
"""]
echo "pwd is: $(pwd)"
[ "$(pwd)" == "/etc" ] || exit 1
"""]
dir: "/etc"
},
]

View File

@ -2,15 +2,15 @@ package testing
#dagger: compute: [
{
do: "fetch-container"
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", #"""
echo "$foo"
"""#]
env: foo: {lala: "lala"}
echo "$foo"
"""#]
env: foo: lala: "lala"
// XXX Blocked by https://github.com/blocklayerhq/dagger/issues/19
dir: "/"
},

View File

@ -4,15 +4,15 @@ bar: string
#dagger: compute: [
{
do: "fetch-container"
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo "foo: $foo"
[ "$foo" == "overlay environment" ] || exit 1
"""]
echo "foo: $foo"
[ "$foo" == "overlay environment" ] || exit 1
"""]
env: foo: bar
// XXX Blocked by https://github.com/blocklayerhq/dagger/issues/19
dir: "/"

View File

@ -2,14 +2,14 @@ package testing
#dagger: compute: [
{
do: "fetch-container"
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
[ "$foo" == "output environment" ] || exit 1
"""]
[ "$foo" == "output environment" ] || exit 1
"""]
env: foo: "output environment"
// XXX Blocked by https://github.com/blocklayerhq/dagger/issues/19
dir: "/"

View File

@ -2,7 +2,7 @@ package testing
#dagger: compute: [
{
do: "fetch-container"
do: "fetch-container"
ref: "alpine"
},
{

View File

@ -2,7 +2,7 @@ package testing
#dagger: compute: [
{
do: "fetch-container"
do: "fetch-container"
ref: "alpine"
},
{
@ -10,4 +10,4 @@ package testing
// XXX Blocked by https://github.com/blocklayerhq/dagger/issues/19
dir: "/"
},
}
]

View File

@ -2,7 +2,7 @@ package testing
#dagger: compute: [
{
do: "fetch-container"
do: "fetch-container"
ref: "alpine"
},
{

View File

@ -3,27 +3,24 @@ package testing
test: {
bool
#dagger: {
compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
#dagger: compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
printf "true" > /tmp/out
"""
]
dir: "/"
},
{
do: "export"
// Source path in the container
source: "/tmp/out"
format: "bool"
},
]
}
""",
]
dir: "/"
},
{
do: "export"
// Source path in the container
source: "/tmp/out"
format: "bool"
},
]
}

View File

@ -5,19 +5,19 @@ test1: {
#dagger: compute: [
{
do: "fetch-container"
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo lol1 > /tmp/out
"""]
dir: "/"
echo lol1 > /tmp/out
"""]
dir: "/"
always: true
},
{
do: "export"
do: "export"
source: "/tmp/out"
format: "string"
},
@ -29,19 +29,19 @@ test2: {
#dagger: compute: [
{
do: "fetch-container"
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo lol2 > /tmp/out
"""]
dir: "/"
echo lol2 > /tmp/out
"""]
dir: "/"
always: true
},
{
do: "export"
do: "export"
source: "/tmp/out"
format: "string"
},
@ -53,19 +53,19 @@ test3: {
#dagger: compute: [
{
do: "fetch-container"
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo lol3 > /tmp/out
"""]
dir: "/"
echo lol3 > /tmp/out
"""]
dir: "/"
always: true
},
{
do: "export"
do: "export"
source: "/tmp/out"
format: "string"
},
@ -77,19 +77,19 @@ test4: {
#dagger: compute: [
{
do: "fetch-container"
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo lol4 > /tmp/out
"""]
dir: "/"
echo lol4 > /tmp/out
"""]
dir: "/"
always: true
},
{
do: "export"
do: "export"
source: "/tmp/out"
format: "string"
},
@ -101,19 +101,19 @@ test5: {
#dagger: compute: [
{
do: "fetch-container"
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo lol5 > /tmp/out
"""]
dir: "/"
echo lol5 > /tmp/out
"""]
dir: "/"
always: true
},
{
do: "export"
do: "export"
source: "/tmp/out"
format: "string"
},
@ -125,19 +125,19 @@ test6: {
#dagger: compute: [
{
do: "fetch-container"
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo lol6 > /tmp/out
"""]
dir: "/"
echo lol6 > /tmp/out
"""]
dir: "/"
always: true
},
{
do: "export"
do: "export"
source: "/tmp/out"
format: "string"
},
@ -149,19 +149,19 @@ test7: {
#dagger: compute: [
{
do: "fetch-container"
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo lol7 > /tmp/out
"""]
dir: "/"
echo lol7 > /tmp/out
"""]
dir: "/"
always: true
},
{
do: "export"
do: "export"
source: "/tmp/out"
format: "string"
},
@ -173,19 +173,19 @@ test8: {
#dagger: compute: [
{
do: "fetch-container"
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo lol8 > /tmp/out
"""]
dir: "/"
echo lol8 > /tmp/out
"""]
dir: "/"
always: true
},
{
do: "export"
do: "export"
source: "/tmp/out"
format: "string"
},
@ -197,19 +197,19 @@ test9: {
#dagger: compute: [
{
do: "fetch-container"
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo lol9 > /tmp/out
"""]
dir: "/"
echo lol9 > /tmp/out
"""]
dir: "/"
always: true
},
{
do: "export"
do: "export"
source: "/tmp/out"
format: "string"
},
@ -221,19 +221,19 @@ test10: {
#dagger: compute: [
{
do: "fetch-container"
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo lol10 > /tmp/out
"""]
dir: "/"
echo lol10 > /tmp/out
"""]
dir: "/"
always: true
},
{
do: "export"
do: "export"
source: "/tmp/out"
format: "string"
},

View File

@ -3,27 +3,25 @@ package testing
teststring: {
string
#dagger: {
compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
#dagger: compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo something > /tmp/out
"""
]
// XXX Blocked by https://github.com/blocklayerhq/dagger/issues/19
dir: "/"
},
{
do: "export"
// Source path in the container
source: "/tmp/out"
format: "lalalalal"
},
]
}
""",
]
// XXX Blocked by https://github.com/blocklayerhq/dagger/issues/19
dir: "/"
},
{
do: "export"
// Source path in the container
source: "/tmp/out"
format: "lalalalal"
},
]
}

View File

@ -3,18 +3,16 @@ package testing
teststring: {
string
#dagger: {
compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "export"
// Source path in the container
source: "/tmp/lalala"
format: "string"
},
]
}
#dagger: compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "export"
// Source path in the container
source: "/tmp/lalala"
format: "string"
},
]
}

View File

@ -2,29 +2,27 @@ package testing
test: {
string
=~ "^NAAAA.+"
=~"^NAAAA.+"
#dagger: {
compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
#dagger: compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
printf something > /tmp/out
"""
]
// XXX Blocked by https://github.com/blocklayerhq/dagger/issues/19
dir: "/"
},
{
do: "export"
// Source path in the container
source: "/tmp/out"
format: "string"
},
]
}
""",
]
// XXX Blocked by https://github.com/blocklayerhq/dagger/issues/19
dir: "/"
},
{
do: "export"
// Source path in the container
source: "/tmp/out"
format: "string"
},
]
}

View File

@ -1,27 +1,22 @@
package testing
test: {
#dagger: {
compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo '{"something": "something"}' > /tmp/out
"""
]
dir: "/"
},
{
do: "export"
// Source path in the container
source: "/tmp/out"
format: "json"
},
test: #dagger: compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo '{"something": "something"}' > /tmp/out
""",
]
}
}
dir: "/"
},
{
do: "export"
// Source path in the container
source: "/tmp/out"
format: "json"
},
]

View File

@ -3,27 +3,25 @@ package testing
test: {
number
#dagger: {
compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
#dagger: compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo -123.5 > /tmp/out
"""
]
// XXX Blocked by https://github.com/blocklayerhq/dagger/issues/19
dir: "/"
},
{
do: "export"
// Source path in the container
source: "/tmp/out"
format: "number"
},
]
}
""",
]
// XXX Blocked by https://github.com/blocklayerhq/dagger/issues/19
dir: "/"
},
{
do: "export"
// Source path in the container
source: "/tmp/out"
format: "number"
},
]
}

View File

@ -3,27 +3,25 @@ package testing
test: {
string
#dagger: {
compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
#dagger: compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
printf something > /tmp/out
"""
]
// XXX Blocked by https://github.com/blocklayerhq/dagger/issues/19
dir: "/"
},
{
do: "export"
// Source path in the container
source: "/tmp/out"
format: "string"
},
]
}
""",
]
// XXX Blocked by https://github.com/blocklayerhq/dagger/issues/19
dir: "/"
},
{
do: "export"
// Source path in the container
source: "/tmp/out"
format: "string"
},
]
}

View File

@ -2,29 +2,27 @@ package testing
test: {
string
=~ "^some.+"
=~"^some.+"
#dagger: {
compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
#dagger: compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
printf something > /tmp/out
"""
]
// XXX Blocked by https://github.com/blocklayerhq/dagger/issues/19
dir: "/"
},
{
do: "export"
// Source path in the container
source: "/tmp/out"
format: "string"
},
]
}
""",
]
// XXX Blocked by https://github.com/blocklayerhq/dagger/issues/19
dir: "/"
},
{
do: "export"
// Source path in the container
source: "/tmp/out"
format: "string"
},
]
}

View File

@ -1,29 +1,24 @@
package testing
test: {
#dagger: {
compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo "--- # Shopping list
[milk, pumpkin pie, eggs, juice]" > /tmp/out
"""
]
// XXX Blocked by https://github.com/blocklayerhq/dagger/issues/19
dir: "/"
},
{
do: "export"
// Source path in the container
source: "/tmp/out"
format: "yaml"
},
test: #dagger: compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo "--- # Shopping list
[milk, pumpkin pie, eggs, juice]" > /tmp/out
""",
]
}
}
// XXX Blocked by https://github.com/blocklayerhq/dagger/issues/19
dir: "/"
},
{
do: "export"
// Source path in the container
source: "/tmp/out"
format: "yaml"
},
]

View File

@ -1,46 +1,36 @@
package testing
busybox1: {
#dagger: compute: [
{
do: "fetch-container"
ref: "busybox"
},
]
}
busybox1: #dagger: compute: [
{
do: "fetch-container"
ref: "busybox"
},
]
busybox2: {
#dagger: compute: [
{
do: "fetch-container"
ref: "busybox:latest"
},
]
}
busybox2: #dagger: compute: [
{
do: "fetch-container"
ref: "busybox:latest"
},
]
busybox3: {
#dagger: compute: [
{
do: "fetch-container"
ref: "busybox:1.33-musl"
},
]
}
busybox3: #dagger: compute: [
{
do: "fetch-container"
ref: "busybox:1.33-musl"
},
]
busybox4: {
#dagger: compute: [
{
do: "fetch-container"
ref: "busybox@sha256:e2af53705b841ace3ab3a44998663d4251d33ee8a9acaf71b66df4ae01c3bbe7"
},
]
}
busybox4: #dagger: compute: [
{
do: "fetch-container"
ref: "busybox@sha256:e2af53705b841ace3ab3a44998663d4251d33ee8a9acaf71b66df4ae01c3bbe7"
},
]
busybox5: {
#dagger: compute: [
{
do: "fetch-container"
ref: "busybox:1.33-musl@sha256:e2af53705b841ace3ab3a44998663d4251d33ee8a9acaf71b66df4ae01c3bbe7"
},
]
}
busybox5: #dagger: compute: [
{
do: "fetch-container"
ref: "busybox:1.33-musl@sha256:e2af53705b841ace3ab3a44998663d4251d33ee8a9acaf71b66df4ae01c3bbe7"
},
]

View File

@ -2,7 +2,7 @@ package testing
#dagger: compute: [
{
do: "fetch-container"
do: "fetch-container"
ref: "alpine@sha256:c6c7524e2111f22a9f7577211232d89a9e68cf5b9ed4a41ba77957c9771380a5"
}
},
]

View File

@ -4,7 +4,7 @@ package testing
// Once buildkit has pulled that digest, it will stay cached and happily succeed WHATEVER the image name then is
#dagger: compute: [
{
do: "fetch-container"
do: "fetch-container"
ref: "busyboxaaa@sha256:e2af53705b841ace3ab3a44998663d4251d33ee8a9acaf71b66df4ae01c3bbe7"
},
]

View File

@ -2,7 +2,7 @@ package testing
#dagger: compute: [
{
do: "fetch-container"
do: "fetch-container"
ref: "doesnotexist"
}
},
]

View File

@ -2,7 +2,7 @@ package testing
#dagger: compute: [
{
do: "fetch-container"
do: "fetch-container"
ref: "alpine:doesnotexist"
}
},
]

View File

@ -1,11 +1,9 @@
package testing
#dagger: {
compute: [
{
do: "fetch-git"
remote: "https://github.com/blocklayerhq/acme-clothing.git"
ref: "master"
}
]
}
#dagger: compute: [
{
do: "fetch-git"
remote: "https://github.com/blocklayerhq/acme-clothing.git"
ref: "master"
},
]

View File

@ -1,9 +1,7 @@
package testing
#dagger: {
compute: [
{
do: "fetch-git"
}
]
}
#dagger: compute: [
{
do: "fetch-git"
},
]

View File

@ -1,11 +1,9 @@
package testing
#dagger: {
compute: [
{
do: "fetch-git"
remote: "pork://pork"
ref: "master"
}
]
}
#dagger: compute: [
{
do: "fetch-git"
remote: "pork://pork"
ref: "master"
},
]

View File

@ -1,11 +1,9 @@
package testing
#dagger: {
compute: [
{
do: "fetch-git"
remote: "https://github.com/blocklayerhq/acme-clothing.git"
ref: "lalalalal"
}
]
}
#dagger: compute: [
{
do: "fetch-git"
remote: "https://github.com/blocklayerhq/acme-clothing.git"
ref: "lalalalal"
},
]

View File

@ -1,11 +1,9 @@
package testing
#dagger: {
compute: [
{
do: "fetch-git"
remote: "https://github.com/blocklayerhq/lalalala.git"
ref: "master"
}
]
}
#dagger: compute: [
{
do: "fetch-git"
remote: "https://github.com/blocklayerhq/lalalala.git"
ref: "master"
},
]

View File

@ -3,35 +3,31 @@ package testing
test1: {
string
#dagger: {
compute: [
{
do: "load"
from: [{do: "fetch-container", ref: "alpine"}]
},
{
do: "export"
source: "/etc/issue"
format: "string"
},
]
}
#dagger: compute: [
{
do: "load"
from: [{do: "fetch-container", ref: "alpine"}]
},
{
do: "export"
source: "/etc/issue"
format: "string"
},
]
}
test2: {
string
#dagger: {
compute: [
{
do: "load"
from: [{do: "fetch-container", ref: "busybox"}]
},
{
do: "export"
source: "/etc/issue"
format: "string"
},
]
}
#dagger: compute: [
{
do: "load"
from: [{do: "fetch-container", ref: "busybox"}]
},
{
do: "export"
source: "/etc/issue"
format: "string"
},
]
}

View File

@ -1,57 +1,53 @@
package testing
component: #dagger: compute: [{
do: "fetch-container"
do: "fetch-container"
ref: "alpine"
}, {
do: "exec"
args: ["sh", "-c", """
printf lol > /id
"""]
printf lol > /id
"""]
dir: "/"
}]
test1: {
string
#dagger: {
compute: [
{
do: "load"
from: component
},
{
do: "export"
source: "/id"
format: "string"
},
]
}
#dagger: compute: [
{
do: "load"
from: component
},
{
do: "export"
source: "/id"
format: "string"
},
]
}
test2: {
string
#dagger: {
compute: [
{
do: "load"
from: #dagger: compute: [{
do: "fetch-container"
ref: "alpine"
}, {
do: "exec"
args: ["sh", "-c", """
#dagger: compute: [
{
do: "load"
from: #dagger: compute: [{
do: "fetch-container"
ref: "alpine"
}, {
do: "exec"
args: ["sh", "-c", """
printf lol > /id
"""]
dir: "/"
}]
},
{
do: "export"
source: "/id"
format: "string"
},
]
}
dir: "/"
}]
},
{
do: "export"
source: "/id"
format: "string"
},
]
}

View File

@ -1,20 +1,17 @@
package testing
test: {
string
#dagger: {
compute: [
{
do: "load"
from: [{do: "fetch-container", ref: "alpine"}]
},
{
do: "export"
source: "/etc/issue"
format: "string"
},
]
}
#dagger: compute: [
{
do: "load"
from: [{do: "fetch-container", ref: "alpine"}]
},
{
do: "export"
source: "/etc/issue"
format: "string"
},
]
}

View File

@ -3,25 +3,23 @@ package testing
test: {
string
#dagger: {
compute: [
{
do: "load"
from: [{do: "fetch-container", ref: "alpine"}]
},
{
do: "exec"
args: ["sh", "-c", """
#dagger: compute: [
{
do: "load"
from: [{do: "fetch-container", ref: "alpine"}]
},
{
do: "exec"
args: ["sh", "-c", """
echo "NOT SURE WHAT TO TEST YET" > /out
"""]
dir: "/"
mount: something: "cache"
},
{
do: "export"
source: "/out"
format: "string"
},
]
}
dir: "/"
mount: something: "cache"
},
{
do: "export"
source: "/out"
format: "string"
},
]
}

View File

@ -3,31 +3,29 @@ package testing
test: {
string
#dagger: {
compute: [
{
do: "load"
from: [{do: "fetch-container", ref: "alpine"}]
},
{
do: "exec"
args: ["sh", "-c", """
#dagger: compute: [
{
do: "load"
from: [{do: "fetch-container", ref: "alpine"}]
},
{
do: "exec"
args: ["sh", "-c", """
ls -lA /lol > /out
"""]
dir: "/"
mount: something: {
input: dagger: #compute: [{
do: "fetch-container"
ref: "alpine"
}]
path: "/lol"
}
},
{
do: "export"
source: "/out"
format: "string"
},
]
}
dir: "/"
mount: something: {
input: dagger: #compute: [{
do: "fetch-container"
ref: "alpine"
}]
path: "/lol"
}
},
{
do: "export"
source: "/out"
format: "string"
},
]
}

View File

@ -3,31 +3,29 @@ package testing
test: {
string
#dagger: {
compute: [
{
do: "load"
from: [{do: "fetch-container", ref: "alpine"}]
},
{
do: "exec"
args: ["sh", "-c", """
#dagger: compute: [
{
do: "load"
from: [{do: "fetch-container", ref: "alpine"}]
},
{
do: "exec"
args: ["sh", "-c", """
ls -lA /lol > /out
"""]
dir: "/"
mount: something: {
input: [{
do: "fetch-container"
ref: "alpine"
}]
path: "/lol"
}
},
{
do: "export"
source: "/out"
format: "string"
},
]
}
dir: "/"
mount: something: {
input: [{
do: "fetch-container"
ref: "alpine"
}]
path: "/lol"
}
},
{
do: "export"
source: "/out"
format: "string"
},
]
}

View File

@ -3,25 +3,23 @@ package testing
test: {
string
#dagger: {
compute: [
{
do: "load"
from: [{do: "fetch-container", ref: "alpine"}]
},
{
do: "exec"
args: ["sh", "-c", """
#dagger: compute: [
{
do: "load"
from: [{do: "fetch-container", ref: "alpine"}]
},
{
do: "exec"
args: ["sh", "-c", """
echo "NOT SURE WHAT TO TEST YET" > /out
"""]
dir: "/"
mount: something: "tmpfs"
},
{
do: "export"
source: "/out"
format: "string"
},
]
}
dir: "/"
mount: something: "tmpfs"
},
{
do: "export"
source: "/out"
format: "string"
},
]
}