GoogleCloudPlatform / appengine-plugins

A client Java library to manage App Engine Java applications for any project that performs App Engine Java application management. For example, the Maven, Gradle and Eclipse App Engine plugins, custom user tools, etc.
Apache License 2.0
40 stars 26 forks source link

Run on local AppEngine #1000

Open Burtan opened 2 years ago

Burtan commented 2 years ago

Hey,

please add a task that uses the cloud tools emulators to run the project on your local computer. You could make some tasks to start them yourself, but I didn't find an easy way yet to get the environment variables into the gradle run task yet, besides copying them manually which is cumbersome as the ports vary.

elefeint commented 2 years ago

The plugin's appengineRun task launches the local dev server, which includes some built-in emulators.

Do you need emulators beyond those?

Burtan commented 2 years ago

Hi, sorry I didn't specify the environment enough.

When using app engine standard for java 11 there is no appengineRun task. I guess it is only for the old java 8 runtime. That's why you need the new beta emulators from gcloud.

elefeint commented 2 years ago

@ludoch Is there a recommended way to use emulators in the newer AppEngine runtimes?

One way would be to take advantage of the testcontainers gcloud project.

Burtan commented 1 year ago

Any news on this?

suztomo commented 3 months ago

Bringing it to p3 label as this is not resolved.