Update to use new run script for Intel GPUs.

pull/1066/head
Branton Davis 2021-10-07 22:13:02 -05:00
rodzic 94feb013f7
commit d1f9c58e4f
2 zmienionych plików z 8 dodań i 7 usunięć

Wyświetl plik

@ -10,7 +10,9 @@ services:
environment: environment:
- WO_DEFAULT_NODES - WO_DEFAULT_NODES
node-odm: node-odm:
image: opendronemap/nodeodm:gpu.intel.local environment:
- RENDER_GROUP_ID
image: opendronemap/nodeodm:gpu.intel
devices: devices:
- "/dev/dri" - "/dev/dri"
ports: ports:

Wyświetl plik

@ -54,17 +54,16 @@ detect_gpus(){
fi fi
} }
prepare_intel_gpu_image(){ prepare_intel_render_group(){
if [ "${GPU_INTEL}" = true ]; then if [ "${GPU_INTEL}" = true ]; then
curl -O https://raw.githubusercontent.com/OpenDroneMap/NodeODM/master/Dockerfile.gpu.intel.local export RENDER_GROUP_ID=$(getent group render | cut -d":" -f3)
RENDER_GROUP_ID=$(getent group render | cut -d":" -f3) else
docker build -f Dockerfile.gpu.intel.local -t opendronemap/nodeodm:gpu.intel.local --build-arg RENDER_GROUP_ID="${RENDER_GROUP_ID}" . export RENDER_GROUP_ID=0
rm Dockerfile.gpu.intel
fi fi
} }
detect_gpus detect_gpus
prepare_intel_gpu_image prepare_intel_render_group
case $key in case $key in
--port) --port)