Build only a specific package
--only-test <package>
Test only a specific package
---only-arch <arch>
- Build only a specific architecture (amd64 or arm64)
+--arch <arch>
+ Build a specific architecture (amd64 or arm64, defaults to native architecture)
--force-build
Build even if the package exists upstream or if it has already been
built locally
fi
PARSEDOPTS=$(getopt --name "$0" --longoptions \
- help,debug,test-packages,target:,command:,only-test:,force-test,only-build:,force-build,only-arch:,build-version: \
+ help,debug,test-packages,target:,command:,only-test:,force-test,only-build:,force-build,arch:,build-version: \
-- "" "$@")
if [ $? -ne 0 ]; then
exit 1
fi
TARGET=debian10
-ONLY_ARCH=
+ARCH=
FORCE_BUILD=0
COMMAND=
DEBUG=
--only-build)
ONLY_BUILD="$2"; shift
;;
- --only-arch)
- ONLY_ARCH="$2"; shift
+ --arch)
+ ARCH="$2"; shift
;;
--debug)
DEBUG=" --debug"
--env ARVADOS_DEBUG=$ARVADOS_DEBUG \
--env "ONLY_BUILD=$ONLY_BUILD" \
--env "FORCE_BUILD=$FORCE_BUILD" \
- --env "ONLY_ARCH=$ONLY_ARCH" \
+ --env "ARCH=$ARCH" \
"$IMAGE" $COMMAND
then
echo