Skip to content
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

adding support for docker stack config #510

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

thosil
Copy link

@thosil thosil commented Nov 28, 2023

The docker stack config command returns a yaml content on stdout. We have to parse the yaml output, hence the new pyyaml requirement.

The parameter "return_json" like the ComposeCLI.config method.

  • a couple of tests

fix: #509

The `docker stack config` command returns a yaml content on stdout.
We have to parse the yaml output, hence the new pyyaml requirement.

The parameter "return_json" like the `ComposeCLI.config` method.

+ a couple of tests
- removed unused import
- support pydantic 1.9
- reformat files
@thosil thosil marked this pull request as draft November 28, 2023 11:06
@thosil thosil marked this pull request as ready for review November 28, 2023 11:16
requirements.txt Outdated Show resolved Hide resolved
- moved pyyaml dep from requirements.txt to pyproject.toml (user will have to install python_on_whales[yaml] to have it)
- handle missing dependency in stack/cli_wrapper.py
- add pyyaml in test-requirements.txt
@thosil
Copy link
Author

thosil commented Nov 30, 2023

😬 I forgot to add a docstring and I don't have the time to do it for the moment, sorry

@gabrieldemarmiesse
Copy link
Owner

No worries, we're not in a hurry. In the open source world, we have all the time we want

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add support for docker stack config command
2 participants