-
Notifications
You must be signed in to change notification settings - Fork 667
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
Allow docker command to be null, set default CMD in dockerfile instead #1615
Conversation
07bee14
to
6351a34
Compare
Need to update the tests that are relying on the docket default command directive, will try to get that pushed this morning. |
6351a34
to
7f4a0b1
Compare
I can't reproduce these failures locally, and it looks like master is failing with the same issue. It looks like it's not finding the molecule binary or something. |
7f4a0b1
to
de8eba3
Compare
…le instead Signed-off-by: Fabian von Feilitzsch <[email protected]>
de8eba3
to
75f9064
Compare
Signed-off-by: Fabian von Feilitzsch <[email protected]>
039019a
to
d97d43d
Compare
@fabianvf you can restart tests by just reopening PR if needed. Those previous failure was related to #1611 (combo of tox-dev/tox#1097 + psf/requests#4890), which is fixed now. |
@webknjaz I think I actually found the issue, there was a separate Dockerfile template for tests that didn't have the CMD directive in it. Think this should work now. |
Let's wait for results now. I've canceled the previous build because it was blocking the queue in CI. |
This comment has been minimized.
This comment has been minimized.
Closes ansible#1763. This adds a `override_command` key to the platforms definition. It defaults to true. A user who wants to override the `CMD` directive from their `Dockerfile.j2` can specify `override_command: False` to have it honoured. This allows 3 use cases to be covered: * Getting the zero configuration default of `bash -c ...` * Overriding the `CMD` directive from the `command` key * Overriding the `CMD` directive from the `Dockerfile.j2` and setting `override_command: false` See also: * ansible#1615 * ansible#1614 * ansible#1441 Signed-off-by: Luke Murphy <[email protected]>
Closes ansible#1763. This adds a `override_command` key to the platforms definition. It defaults to true. A user who wants to override the `CMD` directive from their `Dockerfile.j2` can specify `override_command: False` to have it honoured. This allows 3 use cases to be covered: * Getting the zero configuration default of `bash -c ...` * Overriding the `CMD` directive from the `command` key * Overriding the `CMD` directive from the `Dockerfile.j2` and setting `override_command: false` See also: * ansible#1615 * ansible#1614 * ansible#1441 Signed-off-by: Luke Murphy <[email protected]>
Closes #1763. This adds a `override_command` key to the platforms definition. It defaults to true. A user who wants to override the `CMD` directive from their `Dockerfile.j2` can specify `override_command: False` to have it honoured. This allows 3 use cases to be covered: * Getting the zero configuration default of `bash -c ...` * Overriding the `CMD` directive from the `command` key * Overriding the `CMD` directive from the `Dockerfile.j2` and setting `override_command: false` See also: * #1615 * #1614 * #1441 Signed-off-by: Luke Murphy <[email protected]>
Closes ansible#1763. This adds a `override_command` key to the platforms definition. It defaults to true. A user who wants to override the `CMD` directive from their `Dockerfile.j2` can specify `override_command: False` to have it honoured. This allows 3 use cases to be covered: * Getting the zero configuration default of `bash -c ...` * Overriding the `CMD` directive from the `command` key * Overriding the `CMD` directive from the `Dockerfile.j2` and setting `override_command: false` See also: * ansible#1615 * ansible#1614 * ansible#1441 Signed-off-by: Luke Murphy <[email protected]>
Fixes #1614
PR Type
Instead of setting the default command value of
while true; do sleep 10000; done
in thedocker_container
invocation, create the sample Dockerfile with the default CMD on it, and allowcommand
to be nullable, in which case it will use the existingCMD
directive on the image.