X Tutup
Skip to content

Collection of changes driven by use in gradle-docker and on Windows#15

Merged
marcuslinke merged 4 commits intodocker-java:masterfrom
YouTechnology:master
Jul 4, 2014
Merged

Collection of changes driven by use in gradle-docker and on Windows#15
marcuslinke merged 4 commits intodocker-java:masterfrom
YouTechnology:master

Conversation

@sfitts
Copy link
Copy Markdown

@sfitts sfitts commented Jul 4, 2014

  • Use .gitattributes to control line endings for the entire repository as suggested by GitHub (controlling on a per-client basis leads to too much churn). This was main driven by a need to keep the *.sh files with Linux line endings so that they would work in the tests (otherwise Linux doesn't know how to run them).
  • Changed the default port to match that used by the current version of Docker (the readme says this is the port used, so I'm guessing this was just an oversight).
  • Added a toString() method to each command so that they can be printed in a form similar to that of the docker client command line. This is handy when tracing the execution of commands (such as during a gradle build with --info).
  • Attempted to address an issue relating to the logging of binary request/response payloads (such as the tar sent on a build). On both Windows and OSX this causes the console window to freeze. There was a commit in the old repository to address this by completely disabling logging. The approach here is only to skip logging of requests with content types that are known to be problematic.
  • A few test tweaks -- one which catches if there is a major issue creating a new image and another which attempt to exercise the new toString code (without going to the trouble of verifying every combination).

Sean Fitts added 4 commits July 3, 2014 16:08
- Change the default Docker port to 2375 to match current Docker version.

- Add toString() to all commands which prints out a form similar to the
  corresponding Docker command line.  Useful in tracing.

- Create client logging filter variant which allows us to avoid logging
  requests whose content type is likely to cause issues for both the
  Windows and OSX consoles.  This is an adaptation of a change from a
  while back
  (alexec@887a112)
  which seems to have be lost in the move.
Revert API version which was by accident

Fix bug in logging filter

Add extra check to test to avoid downstream issues
This uses the recommended strategy to normalize line endings for mixed
Windows/*nix development.  We also make sure that the shell scripts used
for testing have Unix line endings on all platforms so they will function
properly.
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These whole file replacements are due to the .gitattributes introduction. Turns out that these files were being stored in a non-normalized form (which can happen without the use of .gitattributes).

@marcuslinke marcuslinke merged commit 35dbbc1 into docker-java:master Jul 4, 2014
@docker-java
Copy link
Copy Markdown
Collaborator

Thanks for contributing. Didn't even know about this .gitattributes until now...

@sfitts
Copy link
Copy Markdown
Author

sfitts commented Jul 4, 2014

No problem, thanks for keeping this active.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

X Tutup