-
Notifications
You must be signed in to change notification settings - Fork 177
Remove target-context flags #617
Remove target-context flags #617
Conversation
Codecov Report
@@ Coverage Diff @@
## master #617 +/- ##
==========================================
+ Coverage 70.94% 72.08% +1.13%
==========================================
Files 61 61
Lines 3493 3374 -119
==========================================
- Hits 2478 2432 -46
+ Misses 695 623 -72
+ Partials 320 319 -1
Continue to review full report at Codecov.
|
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.
What about e2e tests https://github.com/docker/app/blob/master/e2e/commands_test.go#L480
Should we simplify them too so they stick to the user's main flow?
I strongly object to this change, assuming docker-app continues to spin up a container with the invocation image in order to do installs/uninstalls. In my environment, it is not possible to run arbitrary containers on the swarm manager nodes. With docker-app 0.8.0, I've had to make sure that my Docker context is set to my local Docker engine (e.g., DOCKER_CONTEXT=default), and run docker-app commands with Removing |
@kinghuang Thank you for you feedback! So in your example, you could just use something like:
|
Yes, I believe an |
6dace28
to
fca0682
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.
Code looks good, but I wonder if the rm
action should also have this installer context flag 🤔
242480c
to
f4f93b5
Compare
25cfc15
to
1c648fd
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.
LGTM
1c648fd
to
cc061f3
Compare
Signed-off-by: Ulysses Souza <ulysses.souza@docker.com> Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
Create a new DockerCli used to run installer image within requested context cli.Cli (not DockerCli implementation) doesn't offer any way to switch contexts once intialized. Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
from within the installer image, this would only resolve to container's loopback so we use computer external IP Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
as tabwritter will change formatting depending on number of digits in IP address 10.100.97.67:32795/c-myapp:latest 10.100.102.144:32795/c-myapp:latest Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
We need to select interface used to access default gateway, as docker0 bridge or Windows DockerNAT won't route traffic to containers by exposed port Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
cdeb901
to
2d5374c
Compare
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
d241fda
to
216f639
Compare
Without this check, Linux bridge docker0 or Winwdows DockerNAT could be selected as "host IP" but won't allow to route to container Same issue probalby exists on Linux with docker0 bridge Here we discover the default gateway, and search for the interface configured on the same network. Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
216f639
to
080c090
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.
Couple of nits but looks good
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
As a user of the Docker App CLI tool
So that I have a consistent user experience with the Docker CLI
I want the target context flag removed
- What I did
Remove all the
--target-context
and references to it in the README.md- How I did it
--target-context
and references to it in the README.mddefault
context by defaut until overriden by--installer-context
- How to verify it
Check the commands to see that the flags are not there anymore
- Description for the changelog
Remove target-context flags
- A picture of a cute animal (not mandatory but encouraged)