-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while installing server via docker #543
Comments
I found the Let me see why |
so I currently have a docker-based CI in the server repo (https://github.com/e-mission/e-mission-server/actions?query=workflow%3Atest-with-docker) which passed 4 days ago. So there is nothing wrong with the docker image - the difference must be in the two startup scripts. Comparing The two setup scripts are functionally identical
So the difference must be the conda profile script. |
Let me try testing this out locally and fix it. I should really turn on CI for the docker-compose images as well 😄 ETA tonight pacific time |
Fixed by uploading new "latest" version to dockerhub pointing to version 2.8.2 The container works fine now, I can access localhost:8080. Will deal with CI after I think a bit about how best to organize the various docker options. Right now, it looks like the e-mission server testing docker is very close to the dev docker-compose. Can we unify them somehow?
|
Indeed, it works now, thank you. I don't really understand why there are so many images and docker files: in the beginning, I had started using this one which hasn't been updated for a year, because of that docker-compose example and it's not clear what are the differences with the image you have updated. Since we're talking about CI, I'm wondering if it wouldn't be better to have the Dockerfile in the initial repositories, and to automatically build these images on push on master. |
@nlehuby That's a good suggestion, and I wonder if we can brainstorm about how the docker stuff should work in general. The additional Dockerfiles (e.g. The original docker file was indeed the one in the server code. I then moved out all the docker stuff as part of modularizing the server code, and to allow people to build the docker images without checking out all the server code. The difference between the two is that the one in the server passes in all the files in the current directory into the build, while the one in the docker repo checks out the docker repo as part of the Dockerfile. I do want to modularize the server further - e.g. pull out the In that case, I guess each individual microservice should have its own docker image which will be built on each push to master. While it is clear to me how people will use docker for production, I am still unclear about how they would use it for development. Do people want to build an image and test it? Or do they want the docker container to mount the code that they have checked out on their laptop? I don't use docker for dev, so I don't have a clear idea of what the preferred flow would be. Since it looks like you do, can you let me know what your flow is? I can make sure to support that one flow well, and then we can add others depending on request. |
I do use docker for dev because I'm not familiar enough with some dependancies (mongodb & conda mostly) to make a full install on my laptop.
|
I've tried to run the e-mission server using the docker files from this repo
docker-compose -f docker-compose.dev.yml up
ends up with an error on the webserver:ModuleNotFoundError: No module named 'future'
I'm not familiar with conda, so it may not be related, but during the installation, I got
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
and an error while installing package 'conda-forge::cachetools-2.1.0-py_0'The text was updated successfully, but these errors were encountered: