Modify getting started doc to integrate http.#Wait, fix doc dependency issue

Signed-off-by: guillaume <guillaume.derouville@gmail.com>
This commit is contained in:
guillaume
2021-11-23 19:26:02 +01:00
parent 84952b1725
commit 475e47de09
4 changed files with 23 additions and 4 deletions

View File

@@ -3,6 +3,7 @@ package todoapp
import (
"alpha.dagger.io/dagger"
"alpha.dagger.io/docker"
"alpha.dagger.io/http"
)
// docker local socket
@@ -24,10 +25,16 @@ registry: docker.#Run & {
socket: dockerSocket
}
// As we pushed the registry to our local docker
// we need to wait for the container to be up
wait: http.#Wait & {
url: "localhost:5042"
}
// push to our local registry
// this concrete value satisfies the string constraint
// we defined in the previous file
push: target: "localhost:5042/todoapp"
push: target: "\(wait.url)/todoapp"
// Application URL
appURL: "http://localhost:8080/" & dagger.#Output

View File

@@ -2,9 +2,9 @@ package todoapp
import (
"alpha.dagger.io/dagger"
"alpha.dagger.io/os"
"alpha.dagger.io/docker"
"alpha.dagger.io/js/yarn"
"alpha.dagger.io/os"
)
// Build the source code using Yarn