-
Notifications
You must be signed in to change notification settings - Fork 18.6k
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
Enable test-integration-cli for Windows platform #9284
Conversation
@icecrime Is there some documentation on how to set up an environment for testing on Windows? I'm interested in helping out with this. I also need to run tests on Windows. |
--pidfile "$DEST/docker.pid" \ | ||
&> "$DEST/docker.log" | ||
) & | ||
if [ -z $DOCKER_TEST_HOST ]; then |
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.
"$DOCKER_TEST_HOST"
Other than that one minor quoting nit, |
target = strings.Trim(target, "\n") | ||
target = strings.Trim(target, " ") | ||
return target | ||
return strings.Trim(target, " \r\n") |
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.
Seems like strings.TrimSpace() is better
Overall this LGTM |
@unclejack Indeed there is no documentation. Do you think Thanks for the reviews, updating with the latest comments. |
@icecrime I think some instructions provided on this PR on how to test such PRs would be enough for now. |
52a60e5
to
43151b0
Compare
43151b0
to
4e84be3
Compare
Rebased! PTAL |
Ping @tianon @tiborvass |
LGTM |
4e84be3
to
e7db5ae
Compare
Signed-off-by: Arnaud Porterie <arnaud.porterie@docker.com>
e7db5ae
to
f3ed422
Compare
Rebased again, tibor in holidays: ping @LK4D4 @jfrazelle! |
@icecrime yes please - throw them into the devenv.md you mentioned :) |
If possible, I'd rather have this merged ASAP because:
I can add documentation in a second PR (we'll definitely need some docs updating once Windows becomes a supported client platform anyway). |
I will take a look today :) On Monday, December 22, 2014, Arnaud Porterie notifications@github.com
|
LGTM |
Enable test-integration-cli for Windows platform
Thanks! |
&> "$DEST/docker.log" | ||
) & | ||
if [ -z "$DOCKER_TEST_HOST" ]; then | ||
( set -x; exec \ |
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.
SPACES????
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.
You're so ruining Christmas.
Give me a minute to fix that!
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.
This is merged already -- I'm working up a PR right now, no worries. 😉
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.
Just wanted to bust some stones, especially @jfrazelle's.
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'll do it, no worries it's my fault (didn't pay attention when I moved the lines from integration-cli
to the newly introduced files).
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.
set list listchars=tab:»·,nbsp:_,extends:¬
in my .vimrc
is basically my favorite line in the entire file ❤️
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.
Waaaaahhhhh we need vim headers!
On Tuesday, December 23, 2014, Tianon Gravi notifications@github.com
wrote:
In project/make/.integration-daemon-start
#9284 (diff):@@ -15,10 +15,14 @@ exec 41>&1 42>&2
DOCKER_GRAPHDRIVER=${DOCKER_GRAPHDRIVER:-vfs}
DOCKER_EXECDRIVER=${DOCKER_EXECDRIVER:-native}-( set -x; exec \
- docker --daemon --debug \
- --storage-driver "$DOCKER_GRAPHDRIVER" \
- --exec-driver "$DOCKER_EXECDRIVER" \
- --pidfile "$DEST/docker.pid" \
-) &&> "$DEST/docker.log"
+if [ -z "$DOCKER_TEST_HOST" ]; then- ( set -x; exec \
set list listchars=tab:»·,nbsp:_,extends:¬
in my .vimrc is basically my favorite line in the entire file [image:
❤️]—
Reply to this email directly or view it on GitHub
https://github.com/docker/docker/pull/9284/files#r22246707.
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.
Just fix your editor config and kwitchyerbellyakin!
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.
Bah humbug
On Tuesday, December 23, 2014, Tianon Gravi notifications@github.com
wrote:
In project/make/.integration-daemon-start
#9284 (diff):@@ -15,10 +15,14 @@ exec 41>&1 42>&2
DOCKER_GRAPHDRIVER=${DOCKER_GRAPHDRIVER:-vfs}
DOCKER_EXECDRIVER=${DOCKER_EXECDRIVER:-native}-( set -x; exec \
- docker --daemon --debug \
- --storage-driver "$DOCKER_GRAPHDRIVER" \
- --exec-driver "$DOCKER_EXECDRIVER" \
- --pidfile "$DEST/docker.pid" \
-) &&> "$DEST/docker.log"
+if [ -z "$DOCKER_TEST_HOST" ]; then- ( set -x; exec \
Just fix your editor config and kwitchyerbellyakin!
—
Reply to this email directly or view it on GitHub
https://github.com/docker/docker/pull/9284/files#r22246999.
This is more steps toward functional
test-integration-cli
for Windows client-side. How to run under Cygwin:Known issues:
bash.exe
: perhaps a bash expert can bring his expertise hereI believe this is worth merging as it provides a reasonable base for people to start fixing individual failing tests.
Update: how to set up a test environment on Windows:
bash.exe
, and unfortunately the one provided with git installer won't work. I chose to use Cygwin out of habit, but there's probably other (and perhaps better) choices out there.-H
directive allowing your Windows box to access it remotely.cd
to Docker source directory, and run:export DOCKER_CLIENTONLY=1
: indicates to the build scripts that you're running on a "client-only" platformexport DOCKER_TEST_HOST=tcp://<docker_host>:<docker_port>
: gives the build scripts the address of the remote Docker hostproject/make.sh binary test-integration-cli
Troubleshooting: the
binary
target should produce both adocker-$VERSION.exe
binary inside./bundles/$VERSION/binary/
and adocker.exe.lnk
next to it. I encountered issues where the docker command was not recognized even though the link was in my path: this was due to Cygwin producing other types of links, and was fixed usingexport CYGWIN=winsymlinks:lnk
.