Closed arjxn-py closed 2 months ago
I was trying to build the docker image after bumping jupyter-scheduler >=2.7.0
in jupyterlab/environment.yaml
that is related to nebari-dev/nebari#2548, using dos2unix scripts/install-apt-minimal.sh
solved this error for me. I'd be happy to try fix it upstream as well if perrmitted.
@arjxn-py When you check out a repo using git on windows, I believe it converts line endings by default from \n
on linux to \r\n
on windows if you have the autcrlf
setting set to true. That sounds like what is happening to you. You can check if you have that option set by git config --list
Yes @Adam-D-Lewis, seems like this was the case only, I just confirmed that core.autocrlf=true
locally. Thanks a lot, I'll be hapy to close this one as completed.
Should I also set core.autocrlf=false
?
Describe the bug
When attempting to build a Docker image using
Dockerfile.jupyterlab
, the build process fails with the error/usr/bin/env: 'bash\r': No such file or directory
. This issue appears to be related to the presence of Windows-style line endings (\r\n
) in theinstall-apt-minimal.sh
script.Expected behavior
The Docker image should build successfully without encountering errors related to line endings.
Actual Behavior
The build fails with the following error message:
How to Reproduce the problem?
Run the following command from the root directory:
Command output
No response
Versions and dependencies used.
conda 24.4.0 OS - Windows 11 & Ubuntu 22.04
Anything else?
The issue is caused by Windows-style line endings (
\r\n
) in theinstall-apt-minimal.sh
script. Converting the line endings to Unix-style (\n
) resolves the problem.