This is Codelabs tutorial.
Template Project: shinyay/codelabs-markdown-template
-
docker pull ghcr.io/shinyay/codelab-spring-cloud-run-gs:1.0.0
docs
: Codelabs Markdown documenttutorial
: Java Project for Tutorialnginx
: Configuration for Nginx
- feature:1
- feature:2
Convert Markdown to HTML
$ cd docs
$ ./claat-export.fish -f *.md
Display Codelabs site
$ ./claat-serve.fish
$ open http://localhost:9090
Docker build
$ cd <PROJECT ROOT>
$ ./docker-build.fish -i/--image <IMAGE_NAME> -t/--tag <VERSION_TAG>
Display Codelabs site
$ docker run --rm -d -p 8080:8080 --name codelab <IMAGE_NAME><VERSION_TAG>
$ open http://localhost:8080
$ gcloud run deploy --image us-central1-docker.pkg.dev/(gcloud config get-value project)/<REPO>/<IMAGE>:<TAG> --platform managed
Create GKE Cluster
$ gcloud container clusters create-auto shinyay-cluster-auto --region us-central1 --project (gcloud config get-value project)
Modify Image Info
image: us-central1-docker.pkg.dev/<PROJECT>/<REPO>/<IMAGE>:<TAG>
Deploy App
$ kubectl apply -f kubernetes/deployment.yml
$ gcloud app deploy
$ gcloud app browse
Released under the MIT license