-
Notifications
You must be signed in to change notification settings - Fork 8
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 the ability to set runner_options in Settings #65
Add the ability to set runner_options in Settings #65
Conversation
if Rails.env.production? | ||
options["root"] = Rails.root.join("data/containers/storage").to_s | ||
else | ||
options["network"] = "host" | ||
end | ||
|
||
options.merge!(Settings.ems.ems_workflows.runner_options.podman) |
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.
NOTE I wanted to merge after our defaults in case someone wanted to override one of these instead of doing options = Settings.ems....
above then setting these defaults
359a209
to
84504f9
Compare
:ems_workflows: | ||
:runner_options: | ||
:docker: | ||
:network: host |
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.
Having a development.yml meant I could move the options["network"] = "host" if Rails.env.development?
out of the engine 🎉
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.
huh. I never saw those implications. that is very cool
84504f9
to
d2bbc06
Compare
d2bbc06
to
24b779c
Compare
Checked commits agrare/manageiq-providers-workflows@119d80c~...24b779c with ruby 2.7.8, rubocop 1.56.3, haml-lint 0.51.0, and yamllint |
else | ||
options["network"] = "host" | ||
end | ||
options["root"] = Rails.root.join("data/containers/storage").to_s if Rails.env.production? |
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 development
part was so cool that my brain is working overtime to try and do the same thing with production.
Depends on: