Skip to content

Commit 3395e7b

Browse files
committed
Update a build script locally on macOS
1 parent 2382513 commit 3395e7b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

utilities/lab-build

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,18 @@ current_dir="$(dirname "$(realpath "$0")")"
2020
source $current_dir/detect-container-runtime
2121

2222
volume_mount_flag=""
23+
platform_flag=""
2324
os_name="$(uname -s)" # Detect the operating system, Linux needs `:z` macos does not
2425

2526
# Set the volume mount flag to ":z" if the OS is Linux
2627
if [ "$os_name" = "Linux" ]; then
2728
volume_mount_flag=":z"
29+
platform_flag="--platform linux/amd64"
2830
fi
2931

3032
${CONTAINER_RUNTIME} \
3133
run --rm --name showroom-builder \
32-
--platform linux/amd64 \
34+
${platform_flag} \
3335
-v "./:/antora${volume_mount_flag}" \
3436
docker.io/antora/antora default-site.yml
3537

0 commit comments

Comments
 (0)