implemented services unix and npipe complete with test

Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
Richard Jones
2021-12-10 16:06:14 -07:00
parent ba984c4d03
commit 2569e76eeb
4 changed files with 79 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
package main
import (
"alpha.dagger.io/dagger/engine"
"alpha.dagger.io/docker"
)
engine.#Plan & {
context: services: dockerSocket: unix: "/var/run/docker.sock"
actions: nginx: docker.#Run & {
ref: "nginxdemos/nginx-hello"
name: "nginx-hello"
ports: ["8080:8080"]
socket: context.services.dockerSocket.service
}
}