Skip to content

Commit 1e713c1

Browse files
author
givensuman
committed
Add BuildArg example into documentation
Signed-off-by: givensuman <[email protected]>
1 parent b4d81c0 commit 1e713c1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/source/markdown/podman-systemd.unit.5.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2166,7 +2166,7 @@ Yaml=/opt/k8s/deployment.yml
21662166
WantedBy=multi-user.target default.target
21672167
```
21682168

2169-
Example for locally built image to be used in a container:
2169+
Example for locally built image to be used in a container with build-specific arguments:
21702170

21712171
`test.build`
21722172
```
@@ -2178,6 +2178,9 @@ ImageTag=localhost/imagename
21782178
# expecting to find a Containerfile/Dockerfile
21792179
# + other files needed to build the image
21802180
SetWorkingDirectory=unit
2181+
# Set build arguments VERSION and DEBUG
2182+
BuildArg=VERSION=1.0 \
2183+
DEBUG=false
21812184
```
21822185

21832186
`test.container`

0 commit comments

Comments
 (0)