Skip to content

Conversation

@guydriesen
Copy link
Contributor

This PR adds the support for defining arguments to the DockerSwarmOperator.

The currently available command option replaces the entrypoint on a docker service container, with the args you can give extra options to the entrypoint.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@Taragolis Taragolis merged commit 77a6b4f into apache:main May 17, 2024
romsharon98 pushed a commit to romsharon98/airflow that referenced this pull request Jul 26, 2024
* Add args to docker service ContainerSpec

* args is a list in ContainerSpec

* fix ContainerSpec assertion

* fix args formatter

* fix ContainerSpec assert

* remove some spaces

* add docker service args list test case

* replace ast.literal_eval with json.loads

* remove json string representation

---------

Co-authored-by: Guy Driesen <19373791+guydriesen@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants