dodona-edu / dolos

:detective: Source code plagiarism detection
https://dolos.ugent.be
MIT License
263 stars 32 forks source link

dolos-web service in docker-compose runs on incorrect host and port #1459

Closed mikaelGusse closed 7 months ago

mikaelGusse commented 7 months ago

Which component(s) is your question about?

Dolos API

What is your question?

I am trying to use the Dolos API by locally hosting it on my machine using the docker compose configuration and I have succesfully been using it in this way for around a week but now I have found an issue that I am having trouble fixing. I now get the following error regarding the dolos-web app when doing docker-compose up.

image

And this log has the following information

image

Thus far i have tried the following:

Do you have any pointers on how to proceed? Thank you in advance!

rien commented 7 months ago

Hi @mikaelGusse, it just so happens I bumped on this same issue yesterday - it seems to be a problem when launching the docker-compose.yml on Windows (on Linux and MacOS it seems to work just fine).

Somehow the --host and --port arguments disappear and they get ignored.

I'll dig a bit deeper in this issue today and hope to have a fix soon. I will keep you updated.

mikaelGusse commented 7 months ago

I am actually running this on Mac (ARM to be precise), but good to hear that it is being worked on. 👍

rien commented 7 months ago

Ah, that's news. Thanks for letting me know!

rien commented 7 months ago

This was indeed a problem also present in MacOS and Linux, caused by switching to npm in #1438

Thanks for your input, I could've lost a lot more time troubleshooting windows.

rien commented 7 months ago

Can you try the fix I've just pushed to main? It's as simple as adding a -- before the arguments in the web Dockerfile.

mikaelGusse commented 7 months ago

Looks like it is working now here as well. Thanks for the quick reponse!

rien commented 7 months ago

Glad I could help.