-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Issue #17631: Make it possible to use custom invfile.lua if needed #17693
Issue #17631: Make it possible to use custom invfile.lua if needed #17693
Conversation
… if needed mulled-build.py uses invfile.lua that comes pre-packaged with galaxy-tool-util. It would be nice if the user could specify a custom invfile.lua when (s)he needs to use a modified recipe for the image creation Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
@@ -57,7 +57,7 @@ | |||
|
|||
log = logging.getLogger(__name__) | |||
|
|||
DIRNAME = os.path.dirname(__file__) | |||
DIRNAME = os.environ.get("INVFILE_DIRNAME", os.path.dirname(__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.
This seems fine, but maybe we can be more direct here ?
DIRNAME = os.environ.get("INVFILE_DIRNAME", os.path.dirname(__file__)) | |
INVFILE = os.environ.get("INVFILE", os.path.join(os.path.dirname(__file__), "invfile.lua")) |
and then change line 269 to use that variable directly ?
It might also be nice to add this to the argparse parse in add_build_arguments and pass that on to mull_targets ?
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've applied your suggestion!
But I'm afraid I don't follow you about add_build_arguments
and mull_targets
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've pushed a commit adding --involucro-lua-file
, which defaults to INVFILE. That way users see it as a possible option when running mulled-build --help
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.
Awesome! Thanks!
galaxyproject#17693 (comment) Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
Thanks for adding this! |
mulled-build.py uses invfile.lua that comes pre-packaged with galaxy-tool-util.
It would be nice if the user could specify a custom invfile.lua when (s)he needs to use a modified recipe for the image creation
How to test the changes?
Export
INVFILE_DIRNAME
env var that points to a folder withinvfile.lua
in it and try to usemulled-build
too. It should use the custominvfile.lua
instead of the one coming withgalaxy-tool-util
License