Skip to content

Commit 2e995bc

Browse files
authored
Update docker run commands to use current user
1 parent b372ce7 commit 2e995bc

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

compile_all.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
set -euo pipefail
22

3-
docker run --rm -v $(pwd):/src ev3dev-cpp-compiler -mcpu=arm926ej-s -march=armv5te -marm -O3 -Wl,--gc-sections -fdata-sections -ffunction-sections -Wall -Wextra -Wshadow -Werror=return-type -flto src/mains/main1.cpp src/motor.cpp src/position.cpp src/sensor.cpp src/diferential_drive.cpp src/robot.cpp -o main1 -std=c++14 -lm -pthread -lstdc++fs
3+
docker run --rm --user $(id -u):$(id -g) -v $(pwd):/src ev3dev-cpp-compiler -mcpu=arm926ej-s -march=armv5te -marm -O3 -Wl,--gc-sections -fdata-sections -ffunction-sections -Wall -Wextra -Wshadow -Werror=return-type -flto src/mains/main1.cpp src/motor.cpp src/position.cpp src/sensor.cpp src/diferential_drive.cpp src/robot.cpp -o main1 -std=c++14 -lm -pthread -lstdc++fs
44
echo "main1 compiled"
5-
docker run --rm -v $(pwd):/src ev3dev-cpp-compiler -mcpu=arm926ej-s -march=armv5te -marm -O3 -Wl,--gc-sections -fdata-sections -ffunction-sections -Wall -Wextra -Wshadow -Werror=return-type -flto src/mains/main2.cpp src/motor.cpp src/position.cpp src/sensor.cpp src/diferential_drive.cpp src/robot.cpp -o main2 -std=c++14 -lm -pthread -lstdc++fs
5+
docker run --rm --user $(id -u):$(id -g) -v $(pwd):/src ev3dev-cpp-compiler -mcpu=arm926ej-s -march=armv5te -marm -O3 -Wl,--gc-sections -fdata-sections -ffunction-sections -Wall -Wextra -Wshadow -Werror=return-type -flto src/mains/main2.cpp src/motor.cpp src/position.cpp src/sensor.cpp src/diferential_drive.cpp src/robot.cpp -o main2 -std=c++14 -lm -pthread -lstdc++fs
66
echo "main2 compiled"
7-
docker run --rm -v $(pwd):/src ev3dev-cpp-compiler -mcpu=arm926ej-s -march=armv5te -marm -O3 -Wl,--gc-sections -fdata-sections -ffunction-sections -Wall -Wextra -Wshadow -Werror=return-type -flto src/mains/main3.cpp src/motor.cpp src/position.cpp src/sensor.cpp src/diferential_drive.cpp src/robot.cpp -o main3 -std=c++14 -lm -pthread -lstdc++fs
7+
docker run --rm --user $(id -u):$(id -g) -v $(pwd):/src ev3dev-cpp-compiler -mcpu=arm926ej-s -march=armv5te -marm -O3 -Wl,--gc-sections -fdata-sections -ffunction-sections -Wall -Wextra -Wshadow -Werror=return-type -flto src/mains/main3.cpp src/motor.cpp src/position.cpp src/sensor.cpp src/diferential_drive.cpp src/robot.cpp -o main3 -std=c++14 -lm -pthread -lstdc++fs
88
echo "main3 compiled"
9-
docker run --rm -v $(pwd):/src ev3dev-cpp-compiler -mcpu=arm926ej-s -march=armv5te -marm -O3 -Wl,--gc-sections -fdata-sections -ffunction-sections -Wall -Wextra -Wshadow -Werror=return-type -flto src/mains/main4.cpp src/motor.cpp src/position.cpp src/sensor.cpp src/diferential_drive.cpp src/robot.cpp -o main4 -std=c++14 -lm -pthread -lstdc++fs
9+
docker run --rm --user $(id -u):$(id -g) -v $(pwd):/src ev3dev-cpp-compiler -mcpu=arm926ej-s -march=armv5te -marm -O3 -Wl,--gc-sections -fdata-sections -ffunction-sections -Wall -Wextra -Wshadow -Werror=return-type -flto src/mains/main4.cpp src/motor.cpp src/position.cpp src/sensor.cpp src/diferential_drive.cpp src/robot.cpp -o main4 -std=c++14 -lm -pthread -lstdc++fs
1010
echo "main4 compiled"
11-
docker run --rm -v $(pwd):/src ev3dev-cpp-compiler -mcpu=arm926ej-s -march=armv5te -marm -O3 -Wl,--gc-sections -fdata-sections -ffunction-sections -Wall -Wextra -Wshadow -Werror=return-type -flto src/mains/main5.cpp src/motor.cpp src/position.cpp src/sensor.cpp src/diferential_drive.cpp src/robot.cpp -o main5 -std=c++14 -lm -pthread -lstdc++fs
11+
docker run --rm --user $(id -u):$(id -g) -v $(pwd):/src ev3dev-cpp-compiler -mcpu=arm926ej-s -march=armv5te -marm -O3 -Wl,--gc-sections -fdata-sections -ffunction-sections -Wall -Wextra -Wshadow -Werror=return-type -flto src/mains/main5.cpp src/motor.cpp src/position.cpp src/sensor.cpp src/diferential_drive.cpp src/robot.cpp -o main5 -std=c++14 -lm -pthread -lstdc++fs
1212
echo "main5 compiled"
1313

1414
#scp main robot@10.42.0.3:/home/robot/libc++/

0 commit comments

Comments
 (0)