-
Notifications
You must be signed in to change notification settings - Fork 52
feat: Replace compose env vars with parameters #4284
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
Conversation
Podman workflow is working fine. - https://github.com/ansys/pyfluent/actions/runs/16489890949/job/46622027333 |
General comments on the current approach:
Let’s make sure the logic reflects this hierarchy and avoids reading the environment more than once. |
@seanpearsonuk Yes, I totally agree. Done. Thank you. |
@hpohekar It's still the same in the version I'm seeing. I might be missing a commit. |
@seanpearsonuk We have updated the code as per our latest discussion.
Instantiated only once - https://github.com/ansys/pyfluent/pull/4284/files#diff-6388218efa10000a687f0828690e9072e2752a00c66a5cccb0fa2e737344a112 We are passing Thanks a lot for this suggestion, the workflow is straightforward now. |
This pull request replaces the use of environment variables for selecting Docker Compose or Podman Compose with explicit parameters in the codebase and updates associated documentation accordingly. The changes improve clarity and maintainability by introducing a
ComposeConfig
class to manage these configurations.Key Changes:
Environment Variable Replacement
PYFLUENT_USE_DOCKER_COMPOSE
andPYFLUENT_USE_PODMAN_COMPOSE
environment variables, replacing them with parametersuse_docker_compose
anduse_podman_compose
in relevant methods and constructors [1] [2] [3].Codebase Refactoring
ComposeConfig
class to encapsulate Docker Compose and Podman Compose configurations, replacing direct environment variable checks throughout the codebase [1] [2].ComposeBasedLauncher
and other related classes to use the newComposeConfig
for determining the compose commands and configurations [1] [2].Documentation Updates
Deprecation Notices
doc/deprecated_pyfluent_apis.py
file, specifying their replacements.Changelog