Europa: reconcile engine.#Exec spec with implementation

Signed-off-by: Solomon Hykes <solomon@dagger.io>
This commit is contained in:
Solomon Hykes
2021-12-14 22:33:11 +00:00
committed by Solomon Hykes
parent 19322a7cb9
commit 9e859e6233
2 changed files with 27 additions and 25 deletions

View File

@@ -28,6 +28,7 @@ import (
mounts: [name=string]: engine.#Mount
// Expose network ports
// FIXME: investigate feasibility
ports: [name=string]: {
frontend: dagger.#Service
backend: {
@@ -84,12 +85,7 @@ import (
// Username or UID to ad
// User identity for this command
// Examples: "root", "0", "1002"
user: string
// Optionally attach to command standard streams
stdin: dagger.#Stream | *null
stdout: dagger.#Stream | *null
stderr: dagger.#Stream | *null
user: string | *"root"
// Output fields
{
@@ -131,13 +127,12 @@ import (
// Actually execute the command
_exec: engine.#Exec & {
args: [cmd.name] + cmd._flatFlags + cmd.args
input: image.rootfs
"mounts": [ for mnt in mounts {mnt}]
environ: [ for k, v in env {"\(k)=\(v)"}]
args: [cmd.name] + cmd._flatFlags + cmd.args
input: image.rootfs
"mounts": mounts
"env": env
"workdir": workdir
"stdin": stdin
// FIXME: user
"user": user
}
}