@@ -33,14 +33,13 @@ If you do not have gcloud yet, install it with these command.
33
33
curl https://sdk.cloud.google.com | bash
34
34
```
35
35
36
- #### 1. Build the PHP and Caddy Docker images and tag them
36
+ #### 1. Build the PHP and PWA Docker images and tag them
37
37
38
38
Versioning: The 0.1.0 is the version. This value should be the same as the attribute ` appVersion ` in ` Chart.yaml ` .
39
39
Infos for [ Google Container pulling and pushing] ( https://cloud.google.com/container-registry/docs/pushing-and-pulling )
40
40
41
41
``` console
42
- docker build -t gcr.io/test-api-platform/php:0.1.0 -t gcr.io/test-api-platform/php:latest api --target php_prod
43
- docker build -t gcr.io/test-api-platform/caddy:0.1.0 -t gcr.io/test-api-platform/caddy:latest api --target caddy_prod
42
+ docker build -t gcr.io/test-api-platform/php:0.1.0 -t gcr.io/test-api-platform/php:latest api --target frankenphp_prod
44
43
docker build -t gcr.io/test-api-platform/pwa:0.1.0 -t gcr.io/test-api-platform/pwa:latest pwa --target prod
45
44
```
46
45
@@ -55,22 +54,19 @@ docker build -t gcr.io/test-api-platform/pwa:0.1.0 -t gcr.io/test-api-platform/p
55
54
``` console
56
55
gcloud auth configure-docker
57
56
docker push gcr.io/test-api-platform/php
58
- docker push gcr.io/test-api-platform/caddy
59
57
docker push gcr.io/test-api-platform/pwa
60
58
```
61
59
62
60
Optional: push the version images:
63
61
64
62
``` console
65
63
docker push gcr.io/test-api-platform/php:0.1.0
66
- docker push gcr.io/test-api-platform/caddy:0.1.0
67
64
docker push gcr.io/test-api-platform/pwa:0.1.0
68
65
```
69
66
70
67
The result should look similar to these images.
71
68
72
69
![ Example of Google Images - Overview] ( images/google-image-overview.png )
73
- ![ Example of Google Caddy Image - Details] ( images/google-image-caddy-details.png )
74
70
75
71
## Deploying with Helm 3
76
72
@@ -104,8 +100,6 @@ helm upgrade main ./helm/api-platform --namespace=default --create-namespace --w
104
100
--install \
105
101
--set "php.image.repository=gcr.io/test-api-platform/php" \
106
102
--set php.image.tag=latest \
107
- --set "caddy.image.repository=gcr.io/test-api-platform/caddy" \
108
- --set caddy.image.tag=latest \
109
103
--set "pwa.image.repository=gcr.io/test-api-platform/pwa" \
110
104
--set pwa.image.tag=latest \
111
105
--set php.appSecret='!ChangeMe!' \
@@ -180,16 +174,13 @@ kubectl --namespace=bar exec -it $PHP_POD -- bin/console doctrine:schema:create
180
174
helm upgrade api-platform ./helm/api-platform --namespace=default \
181
175
--set "php.image.repository=gcr.io/test-api-platform/php" \
182
176
--set php.image.tag=latest \
183
- --set "caddy.image.repository=gcr.io/test-api-platform/caddy" \
184
- --set caddy.image.tag=latest \
185
177
--set "pwa.image.repository=gcr.io/test-api-platform/pwa" \
186
178
--set pwa.image.tag=latest \
187
179
--set php.appSecret='!ChangeMe!' \
188
180
--set postgresql.postgresqlPassword='!ChangeMe!' \
189
181
--set postgresql.persistence.enabled=true \
190
182
--set "corsAllowOrigin=^https?://[a-z\]*\.mywebsite.com$" \
191
183
--set php.image.pullPolicy=Always \
192
- --set caddy.image.pullPolicy=Always \
193
184
--set pwa.image.pullPolicy=Always
194
185
```
195
186
0 commit comments