Skip to content

Commit 072a131

Browse files
dhi: add script customzation
Signed-off-by: Craig Osterhout <[email protected]>
1 parent 13ea608 commit 072a131

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

content/manuals/dhi/how-to/customize.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ To customize a Docker Hardened Image, follow these steps:
3333
details.
3434

3535
7. Select the image version you want to customize.
36-
8. Add packages.
36+
8. Optional. Add packages.
3737

3838
1. In the **Packages** drop-down, select the packages you want to add to the
3939
image.
@@ -71,7 +71,19 @@ To customize a Docker Hardened Image, follow these steps:
7171
> image build still succeeds, but you may have issues when running the
7272
> image.
7373
74-
9. Select **Next: Configure** and then configure the following options.
74+
3. In the **Scripts** section, you can add, edit, or remove scripts.
75+
76+
Scripts let you add files to the container image that you can access at runtime. They are not executed during
77+
the build process. This is useful for services that require pre-start initialization, such as setup scripts or
78+
file writes to directories like `/var/lock` or `/out`.
79+
80+
You must specify the following:
81+
- The path where the script will be placed
82+
- The script content
83+
- The UID and GID ownership of the script
84+
- The octal file permissions of the script
85+
86+
10. Select **Next: Configure** and then configure the following options.
7587

7688
1. Specify a suffix that is appended to the customized image's tag. For
7789
example, if you specify `custom` when customizing the `dhi-python:3.13`
@@ -87,7 +99,7 @@ To customize a Docker Hardened Image, follow these steps:
8799
values that the image will contain.
88100
8. Add [annotations](/build/metadata/annotations/) to the image.
89101
9. Add [labels](/reference/dockerfile/#label) to the image.
90-
10. Select **Create Customization**.
102+
11. Select **Create Customization**.
91103

92104
A summary of the customization appears. It may take some time for the image
93105
to build. Once built, it will appear in the **Tags** tab of the repository,

0 commit comments

Comments
 (0)