Content
Installation of Openproject with Docker in Docker for Windows
Added by Eric Harder almost 5 years ago
Hello,
I am new to Openproject and eager to try everything. I want to run the Docker image of Openproject, but I am having trouble composing, since I am also a little new to Docker.
When I follow the instructions here (one container per process), the process stops at step 25 with this message:
Step 25/49 : RUN /tmp/build-pgloader && rm /tmp/build-pgloader
---> Running in 567bc35b2b44
/bin/sh: 1: /tmp/build-pgloader: not found
ERROR: Service 'worker' failed to build: The command '/bin/sh -c /tmp/build-pgloader && rm /tmp/build-pgloader' returned a non-zero code: 127
When I check the content of /tmp
, there is nothing there. So yes, it makes sense that the script cannot continue if there is no file.
In the previous step 24, these files are supposed to be copied and are also present at the source folder, but it seems this is unsuccessful.
Can someone help me with this?
Thank you!
Replies (7)
Hello,
almost the same here. I try to install OP 10.3 via Docker, based on Ubuntu18.04 LTS.
I've tried on two different systems (same OS) following this guide. (Quick Start)
But when connecting to port 8080 on my machine the only thing I get is this error message in the browser:
What can I do here? Is that error maybe related to the one above?
Regards
O.
Eric Harder wrote:
I too am having this issue with stable/10 when using Docker Desktop on a win10 machine. At first I thought it might be a permissions issue but that doesn't appear to be the case. I also tried stable/9 and received the same error.
I have the same issue, i hope someone can help us.
I was able to bypass this issue in Windows by adding dos2unix to the build script in Dockerfile. I guess it is the case when you install git and select the line endings "wrong". You can try to reinstall the git and change the crlf to lf.
Juha Viitanen wrote:
@Juha I have no idea how you figured this out, but it's ingenious!
To add to this though, in case you have the same issue, before these edits will work, you'll need to reconfigure git (for Windows) from CRLF to LF, and you can do this by running
git config --global core.autocrlf false
You won't need to reinstall git if you do this first, however, you may need to re-clone the openproject git
Cheers
I develop with Windows 10 and I've bumped in to this issue with some other projects also cause of this crlf/lf thing. Hopefully people can now continue their journey with OpenProject! :D
@Juha Viitanen:
I was able to bypass this issue in Windows by adding dos2unix to the build script in Dockerfile
Brilliant!@Kelechi EMENIKE:
git config --global core.autocrlf false
That works perfectly.Great work! Everything seems to run as expected with those modifications. Thanks for the help. 😊