-
-
Notifications
You must be signed in to change notification settings - Fork 969
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: try to fix default hostname #1550
Conversation
Hey thanks @NtskwK, I understand what the intent here is, but can you provide some context about how to reproduce the problem this patch is solving? |
I noticed that the name of container are not always the same when I try to deploy the WebODM on WSL with I don't fully understand the way nodeodm is named. But setting the hostname to the container name will allow them to connect successfully. |
I wonder if explicitly setting the If so, we could use it when |
|
Use |
On user-defined networks, containers can not only communicate by IP address, but can also resolve a container name to an IP address. Is can only works in |
It's theoretically possible, but not recommended. The logic of the function will become complex. If docker-compose starts successfully, but docker-compose.node is blocked due to duplicate names, it will be deployed in a state without nodes, which is not expected. |
https://docs.docker.com/compose/networking/ Mm, perhaps just setting COMPOSE_PROJECT_NAME to "webodm" would do? |
Of course that's okay.
Please turn it into a draft. I will try to modify the webodm.sh script in passing.
…________________________________
发件人: Piero Toffanin ***@***.***>
发送时间: 2024年9月5日 0:48
收件人: OpenDroneMap/WebODM ***@***.***>
抄送: NtskwK ***@***.***>; Mention ***@***.***>
主题: Re: [OpenDroneMap/WebODM] feat: try to fix default hostname (PR #1550)
https://docs.docker.com/compose/networking/
Mm, perhaps just setting COMPOSE_PROJECT_NAME to "webodm" would do?
―
Reply to this email directly, view it on GitHub<#1550 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AVDTMEBOGPEWMJBDKGSRBUDZU42VHAVCNFSM6AAAAABNRWUUTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRZGU2DQMBYGE>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
|
||
command+=" -f docker-compose.nodeodm.gpu.nvidia.yml" | ||
command+=" -f docker-compose.nodeodm.gpu.intel.yml" | ||
command+=" -f docker-compose.nodeodm.yml" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I understand the change here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The shutdown function now has to be entered after the --gpu
to shut down the gpu node. But it's just the startup parameter in the manual. There may be users who get unexpected results. I would like to be able to make sure they shut down.
@@ -11,6 +11,7 @@ services: | |||
- WO_DEFAULT_NODES | |||
node-odm: | |||
image: opendronemap/nodeodm:gpu | |||
container_name: node-odm-1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you test with:
./webodm.sh restart --default-nodes 3
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My apologies. I forgot there would be conflict here.
I still don't fully understand the way to the naming. Can you give me some advice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to understand how docker-compose works.
This is a good start: https://docs.docker.com/compose/
Read it all.
You are right, maybe I should not affect the behavior of the other. Just focus on the try to fix default hostname like next function do.
How do you think? |
No description provided.