Skip to content

Commit 83c629f

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

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

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

Lines changed: 14 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,18 @@ 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, for example, initialization
77+
scripts. They are not executed during the build process.
78+
79+
You must specify the following:
80+
- The path where the script will be placed
81+
- The script content
82+
- The UID and GID ownership of the script
83+
- The octal file permissions of the script
84+
85+
10. Select **Next: Configure** and then configure the following options.
7586

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

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

0 commit comments

Comments
 (0)