Files
pay/android/docker/build-docker.sh
T

24 lines
836 B
Bash
Raw Permalink Normal View History

2022-09-15 00:24:08 +02:00
#!/bin/bash
2022-09-21 12:27:27 +02:00
if test "$1" != "force"; then
if test `id -u` != "1000";
then
echo "The docker file assumes you compile using a user with UID=1000"
echo "Your current user-id is not 1000, and thus the generated image"
echo "won't work for you. You may want to adjust the Docker file and"
echo "set your user-id in the 'useradd' line."
echo -n "Your current users ID is: "
id -u
2022-11-10 16:42:34 +01:00
echo "If you are ready to build the image, pass in 'force' to this build script"
2022-09-21 12:27:27 +02:00
exit
fi
fi
2025-07-12 14:09:19 +02:00
QtVersion=v6.8.3
2022-09-15 11:58:32 +02:00
2022-09-15 00:24:08 +02:00
cd `dirname $0`
2025-11-15 22:29:54 +01:00
docker buildx build . --tag flowee/buildenv-android:202511 --build-arg QtVersion=$QtVersion
2022-09-15 00:24:08 +02:00
2022-09-26 16:22:27 +02:00
# copy newly downloaded items to the cache (does nothing by default)
docker run --rm -ti -v `pwd`:/mnt flowee/buildenv-android:$QtVersion /usr/local/bin/copyBack.sh