mirror of
https://github.com/openmv/openmv.git
synced 2025-09-26 23:09:13 +08:00
docker: Fix output files permissions.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
This commit is contained in:
parent
8746c8e549
commit
4e75e7e68c
@ -13,6 +13,8 @@ build-image:
|
|||||||
build-firmware: build-image
|
build-firmware: build-image
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
-e TARGET=$(TARGET) \
|
-e TARGET=$(TARGET) \
|
||||||
|
-e HOST_UID=$(shell id -u) \
|
||||||
|
-e HOST_GID=$(shell id -g) \
|
||||||
-v $(PWD)/build:/workspace/build \
|
-v $(PWD)/build:/workspace/build \
|
||||||
--name $(CONTAINER_NAME) \
|
--name $(CONTAINER_NAME) \
|
||||||
$(DOCKER_IMAGE_NAME):$(DOCKER_TAG) docker/build.sh
|
$(DOCKER_IMAGE_NAME):$(DOCKER_TAG) docker/build.sh
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e -x
|
set -e -x
|
||||||
|
|
||||||
git config --global --add safe.directory '*'
|
|
||||||
git submodule update --init --depth=1
|
git submodule update --init --depth=1
|
||||||
make -C src -j$(nproc) TARGET=$TARGET submodules
|
make -C src -j$(nproc) TARGET=$TARGET submodules
|
||||||
|
|
||||||
@ -13,3 +12,4 @@ make -j$(nproc) -C src TARGET=$TARGET LLVM_PATH=/workspace/llvm/bin
|
|||||||
rm -fr /workspace/build/$TARGET
|
rm -fr /workspace/build/$TARGET
|
||||||
mkdir -p /workspace/build/$TARGET
|
mkdir -p /workspace/build/$TARGET
|
||||||
cp -r src/build/bin/* /workspace/build/$TARGET
|
cp -r src/build/bin/* /workspace/build/$TARGET
|
||||||
|
chown -R ${HOST_UID:-1000}:${HOST_GID:-1000} /workspace/build
|
||||||
|
Loading…
Reference in New Issue
Block a user