Skip to content

installSQLtools.sh and postCreateCommand.sh fail to run due to Windows line endings #9

@seantleonard

Description

@seantleonard

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

  1. Git clone repo
  2. Open folder in container
  3. Automatic execution of postCreateCommand.sh fails with log message below.

Any log messages given by the failure

[318402 ms] Start: Run in container: /bin/sh -c bash .devcontainer/sql/postCreateCommand.sh P@ssw0rd! './bin/Debug/' './.devcontainer/sql/'
.devcontainer/sql/postCreateCommand.sh: line 7: $'\r': command not found
0+1 records in
0+1 records out
28 bytes copied, 0.000887324 s, 31.6 kB/s
.devcontainer/sql/postCreateCommand.sh: line 9: syntax error near unexpected token $'\r'' 'devcontainer/sql/postCreateCommand.sh: line 9: for i in {1..60};

What's next:
Try Docker Debug for seamless, persistent debugging tools in any container or image → docker debug cdd17efc8eb2df6013b3229488477cd30bf0d5baed79c624fbdf1684e7c62768
Learn more at https://docs.docker.com/go/debug-cli/
[319057 ms] postCreateCommand failed with exit code 2. Skipping any further user-provided commands.
Done. Press any key to close the terminal.

Expected/desired behavior

  1. No failure expected. LIbrary database fails to install.

OS and Version?

  1. Windows 11 Docker with WSL2

Versions

  1. latest commit to main on this repo 0a1ba8c

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions