We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2382513 commit 3395e7bCopy full SHA for 3395e7b
utilities/lab-build
@@ -20,16 +20,18 @@ current_dir="$(dirname "$(realpath "$0")")"
20
source $current_dir/detect-container-runtime
21
22
volume_mount_flag=""
23
+platform_flag=""
24
os_name="$(uname -s)" # Detect the operating system, Linux needs `:z` macos does not
25
26
# Set the volume mount flag to ":z" if the OS is Linux
27
if [ "$os_name" = "Linux" ]; then
28
volume_mount_flag=":z"
29
+ platform_flag="--platform linux/amd64"
30
fi
31
32
${CONTAINER_RUNTIME} \
33
run --rm --name showroom-builder \
- --platform linux/amd64 \
34
+ ${platform_flag} \
35
-v "./:/antora${volume_mount_flag}" \
36
docker.io/antora/antora default-site.yml
37
0 commit comments