From 22fb91548b9baf32ee267203f8f24b817140becc Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Wed, 17 Nov 2021 16:20:49 -0800 Subject: [PATCH] test: docker-run-ports: fix sandbox escaping of dagger stream Signed-off-by: Andrea Luzzardi --- stdlib/.dagger/env/docker-run-ports/values.yaml | 8 ++++++-- stdlib/docker/tests/run-ports/ports.cue | 4 +++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/stdlib/.dagger/env/docker-run-ports/values.yaml b/stdlib/.dagger/env/docker-run-ports/values.yaml index ff47e285..500ee238 100644 --- a/stdlib/.dagger/env/docker-run-ports/values.yaml +++ b/stdlib/.dagger/env/docker-run-ports/values.yaml @@ -1,6 +1,10 @@ plan: package: ./docker/tests/run-ports name: docker-run-ports +inputs: + dockersocket: + socket: + unix: /var/run/docker.sock sops: kms: [] gcp_kms: [] @@ -16,8 +20,8 @@ sops: TS80V3BnN3BaeDFTRjNBRTAwbWRKcWcK1rH2zWxTQsbSgOs9Ys89ZCP7kVOm1wFe Kv849q+QOvIy9JPYkGgV16Yr3ijFF7z/h0PCicZRI76WYV/3JnbYmg== -----END AGE ENCRYPTED FILE----- - lastmodified: "2021-09-28T15:06:47Z" - mac: ENC[AES256_GCM,data:WF2X4RCio9x459Fv4XK/P933cS9uac3kHA2+kfaft++ndxbHOY0zmOhUvNMmzLtJNTXL7oBADWIIqIiFbaaC0pC+xGq1th+woR3LvAVQi5J0rlDTcdMDPT03KOPdOmsXFDow5jzyn8vPsC59VCys0ZmEnmnHIGufnFy2qKVV0bM=,iv:GUrSk66zhDqxx+rVM9zMDfmcaDBSOOMIeCSViS2cuLU=,tag:rgCoWe//hn8xmeRmbc5ybQ==,type:str] + lastmodified: "2021-11-18T00:19:27Z" + mac: ENC[AES256_GCM,data:TtV35YtlXlZLvE8H+EoPvjJmCowmFftsS2DIifDeIeuRxkyMfk9tq39BemWFjoLKJx3FgFvC8bXGbWi3UMWi8wpzgjqmFVJCDWUdQ6NpdzPCXCVdOdkGUV+F/yjLX0dnsUZHnwSOZco0+uk/sNCWxecBE590brHoJw91j075DXQ=,iv:P8dEwdFnDvvMSJvNK4GXPMbTXbvLEsqoEhoP4K1IPVQ=,tag:LTT6gXDfSMWYttLOXQjidg==,type:str] pgp: [] encrypted_suffix: secret version: 3.7.1 diff --git a/stdlib/docker/tests/run-ports/ports.cue b/stdlib/docker/tests/run-ports/ports.cue index 95a395c0..e820f085 100644 --- a/stdlib/docker/tests/run-ports/ports.cue +++ b/stdlib/docker/tests/run-ports/ports.cue @@ -5,6 +5,8 @@ import ( "alpha.dagger.io/random" ) +dockersocket: dagger.#Stream & dagger.#Input + suffix: random.#String & { seed: "" } @@ -12,6 +14,6 @@ suffix: random.#String & { run: #Run & { name: "daggerci-test-ports-\(suffix.out)" ref: "nginx" - socket: dagger.#Stream & {unix: "/var/run/docker.sock"} + socket: dockersocket ports: ["8080:80"] }