added test for docker run with ports
Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
17
stdlib/docker/tests/run-ports/ports.cue
Normal file
17
stdlib/docker/tests/run-ports/ports.cue
Normal file
@@ -0,0 +1,17 @@
|
||||
package docker
|
||||
|
||||
import (
|
||||
"alpha.dagger.io/dagger"
|
||||
"alpha.dagger.io/random"
|
||||
)
|
||||
|
||||
suffix: random.#String & {
|
||||
seed: ""
|
||||
}
|
||||
|
||||
run: #Run & {
|
||||
name: "daggerci-test-ports-\(suffix.out)"
|
||||
ref: "nginx"
|
||||
socket: dagger.#Stream & {unix: "/var/run/docker.sock"}
|
||||
ports: ["8080:80"]
|
||||
}
|
Reference in New Issue
Block a user