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?
gcloud beta app gen-configas suggested and then tagged it usingdocker tagand pushed it to the registry usinggcloud docker -- pushas per (cloud.google.com/container-registry/docs/pushing-and-pulling). I discovered that atgcloud app deployapp 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