-
Blog post & discussion: FoolControl - wp-cloud-run: Ultimate WordPress (GCP) Cloud Run setup
-
Watch the "wp-cloud-run: Ultimate WordPress setup on (GCP) Cloud Run" playlist on YouTube
wp-cloud-run architecture:
Build and push a wp-cloud-run (WordPress app) container image to Google Cloud Registry
- docker & docker compose
- golang
- gcloud (google-cloud-sdk)
- Login to your Google Cloud account, i.e:
gcloud auth login
- Configure Docker to automatically authenticate with Google Artifact Registry in the "europe-west4" region:
gcloud auth configure-docker europe-west4-docker.pkg.dev
- Install Golang Docker credential helpers for managing Docker credentials. On Debian based Linux distros run, i.e:
apt install golang-docker-credential-helpers
After filling out the variable values, run: go run container-build-push.go
Please note all variables files will be defined as environment variables in .env file. Which will also be added to .gitignore so you don't push potentially secret data to Github repo.
WP_VERSION
will pull specified version of the WordPress image from Docker Hub.WP_CLOUD_RUN_IMG
is a variable that represents the container image updates we have made.GCP_PROJECT
specify Google Cloud Project ID which will be usedGAR_REGION
specify Artifact Registry region to which image will be uploaded (pushed) toGAR_REPO
specify Artifact Registry repository name to which image will be uploaded (pushed) to
By default (without specifying any parameters) both container build & push operations will be run.
-help
| list of options-push=false
| Example of only doing an image build without performing push
If you found this project useful, show your support and appreciation by donating or contributing code. Otherwise, giving credits and acknowledgments also goes a long way.
- Become a sponsor to Adnan Hodzic on Github to acknowledge my efforts and help project's further open source development.
Alternatively:
-
Bitcoin:
bc1qlncmgdjyqy8pe4gad4k2s6xtyr8f2r3ehrnl87