-
Notifications
You must be signed in to change notification settings - Fork 293
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
Changes build flag to --lifecycle-docker-host #1113
Changes build flag to --lifecycle-docker-host #1113
Conversation
d17e3c1
to
11b0a1f
Compare
Codecov Report
@@ Coverage Diff @@
## main #1113 +/- ##
==========================================
- Coverage 80.52% 80.00% -0.52%
==========================================
Files 136 136
Lines 8243 6004 -2239
==========================================
- Hits 6637 4803 -1834
+ Misses 1176 767 -409
- Partials 430 434 +4
Flags with carried forward coverage won't be shown. Click here to find out more. |
676b8a0
to
d47dce9
Compare
d47dce9
to
6d11343
Compare
- Avoids nil-like empty default value Signed-off-by: Micah Young <[email protected]>
- Previous name docker-host was confusing (Issue: 1093) and the name is best left for an eventual equivalent to `docker --host` https://docs.docker.com/engine/reference/commandline/cli/#:~:text=host%20value - Validate mutual excluson of publish and lifecycle-docker-host Signed-off-by: Micah Young <[email protected]>
6d11343
to
bb9fe65
Compare
Acceptance(using a remote linux setup with docker exposed on port 2375) Input
Output
Result👍 Looks perfect, really like the new interface. Here is the docs issue associated with this PR |
After some Slack discussion, it feels like the
I'm going to close this for the moment and see if I can lay out a few scenarios that can help us ideate on some naming/syntax options... I'm feeling like we might still want to try and make |
--docker-host
to--lifecycle-docker-host
host-socket
for default behavior valueSigned-off-by: Micah Young [email protected]
Summary
The
pack build
flag--docker-host
introduced in #988 works as designed but user feedback (#1093) suggests the naming implies not onlyDOCKER_HOST
for lifecycle is changed, but alsoDOCKER_HOST
forpack
(which could eventually be implemented, but is independent of the original purpose).Here I change the name to
--lifecycle-docker-host
and cleanup some additional details:host-socket
--lifecycle-docker-host
and--publish
mutually exclusive and fail when used together (for publishing, lifecycle never has a dependency on daemon)Out of scope for this, but potential next steps are:
--docker-host
flag which would effectively set'spack
'sDOCKER_HOST
inherit
be the default for--lifecycle-docker-host
whenpack
'sDOCKER_HOST
is setOutput
Before
Usage output
After
Usage output
Documentation
Related
Resolves #1093