Skip to content

Commit 80bcedd

Browse files
authored
Add missing console styling to Minicube and Kubernetes code block docs in light mode (#1874)
1 parent 97a3885 commit 80bcedd

File tree

2 files changed

+23
-15
lines changed

2 files changed

+23
-15
lines changed

deployment/kubernetes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ curl https://sdk.cloud.google.com | bash
3838
Versioning: The 0.1.0 is the version. This value should be the same as the attribute `appVersion` in `Chart.yaml`.
3939
Infos for [Google Container pulling and pushing](https://cloud.google.com/container-registry/docs/pushing-and-pulling)
4040

41-
```
41+
```console
4242
docker build -t gcr.io/test-api-platform/php:0.1.0 -t gcr.io/test-api-platform/php:latest api --target php_prod
4343
docker build -t gcr.io/test-api-platform/caddy:0.1.0 -t gcr.io/test-api-platform/caddy:latest api --target caddy_prod
4444
docker build -t gcr.io/test-api-platform/pwa:0.1.0 -t gcr.io/test-api-platform/pwa:latest pwa --target prod

deployment/minikube.md

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ If you have no existing installation of Minikube on your computer, [follow the o
66

77
When Minikube is installed, start the cluster:
88

9-
minikube start --addons registry --addons dashboard
9+
```console
10+
minikube start --addons registry --addons dashboard
11+
```
1012

1113
The previous command starts Minikube with a Docker registry (we'll use it in the next step) and with the Kubernetes dashboard.
1214

@@ -18,27 +20,33 @@ Finally, [install Helm](https://helm.sh/docs/intro/install/). We'll use it to de
1820

1921
First, build the images:
2022

21-
docker build -t localhost:5000/php api --target api_platform_php
22-
docker build -t localhost:5000/caddy api --target api_platform_caddy
23-
docker build -t localhost:5000/pwa pwa --target api_platform_pwa_prod
23+
```console
24+
docker build -t localhost:5000/php api --target api_platform_php
25+
docker build -t localhost:5000/caddy api --target api_platform_caddy
26+
docker build -t localhost:5000/pwa pwa --target api_platform_pwa_prod
27+
```
2428

2529
Then push the images in the registry installed in Minikube:
2630

27-
docker push localhost:5000/php
28-
docker push localhost:5000/caddy
29-
docker push localhost:5000/pwa
31+
```console
32+
docker push localhost:5000/php
33+
docker push localhost:5000/caddy
34+
docker push localhost:5000/pwa
35+
```
3036

3137
## Deploying
3238

3339
Finally, deploy the project using the Helm chart:
3440

35-
$ helm install my-project helm/api-platform \
36-
--set php.image.repository=localhost:5000/php \
37-
--set php.image.tag=latest \
38-
--set caddy.image.repository=localhost:5000/caddy \
39-
--set caddy.image.tag=latest \
40-
--set pwa.image.repository=localhost:5000/pwa \
41-
--set pwa.image.tag=latest
41+
```console
42+
$ helm install my-project helm/api-platform \
43+
--set php.image.repository=localhost:5000/php \
44+
--set php.image.tag=latest \
45+
--set caddy.image.repository=localhost:5000/caddy \
46+
--set caddy.image.tag=latest \
47+
--set pwa.image.repository=localhost:5000/pwa \
48+
--set pwa.image.tag=latest
49+
```
4250

4351
Copy and paste the commands displayed in the terminal to enable the port forwarding then go to `http://localhost:8080` to access your application!
4452

0 commit comments

Comments
 (0)