When using git on Windows, git may try to "fix" line endings to CRLF. Then, when building the Docker image, the files copied can end up having the wrong line ending, which causes scripts to fail to run. This patch fixes the problem by using .gitattributes to indicate to git which line ending to use for the files in the docker/ directory. https://github.com/albertito/chasquid/pull/66 Amended-by: Alberto Bertogli <albertito@blitiri.com.ar> Adjusted commit message, extended comment on .gitattributes.
43 lines
860 B
Plaintext
43 lines
860 B
Plaintext
|
|
# Ignore anything beginning with a dot: these are usually temporary or
|
|
# unimportant.
|
|
.*
|
|
|
|
# Exceptions to the rules above: files we care about that would otherwise be
|
|
# excluded.
|
|
!.gitignore
|
|
!.gitattributes
|
|
!.clang-format
|
|
!.github/
|
|
|
|
# The binaries.
|
|
/chasquid
|
|
/chasquid-util
|
|
/smtp-check
|
|
/mda-lmtp
|
|
/dovecot-auth-cli
|
|
cmd/chasquid-util/chasquid-util
|
|
cmd/smtp-check/smtp-check
|
|
cmd/mda-lmtp/mda-lmtp
|
|
cmd/dovecot-auth-cli/dovecot-auth-cli
|
|
|
|
# Test util binaries.
|
|
test/util/conngen/conngen
|
|
test/util/coverhtml/coverhtml
|
|
test/util/fexp/fexp
|
|
test/util/generate_cert/generate_cert
|
|
test/util/gocovcat/gocovcat
|
|
test/util/loadgen/loadgen
|
|
test/util/minidns/minidns
|
|
test/util/smtpc/smtpc
|
|
|
|
# Test binary, generated during coverage tests.
|
|
chasquid.test
|
|
|
|
# chamuyero logs
|
|
*.cmy.log
|
|
|
|
# Exclude any .pem files, to prevent accidentally including test keys and
|
|
# certificates.
|
|
*.pem
|