Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
Richard Jones
2021-10-05 12:04:10 -06:00
parent 35a86441bf
commit 4c7d90f9bc
2 changed files with 26 additions and 26 deletions

View File

@@ -1,19 +1,19 @@
package todoapp
import (
"alpha.dagger.io/dagger"
"alpha.dagger.io/docker"
"alpha.dagger.io/dagger"
"alpha.dagger.io/docker"
)
// run our todoapp in our local Docker engine
run: docker.#Run & {
ref: push.ref
name: "todoapp"
ports: ["8080:80"]
socket: dagger.#Stream & dagger.#Input
ref: push.ref
name: "todoapp"
ports: ["8080:80"]
socket: dagger.#Stream & dagger.#Input
}
// push to our local registry
// this concrete value satisfies the string constraint
// we defined in the previous file
push: target: "localhost:5000/todoapp"
push: target: "localhost:5000/todoapp"