Skip to content

Commit

Permalink
feat: set container names for node-odm services
Browse files Browse the repository at this point in the history
  • Loading branch information
NtskwK committed Sep 4, 2024
1 parent 1a363fb commit 94ad7bf
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
1 change: 1 addition & 0 deletions docker-compose.nodeodm.gpu.intel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ services:
environment:
- RENDER_GROUP_ID
image: opendronemap/nodeodm:gpu.intel
container_name: node-odm-1
devices:
- "/dev/dri"
expose:
Expand Down
1 change: 1 addition & 0 deletions docker-compose.nodeodm.gpu.nvidia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ services:
- WO_DEFAULT_NODES
node-odm:
image: opendronemap/nodeodm:gpu
container_name: node-odm-1
expose:
- "3000"
restart: unless-stopped
Expand Down
1 change: 1 addition & 0 deletions docker-compose.nodeodm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ services:
- WO_DEFAULT_NODES
node-odm:
image: opendronemap/nodeodm
container_name: node-odm-1
expose:
- "3000"
restart: unless-stopped
Expand Down
22 changes: 8 additions & 14 deletions webodm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -473,13 +473,9 @@ start(){
down(){
command="$docker_compose -f docker-compose.yml"

if [ "${GPU_NVIDIA}" = true ]; then
command+=" -f docker-compose.nodeodm.gpu.nvidia.yml"
elif [ "${GPU_INTEL}" = true ]; then
command+=" -f docker-compose.nodeodm.gpu.intel.yml"
else
command+=" -f docker-compose.nodeodm.yml"
fi
command+=" -f docker-compose.nodeodm.gpu.nvidia.yml"
command+=" -f docker-compose.nodeodm.gpu.intel.yml"
command+=" -f docker-compose.nodeodm.yml"

command+=" -f docker-compose.nodemicmac.yml down --remove-orphans"

Expand Down Expand Up @@ -576,13 +572,11 @@ elif [[ $1 = "stop" ]]; then

command="$docker_compose -f docker-compose.yml"

if [ "${GPU_NVIDIA}" = true ]; then
command+=" -f docker-compose.nodeodm.gpu.nvidia.yml"
elif [ "${GPU_INTEL}" = true ]; then
command+=" -f docker-compose.nodeodm.gpu.intel.yml"
else
command+=" -f docker-compose.nodeodm.yml"
fi

command+=" -f docker-compose.nodeodm.gpu.nvidia.yml"
command+=" -f docker-compose.nodeodm.gpu.intel.yml"
command+=" -f docker-compose.nodeodm.yml"


command+=" -f docker-compose.nodemicmac.yml stop"
run "${command}"
Expand Down

0 comments on commit 94ad7bf

Please sign in to comment.