GoogleCloudPlatform / GoogleCloudPlatform/cloud-run-button
Optional Build Logs
- Dominant language
- Go
- Stars
- 553
- Forks
- 98
- PR merge metrics
- No merged PRs in 30d
Description
It is nice to default to the cleanliness of not displaying build logs, but it would be cool if the user could see them. I remember @ahmetb indicating it might be hard to implement, but something like the following would be cool:
```
[ ! ] Attempting to build this application with its Dockerfile. Press Esc at any time to see the build output.
[ ! ] FYI, running the following command:
docker build -t gcr.io/jw-demo/hello-netcat hello-netcat
Sending build context to Docker daemon 74.75kB
Step 1/2 : FROM alpine
---> a24bb4013296
Step 2/2 : ENTRYPOINT while :; do nc -k -l -p $PORT -e sh -c 'echo -e "HTTP/1.1 200 OK\n\n hello, world"'; done
---> Using cache
---> c5c6654985d8
Successfully built c5c6654985d8
Successfully tagged gcr.io/jw-demo/hello-netcat:latest
[ ✓ ] Built container image gcr.io/jw-demo/hello-netcat
[ ! ] FYI, running the following command:
docker push gcr.io/jw-demo/hello-netcat
[ ✓ ] Pushed container image to Google Container Registry.
[ ! ] FYI, running the following command:
gcloud run deploy hello-netcat\
--project=jw-demo\
--platform=managed\
--region=us-central1\
--image=gcr.io/jw-demo/hello-netcat\
--allow-unauthenticated
[ ✓ ] Successfully deployed service hello-netcat to Cloud Run.
* This application is billed only when it's handling requests.
* Manage this application at Cloud Console:
https://console.cloud.google.com/run/detail/us-central1/hello-netcat?project=jw-demo
* Learn more about Cloud Run:
https://cloud.google.com/run/docs
[ ✓ ] Your application is now live here:
https://hello-netcat-weurlhfjnq-uc.a.run.app
```
Contributor guide
Assessment
This issue has not been assessed yet.