Skip to content

Commit 9585853

Browse files
[version-4-4] docs: DOC-2374 Edit Docker customization step for Edgeforge (#9728) (#9748)
* docs: DOC-2374 Edit Docker customization step for Edgeforge (#9728) * Add Docker customization warning to EdgeForge * ci: auto-formatting prettier issues * Update palette-canvos.md * ci: auto-formatting prettier issues * Update palette-canvos.md * Update palette-canvos.md * ci: auto-formatting prettier issues * Update palette-canvos.md * ci: auto-formatting prettier issues * Update palette-canvos.md * ci: auto-formatting prettier issues * Empty commit to trigger security checks --------- Co-authored-by: svetlana-efimova <205686560+svetlana-efimova@users.noreply.github.com> * Add identation * Empty commit to trigger security checks --------- Co-authored-by: svetlana-efimova <205686560+svetlana-efimova@users.noreply.github.com>
1 parent 1b52246 commit 9585853

File tree

1 file changed

+25
-16
lines changed

1 file changed

+25
-16
lines changed

docs/docs-content/clusters/edge/edgeforge-workflow/palette-canvos/palette-canvos.md

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -648,29 +648,38 @@ git checkout v4.4.12
648648
649649
:::
650650
651-
11. Use the following command to append the [WireGuard](https://www.wireguard.com/install/) installation instructions to
652-
the Dockerfile. You can install more tools and dependencies and configure the image to meet your needs. Add your
653-
customizations below the line tagged with the `Add any other image customizations here` comment in the Dockerfile.
654-
Do not edit or add any lines before this tagged comment.
651+
11. Customize the `Dockerfile` as needed. You can install tools and dependencies and make other image modifications. Add
652+
your customizations below the line tagged with the `Add any other image customizations here` comment in the
653+
`Dockerfile`. Do not edit or add any lines before this tagged comment.
655654
656-
```bash
657-
echo 'RUN sudo zypper refresh && sudo zypper install --non-interactive wireguard-tools' >> Dockerfile
658-
```
655+
:::warning
659656
660-
View the newly created file to ensure the instruction to install WireGuard is appended correctly.
657+
When customizing the `Dockerfile` to add custom binaries, install them into `/usr/bin`. Do not use `/usr/local`, as
658+
this directory is mounted from the persistent partition at boot and makes files added during image build unavailable
659+
at runtime.
661660
662-
```bash
663-
cat Dockerfile
661+
:::
662+
663+
For example, you can add the following line to the `Dockerfile` to install
664+
[WireGuard](https://www.wireguard.com/install/).
665+
666+
```dockerfile
667+
...
668+
###########################Add any other image customizations here #######################
669+
670+
RUN sudo zypper refresh && sudo zypper install --non-interactive wireguard-tools
664671
```
665672
666-
:::warning
673+
Package installation commands in the `Dockerfile` must be non-interactive. Ensure you use the appropriate
674+
non-interactive flag for your package manager, for example, `--non-interactive` for Zypper or `--yes` for Advanced
675+
Package Tool (APT). Interactive prompts cause the image build to fail. This guidance applies to all dependencies you
676+
add through the `Dockerfile`.
667677
668-
Using the `-y` option with the `sudo zypper install` command is critical to successfully build the images. The
669-
default behavior for package installations is to prompt the user for permission to install the package. A user
670-
prompt will cause the image creation process to fail. This guidance applies to all dependencies you add through the
671-
`Dockerfile`.
678+
View the `Dockerfile` to ensure the instruction to install WireGuard is appended correctly.
672679
673-
:::
680+
```bash
681+
cat Dockerfile
682+
```
674683
675684
12. Issue the command below to save your tenant registration token to a local variable. Replace `[your_token_here]` with
676685
your actual registration token.

0 commit comments

Comments
 (0)