kopia lustrzana https://github.com/OpenDroneMap/WebODM
Update to use new run script for Intel GPUs.
rodzic
94feb013f7
commit
d1f9c58e4f
|
@ -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:
|
||||||
|
|
11
webodm.sh
11
webodm.sh
|
@ -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)
|
||||||
|
|
Ładowanie…
Reference in New Issue