0
votes

I am trying to set up a development server on a Google Compute Engine VM that is as close as possible to the App Engine Flexible environment deployment of the Wordpress installation built through this tutorial.

This guides you through on how to:

Get the source
1. https://github.com/GoogleCloudPlatform/php-docs-samples.git
2. /php-docs-samples/wordpress

Install the dependencies
3. composer install

Setup the App
4. php wordpress-helper.php setup

Deploy the App
5. gcloud app deploy

Is it possible to find the Dockerfile equivalent of the App Engine deployment, or generate an image of the app's instance that can be deployed to a VM instance?

2
I have not had a chance to implement it yet but this page talks about getting one setup (cloud.google.com/appengine/docs/flexible/php/…) and this Github account has the actual docker files if the first link doesn't work (github.com/GoogleCloudPlatform/php-docker) - dwelling
Thank you for the advice. I created a docker file image using gcloud beta app gen-config as suggested and then tagged it using docker tag and pushed it to the registry using gcloud docker -- push as per (cloud.google.com/container-registry/docs/pushing-and-pulling). I discovered that at gcloud app deploy app engine creates images and uploads them to the image registry anyway so this was redundant. When I installed my image onto a VM instance, it didn't have any of the wordpress-helper.php files so unfortunately it isn't useful as development environment. - Mark
If you want to have a development environment on a GCE instance, can you just follow the steps on the GCE instance? - Takashi Matsuo

2 Answers

0
votes

You can pull the docker image for the deployed app with the following command (replace VERSION and SERVICE).

gcloud docker -- pull $(gcloud --format='value(deployment.container.image)' app versions describe VERSION --service SERVICE)
0
votes

It's a little dusty, but you can try the App Engine Flex emulator I put together :)

https://github.com/JustinBeckwith/flem