-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add support for rootless Docker #43
Conversation
Setting a hostname that refers to the host machine doesn't work on rootless docker, so this change adds support for that configuration. It also drops the requirement to publish services on the host machine in order to access them from ember.
Thanks for this @piemonkey ! |
Thanks for this! We should verify whether other tools (like app-http-logger and mu-cli) work with rootless Docker. If they do not then advising it here or describing it as such will likely lead some users astray and we should then move it into a separate section with the appropriate notes. |
I've done some very basic investigation with app-http-logger and it seems to work, though I don't know enough about it to know if there are any particularly problematic use-cases that should be checked. I haven't checked for mu-cil, I've added it to my todo list. I do have a note on there to check about a script that failed for me when trying to write to |
Jotting down my thoughts for this makes me realize that this feature warrants upgrading the documentation to something more easily usable by users. Further inspection of the code also shows there are more goodies in it than I had anticipated. I keep reworking this comment but I'll leave it here in its current state. Thanks for the improvements, looking forward to have this addition! I doubt there are problems with the current stacks but I wrote down some topics we should test for being fairly certain. These are not blocking. I feel it'd be best to keep this as a second-class citizen for now as we see what works and how we can best interface with such a world. The current docs have this implicit perhaps but weaving it in makes it a bit vague. The main usage has been made a bit more complicated (but we can probably simplify again) and I think the initial examples should stay as simple as possible. I've seen users get confused in having to write Your work on extending this and documenting this leads to multiple preferred use-cases. Not belonging to this commit, but perhaps something for the future, is to have some options in Do you see it feasible to have testing rootless with respect to other toolingapp-http-logger:If it manages to log HTTP messages (the more likely problem) and docker stats (the less likely problem) then it should just work. I don't think there are peculiar edge-cases there. Ping me if you'd like to verify this together. mu-cliThis may be a bit more fiddling to be sure. I think this covers more cases and that may be more of a challenge. There are also possible future extensions though I don't expect that to lead to new conditions. I believe that if we can run template based scripts (like I think there was something failing with |
Right now the API is a little awkward because In my limited testing, http messages did get logged by http-logger, I'm not sure about docker stats. I'll test mu-cli and either post results here or update the readme. |
|
Further exending the readme to help new features find their place
README.md
Outdated
@@ -269,7 +327,14 @@ and you can provide interactive answers. | |||
edl -u | |||
``` | |||
|
|||
*Note*: `edl` assumes `edi` is available on your PATH | |||
> [NOTE] |
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.
If you write > [!NOTE]
GitHub renders the block quote with a blue sidebar thingy and and a ℹ️-like icon. Adding the !
shouldn't impact legibility for people reading the plain markdown file.
Also works with > [!WARNING]
and > [!IMPORTANT]
:
Note
Highlights information that users should take into account, even when skimming.
Important
Crucial information necessary for users to succeed.
Warning
Critical content demanding immediate user attention due to potential risks.
See: https://github.com/orgs/community/discussions/16925
A |
This now works by adding an option to
eds
to connect the container to a docker network. There's also an option to use the existing behaviour, for backwards compatibility, this is used by default if the network option isn't used. I've updated the readme to show the new usage.