Skip to content
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

Force Unix line endings on shell scripts #954

Merged
merged 1 commit into from
Mar 13, 2017

Conversation

psr
Copy link

@psr psr commented Mar 9, 2017

Fixes: #952

By setting .gitattributes, we force LF rather than CRLF line endings on
shell scripts on Windows. Other files are left as is.

This makes the quickstart docker instructions work on Windows (using
Docker for Windows).

When following the quickstart docker instructions on Windows (using
Docker for Windows), an error is encountered when running the netbox
container. This is caused by git converting the line endings of the
docker-entrypoint.sh script to Windows format, which are then copied
into the container image.

By setting .gitattributes, we force LF rather than CRLF line endings on
shell scripts on Windows. Other files are left as is.
@jeremystretch jeremystretch merged commit 4b7af8d into netbox-community:develop Mar 13, 2017
lampwins pushed a commit to lampwins/netbox that referenced this pull request Oct 13, 2017
Force Unix line endings on shell scripts
@lock lock bot locked as resolved and limited conversation to collaborators Jan 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docker quickstart instructions fail on Windows
2 participants