GoogleCloudPlatform / gcloud-maven-plugin

Cloud SDK Maven Plugin for Google App Engine (Managed VMs and non Managed VMs)
Apache License 2.0
29 stars 24 forks source link

Maven gcloud:run does not use Dockerfile #48

Closed waprin closed 9 years ago

waprin commented 9 years ago

Trying to run this project:

https://github.com/GoogleCloudPlatform/cloud-bigtable-examples/tree/master/java/managed-vm-gae

Results in maven not picking up Dockerfile (builds wrong image), not reading environment variables, etc.

@ludoch

ludoch commented 9 years ago

The dockerfile (for now) has to be located at the root of the built War directory. To achieve this, it has to be in the src area of the Web App, so in https://github.com/GoogleCloudPlatform/cloud-bigtable-examples/tree/master/java/managed-vm-gae/src/main/webapp

ludoch commented 9 years ago

See an example of file location at https://github.com/GoogleCloudPlatform/appengine-java-vm-guestbook-extras/tree/master/stage2/src/main/webapp