-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fix: support docker create arguments from container.options (#1022) #1351
fix: support docker create arguments from container.options (#1022) #1351
Conversation
@alex-savchuk this pull request has failed checks 🛠 |
Codecov Report
@@ Coverage Diff @@
## master #1351 +/- ##
==========================================
+ Coverage 57.50% 64.09% +6.58%
==========================================
Files 32 41 +9
Lines 4594 6380 +1786
==========================================
+ Hits 2642 4089 +1447
- Misses 1729 1996 +267
- Partials 223 295 +72
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@alex-savchuk this pull request has failed checks 🛠 |
93f87ce
to
1d0c067
Compare
@alex-savchuk this pull request has failed checks 🛠 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm ok with copying this file from docker cli, if this allows act to have amost full docker options support. The opinion of the other maintainer matters, I can't merge anything without their consent.
@alex-savchuk this pull request has failed checks 🛠 |
1 similar comment
@alex-savchuk this pull request has failed checks 🛠 |
16583b0
to
baf949b
Compare
@alex-savchuk this pull request has failed checks 🛠 |
baf949b
to
73242e6
Compare
@alex-savchuk this pull request has failed checks 🛠 |
73242e6
to
9781bfb
Compare
@alex-savchuk this pull request has failed checks 🛠 |
It's a bit not clear for me what to do with codecov/project check. I look at diff report at https://codecov.io/gh/nektos/act/compare/4f8da0a51cd44753f3e4ea0364877f6d2aa11f1d...9781bfbe18671a3529340150d12c3eb6c5e20c67/changes Maybe we need to switch HEAD of coverage report to some modern version ? Upd: solved by adding tests of opts.go |
@alex-savchuk this pull request is now in conflict 😩 |
9781bfb
to
1a9b3c9
Compare
@alex-savchuk this pull request has failed checks 🛠 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides the license, this looks fine to me. Great addition.
@alex-savchuk this pull request has failed checks 🛠 |
f931a27
to
ee89687
Compare
@alex-savchuk this pull request has failed checks 🛠 |
Your change isn't that small 1000 new lines of text without tests from the docker cli. I think you can fix the high coverage decrease by adding the test file of the added docker cli file https://github.com/docker/cli/blob/9ac8584acfd501c3f4da0e845e3a40ed15c85041/cli/command/container/opts_test.go. I'm not approving yet, because I know that only the owner can merge a PR with a failed status check and I haven't tested it yet. |
@alex-savchuk this pull request is now in conflict 😩 |
@alex-savchuk this pull request is now in conflict 😩 |
b5fe3b3
to
097f894
Compare
@act-maintainers Now we have coverage, tests etc. Could you please take a look and approve/merge if everything is ok? :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work, this probably works better than the original actions/runner.
For the record, I tested with this workflow
on: push
jobs:
_:
container:
image: ubuntu:latest
options: --privileged --network=bridge
steps:
- run: echo "Hello World"
And inpected the docker container via docker inspect
to see if the flags were applied.
Big PR's like this one seem to have very long review times to get 3 approvals
@alex-savchuk this pull request is now in conflict 😩 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really like it
c7870dd
097f894
to
c7870dd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay - this was a large PR and took awhile to get through all the changes. Thanks for your contribution!
…ektos#1022) (nektos#1351)" This reverts commit 48188a6.
…ektos#1022) (nektos#1351)" This reverts commit 48188a6.
…ektos#1022) (nektos#1351)" This reverts commit 48188a6.
Important note: parsing of CLI options of docker is fetched from docker/cli sources explicitly - see docker_cli.go.
Please confirm it's acceptable.
Fixes #711
Fixes #1022