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

Update container component to accept args as Iterable and Mapping #627

Conversation

LewisGaul
Copy link
Collaborator

Follows #595 and #599, working on #584.

Here are some examples:
docker.create('ubuntu', ['ls'])
docker.create('ubuntu', ['cat', '/some/file.txt'])
You can try docker.create('{image}', {shlex.split(command)}, ...).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this error message. This is so, so awesome. Would it be possible in another PR to add a unit tests for this? Something that checks that docker.create('{image}', {shlex.split(command)} appears correctly in the error message.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was just copied (and simplified) from the run() method!

Copy link
Owner

@gabrieldemarmiesse gabrieldemarmiesse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome PR!

@gabrieldemarmiesse gabrieldemarmiesse merged commit 6ac7b6f into gabrieldemarmiesse:master Sep 5, 2024
21 checks passed
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.

2 participants