-
Notifications
You must be signed in to change notification settings - Fork 77
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
feature(Docker): Add support for platform
parameter
#95
feature(Docker): Add support for platform
parameter
#95
Conversation
Pass `platform` value from `platforms.item` to `docker_container`. Example usage: ``` driver: name: docker platforms: - name: test-01 image: ... pre_build_image: true platform: linux/amd64 ``` As suggested in the [docker_container documentation](https://docs.ansible.com/ansible/latest/collections/community/docker/docker_container_module.html#ansible-collections-community-docker-docker-container-module), ignore the `platform` parameter when comparing state. Addresses issue ansible-community#94.
@dankow I am no reviewer but I would like to see your feature merged. I recognized, that some checks failed. Please fix following things, to hopefully get your PR merged:
|
platform
parameterplatform
parameter
@ThomasSteinbach Thanks for the hint, I've changed the PR title |
@ssbarnea would it be possible to review/merge that PR. |
This needs fixing, failed even linting. |
@ssbarnea - Correct me if I'm wrong, but aren't the linting failures and other failures in completely unrelated parts of the code? |
@ssbarnea I have to agree to @dankow , none of the current pull requests passes the checks.
... or in pytests ...
I don't know if rebasing to main would help. Does it @ssbarnea ? |
I can't talk for @ssbarnea who is the maintainer of this project but what I can say:
So, imho, the timeouts has to be fixed first, then PR101 tests can be restarted and hopefully this PR merged. Once done, main branch should have CI in green. Then, pending pull requests will have to be rebased and hopefully may be merged if review is fine. Blindly merging PR without CI "because CI is broken" seems really bad practice to me... |
@dankow Hi. thanks to some other devs, the CI seems to be on happy side these days. Can you please rebase and check new CI status ? |
* Fix ci issue * fix ci
Install collection from galaxy, fix typo, do not install ansible via apt-get
With newly added plugins, the list has to be updated. Signed-off-by: Arnaud Patard <apatard@hupstream.com>
* skip experimental rules Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com> * Lint ansible files Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com> * fix missed alignment Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com> * Fix blk100 flake8 errors Flake8 is giving errors about some empty lines in the code, so remove the line to fix these errors. Signed-off-by: Arnaud Patard <apatard@hupstream.com> --------- Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com> Signed-off-by: Arnaud Patard <apatard@hupstream.com> Co-authored-by: Arnaud Patard <apatard@hupstream.com>
updates: - [github.com/psf/black: 22.12.0 → 23.1.0](psf/black@22.12.0...23.1.0) - [github.com/ansible/ansible-lint.git: v6.10.2 → v6.14.2](https://github.com/ansible/ansible-lint.git/compare/v6.10.2...v6.14.2) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
) * assume windows when ansible_connection is winrm Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com> * replace raw: with package: Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com> * revert back to raw Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com> * use uname to check if it's a Linux system Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com> --------- Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
As our special selinux shim dependency also caused problems for people that did not really need selinux, we now make it a simple extra.
@ssbarnea - now that the checks all pass, are there any barriers to merging this PR? |
Pass
platform
value fromplatforms.item
todocker_container
. Example usage:As suggested in the docker_container documentation, ignore the
platform
parameter when comparing state.Addresses issue #94.