{"id":17793397,"url":"https://github.com/adnanhodzic/wp-cloud-run","last_synced_at":"2025-08-13T04:33:33.055Z","repository":{"id":258795527,"uuid":"868400099","full_name":"AdnanHodzic/wp-cloud-run","owner":"AdnanHodzic","description":"Ultimate WordPress setup on (GCP) Cloud Run, Cloud SQL \u0026 GCS buckets","archived":false,"fork":false,"pushed_at":"2025-06-10T05:28:37.000Z","size":70313,"stargazers_count":10,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-29T03:12:02.279Z","etag":null,"topics":["cloud","cloudflare","cloudrun","cloudrun-service","cloudsql","config","container","gcp","gcs","googlecloud","setup","sql","ultimate","wordpress","wp","wp-cloud-run","wp-installation"],"latest_commit_sha":null,"homepage":"https://foolcontrol.org/?p=4802","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AdnanHodzic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-06T09:38:08.000Z","updated_at":"2025-06-08T10:30:16.000Z","dependencies_parsed_at":"2025-01-14T12:55:49.119Z","dependency_job_id":null,"html_url":"https://github.com/AdnanHodzic/wp-cloud-run","commit_stats":null,"previous_names":["adnanhodzic/wp-cloud-run"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AdnanHodzic/wp-cloud-run","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdnanHodzic%2Fwp-cloud-run","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdnanHodzic%2Fwp-cloud-run/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdnanHodzic%2Fwp-cloud-run/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdnanHodzic%2Fwp-cloud-run/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AdnanHodzic","download_url":"https://codeload.github.com/AdnanHodzic/wp-cloud-run/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdnanHodzic%2Fwp-cloud-run/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270182813,"owners_count":24541311,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloud","cloudflare","cloudrun","cloudrun-service","cloudsql","config","container","gcp","gcs","googlecloud","setup","sql","ultimate","wordpress","wp","wp-cloud-run","wp-installation"],"created_at":"2024-10-27T11:08:24.793Z","updated_at":"2025-08-13T04:33:28.029Z","avatar_url":"https://github.com/AdnanHodzic.png","language":"PHP","funding_links":["https://github.com/sponsors/AdnanHodzic","https://www.paypal.com/donate?business=7AHCP5PU95S4Y\u0026no_recurring=0\u0026item_name=Purpose%3A+Contribution+for+work+on+wp-cloud-run\u0026currency_code=EUR"],"categories":[],"sub_categories":[],"readme":"## wp-cloud-run: Ultimate WordPress (GCP) Cloud Run setup\n\n* Blog post \u0026 discussion: [FoolControl - wp-cloud-run: Ultimate WordPress (GCP) Cloud Run setup](https://foolcontrol.org/?p=4802)\n\n* [Watch the \"wp-cloud-run: Ultimate WordPress setup on (GCP) Cloud Run\" playlist on YouTube](https://www.youtube.com/playlist?list=PL83G0TLSeXREwjHDZPsV_34azAmniL81V) \n\nwp-cloud-run architecture:\n\n\u003cimg src=\"https://github.com/user-attachments/assets/532a7b10-4508-426a-8b44-b6a367e02027\" alt=\"wp-cloud-run architecture\" width=\"600\" align=\"none\"\u003e\n\n\n\n### container-build-push.go\n\nBuild and push a wp-cloud-run (WordPress app) container image to Google Cloud Registry\n\n#### Prerequisite software installed:\n\n* docker \u0026 docker compose\n* golang\n* gcloud (google-cloud-sdk)\n\n#### Requirements:\n\n* Login to your Google Cloud account, i.e: `gcloud auth login`\n* Configure Docker to automatically authenticate with Google Artifact Registry in the \"europe-west4\" region:\n`gcloud auth configure-docker europe-west4-docker.pkg.dev`\n* Install Golang Docker credential helpers for managing Docker credentials. On Debian based Linux distros run, i.e:\n`apt install golang-docker-credential-helpers`\n\n### How to run \u0026 use container-build-push.go \n\nAfter filling out the variable values, run: `go run container-build-push.go`\n\n#### Variables\n\nPlease note all variables files will be defined as environment variables in [.env file](https://raw.githubusercontent.com/AdnanHodzic/wp-cloud-run/main/.env). Which will also be added to .gitignore so you don't push potentially secret data to Github repo.\n\n* `WP_VERSION` will pull specified version of the WordPress image from [Docker Hub](https://hub.docker.com/_/wordpress).\n* `WP_CLOUD_RUN_IMG` is a variable that represents the container image updates we have made.\n* `GCP_PROJECT` specify Google Cloud Project ID which will be used\n* `GAR_REGION` specify Artifact Registry region to which image will be uploaded (pushed) to\n* `GAR_REPO` specify Artifact Registry repository name to which image will be uploaded (pushed) to\n\n#### Options:\n\nBy default (without specifying any parameters) both container build \u0026 push operations will be run.\n\n* `-help` | list of options\n* `-push=false` | Example of only doing an image build without performing push\n\n### How to use \"wp-cloud\"run\" for local WordPress development\n\n[![Watch the video](https://img.youtube.com/vi/PLRKrG5Q15w/0.jpg)](https://youtu.be/PLRKrG5Q15w)\n\n### Donate\n\nIf 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.\n\n* [Become a sponsor to Adnan Hodzic on Github](https://github.com/sponsors/AdnanHodzic) to acknowledge my efforts and help project's further open source development.\n\nAlternatively:\n\n* [Paypal](https://www.paypal.com/donate?business=7AHCP5PU95S4Y\u0026no_recurring=0\u0026item_name=Purpose%3A+Contribution+for+work+on+wp-cloud-run\u0026currency_code=EUR)\n\n* Bitcoin: `bc1qlncmgdjyqy8pe4gad4k2s6xtyr8f2r3ehrnl87`\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadnanhodzic%2Fwp-cloud-run","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadnanhodzic%2Fwp-cloud-run","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadnanhodzic%2Fwp-cloud-run/lists"}