AdnanHodzic / AdnanHodzic/wp-cloud-run
hard-coded image name / Cloud SQL connection issues
- Ngôn ngữ chính
- Go
- Star
- 14
- Fork
- 8
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Hey,
first things first: thank you for the effort. I am currently checking through your project and I'm giving it a shot.
### Image name
There's one issue so far that I saw: in the `container-build-push.go`:
```go
image_name := fmt.Sprintf("%s/%s/%s/wp-cloud-run:%s", repo_region, project, repo_name, ver)
```
The `wp-cloud-run` is hard coded and won't match a different repo name. I also get errors running `docker compose up` stating: _"Error response from daemon: manifest for not found: manifest unknown. Failed to fetch."_.
#### Solution
So a change to the following does the trick:
```go
image_name := fmt.Sprintf("%s/%s/%s/%s:%s", repo_region, project, repo_name, repo_name, ver)
```
### Cloud SQL Issue
Additionally, when setting up Cloud Run, connecting Cloud SQL, I always get the error _"Cloud SQL instance is not reachable. Deploy a new revision adding the Cloud SQL connection."_ There are some updates how to make it work...
#### Solution
1. update the `.env` file for the `HOST` entries to the format: `:/cloudsql/::`
2. ensure that the service account has the role `roles/cloudsql.client` attached
Very best,
Benno
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.