This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/tests/plan/context/services/unix/main.cue
Richard Jones a78b84429d refactored to follow the original stream test
Signed-off-by: Richard Jones <richard@dagger.io>
2021-12-15 10:22:38 -07:00

26 lines
452 B
CUE

package main
import (
"alpha.dagger.io/dagger/engine"
"alpha.dagger.io/dagger/op"
"alpha.dagger.io/alpine"
)
engine.#Plan & {
context: services: dockerSocket: unix: "/var/run/docker.sock"
actions: {
load: op.#Load & {
from: alpine.#Image & {
package: "docker-cli": true
}
}
exec: op.#Exec & {
always: true
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
args: ["docker", "info"]
}
}
}