Skip to content

Commit d4bf6a3

Browse files
committed
WIP: support platform arg
1 parent 8c1311b commit d4bf6a3

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
11
#!/bin/bash
2+
for arg in "$@"; do
3+
case $arg in
4+
BUILD_PLATFORM=*) BUILD_PLATFORM="${arg#*=}" ;;
5+
esac
6+
done
27

3-
docker run -it --rm -v "$(pwd)/prof-results:/etc/prof-results" --name freeradius-radenv-container freeradius-prof:latest
8+
PLATFORM_ARG=""
9+
if [ "${BUILD_PLATFORM}" = "amd64" ]; then
10+
PLATFORM_ARG="--platform=linux/amd64"
11+
elif [ -n "${BUILD_PLATFORM}" ]; then
12+
PLATFORM_ARG="--platform=linux/${BUILD_PLATFORM}"
13+
fi
14+
15+
docker run -it --rm ${PLATFORM_ARG} -v "$(pwd)/prof-results:/etc/prof-results" --name freeradius-radenv-container freeradius-prof:latest

0 commit comments

Comments
 (0)