Skip to content

Commit bdc173c

Browse files
committed
Update docs for new container- Makefile targets
1 parent 641c23d commit bdc173c

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

content/en/docs/contribute/new-content/open-a-pr.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,21 +217,37 @@ When you are ready to submit a pull request, commit your changes.
217217

218218
It's a good idea to preview your changes locally before pushing them or opening a pull request. A preview lets you catch build errors or markdown formatting problems.
219219
220-
You can either build the website's docker image or run Hugo locally. Building the docker image is slower but displays [Hugo shortcodes](/docs/contribute/style/hugo-shortcodes/), which can be useful for debugging.
220+
You can either build the website's container image or run Hugo locally. Building the container image is slower but displays [Hugo shortcodes](/docs/contribute/style/hugo-shortcodes/), which can be useful for debugging.
221221

222222
{{< tabs name="tab_with_hugo" >}}
223223
{{% tab name="Hugo in a container" %}}
224224

225+
{{< note >}}
226+
The commands below use Docker as default container engine. Set the `CONTAINER_ENGINE` environment variable to override this behaviour.
227+
{{< /note >}}
228+
225229
1. Build the image locally:
226230

227231
```bash
228-
make docker-image
232+
# Use docker (default)
233+
make container-image
234+
235+
### OR ###
236+
237+
# Use podman
238+
CONTAINER_ENGINE=podman make container-image
229239
```
230240

231241
2. After building the `kubernetes-hugo` image locally, build and serve the site:
232242

233243
```bash
234-
make docker-serve
244+
# Use docker (default)
245+
make container-serve
246+
247+
### OR ###
248+
249+
# Use podman
250+
CONTAINER_ENGINE=podman make container-serve
235251
```
236252

237253
3. In a web browser, navigate to `https://localhost:1313`. Hugo watches the

0 commit comments

Comments
 (0)