-
Notifications
You must be signed in to change notification settings - Fork 18
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
Use regex instead of man command to extract options #3
Conversation
Man command do not work properly on ubuntu minimized image, fix it using python regex directly on man file
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.
Tested ACK.
Found that -e doesn't support ALL options (e.g. those from -help-debug, as those don't get added to the manpage
) but since these work by just adding them as an argument to command space of docker run
, I think we're good for now.
I will take a look, I was able to grab it with the regex, I had to care about it specifically. It should be a quick thing to solve. |
Yeah we can pick this up separately, it's not a blocker because for now it works with
|
How were you passing the environment variable for I verified and the argument is working, it's used with |
no that is ok. try |
There is no mention of |
edit: forgot we're testing 1.14.4 so there is no |
Current Dockerfile can break with the following issue with minimized image like focal.
To use environment variables to configure the container with
docker run
, thedocker-entrypoint.py
was usingman
command through a subprocess to get all existing option of an executable.On minimized version of Ubuntu image,
man
command is disabled with the following message:Use python regex on raw man file to avoid the issue and retrieve all options.
Potential Error
Using a minimized image could raise the following: