Zenika / alpine-appengine-go

AppEngine Golang Docker Images built on Google CloudSDK Alpine Linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker Build Status Docker Pulls

alpine-appengine-go

AppEngine Golang Docker Images built on Google CloudSDK Alpine Linux

Supported tags and respective Dockerfile links

Usage

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

Default command

dev_appserver.py app.yaml

Deploy commands

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

Golang version (latest)

docker run --rm zenika/alpine-appengine-go go version
go version go1.9.7 linux/amd64

About

AppEngine Golang Docker Images built on Google CloudSDK Alpine Linux


Languages

Language:Dockerfile 100.0%