mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-27 22:09:03 +08:00
Merge pull request #627 from pbrier/docker_build_fix
Fixed dockerbuild.sh
This commit is contained in:
@@ -18,6 +18,7 @@ WORKDIR ODrive/Firmware
|
|||||||
# Must attach the firmware tree into the container
|
# Must attach the firmware tree into the container
|
||||||
CMD \
|
CMD \
|
||||||
# Regenerate python interface
|
# Regenerate python interface
|
||||||
|
mkdir ../Firmware/autogen; \
|
||||||
python interface_generator_stub.py \
|
python interface_generator_stub.py \
|
||||||
--definitions odrive-interface.yaml \
|
--definitions odrive-interface.yaml \
|
||||||
--template ../tools/enums_template.j2 \
|
--template ../tools/enums_template.j2 \
|
||||||
@@ -26,6 +27,7 @@ CMD \
|
|||||||
--definitions odrive-interface.yaml \
|
--definitions odrive-interface.yaml \
|
||||||
--template ../tools/arduino_enums_template.j2 \
|
--template ../tools/arduino_enums_template.j2 \
|
||||||
--output ../Arduino/ODriveArduino/ODriveEnums.h && \
|
--output ../Arduino/ODriveArduino/ODriveEnums.h && \
|
||||||
|
python ../tools/odrive/version.py --output ../Firmware/autogen/version.c && \
|
||||||
# Hack around Tup's dependency on FUSE
|
# Hack around Tup's dependency on FUSE
|
||||||
tup init && \
|
tup init && \
|
||||||
tup generate build.sh && \
|
tup generate build.sh && \
|
||||||
|
|||||||
+1
-1
@@ -17,7 +17,7 @@ function build {
|
|||||||
docker build -t odrive-build-img .
|
docker build -t odrive-build-img .
|
||||||
|
|
||||||
echo "Build in container"
|
echo "Build in container"
|
||||||
docker run -v $(pwd):/ODrive --name odrive-build-cont odrive-build-img:latest
|
docker run -it -v $(pwd):/ODrive --name odrive-build-cont --user $(id -u) odrive-build-img:latest
|
||||||
}
|
}
|
||||||
|
|
||||||
function usage {
|
function usage {
|
||||||
|
|||||||
Reference in New Issue
Block a user