AppEngine Golang Docker Images built on Google CloudSDK Alpine Linux
latest
(Dockerfile)
Start using your devserver: docker run --rm -it -h localhost -v $(pwd):/usr/src/app -w /usr/src/app -p 8080:8080 zenika/alpine-appengine-go
dev_appserver.py app.yaml
Start a bash using docker run --rm -it -h localhost -v ~/.m2:/root/.m2 -v $(pwd):/usr/src/app -v ~/.config/gcloud:/root/.config/gcloud -w /usr/src/app -p 8080:8080 zenika/alpine-appengine-go
We mount .config/gcloud
to save the credentials.
Then use the following command:
gcloud auth login
#copy paste the url in your browser and then paste the token in your bash
gcloud config set project $PROJECT
gcloud config set app/promote_by_default false
gcloud app deploy --version $VERSION
docker run --rm zenika/alpine-appengine-go go version
go version go1.9.7 linux/amd64