ArchivesPortalEuropeFoundation / Topic-Detection

Using machine learning approaches for automatic topic detection in a multilingual environment
6 stars 0 forks source link

Reproduce docker build locally #65

Open fedenanni opened 2 years ago

fedenanni commented 2 years ago

@kstamatis hi! The other day you mentioned you have your local version of the docker built running on your local machine. I would like to do the same for debugging purposes, but I am encountering a couple of issues.

  1. I have downloaded a version of the setup identical to the one we have on the VM, so I have both the repo folder (with the modifications made on the VM on theadd-docker branch) and the volumes folder.
  2. I have done: docker build -t topic-detection:prod . inside my repo folder, all good up to here.
  3. Then to run the build command I had to:
    • specify a specific port (for the moment my local 8091)
    • fix the path to absolute paths on my local machines for the volumes
    • remove the network information
    • remove the restart for now to debug what's going on. However when I run this I get a weird error message: docker run -d --name topic-detection-backend -p 8091:5000 -v /Users/fnanni/Projects/topicdetection/volumes/data:/webapp/data -v /Users/fnanni/Projects/topicdetection/volumes/word-embs:/webapp/word-embs topic-detection:prod Before I start debugging the error message, am I doing something wrong?
kstamatis commented 2 years ago

Hi there, Actually, I mentioned that I managed to run the source code from my local IDE (IntelliJ) and have breakpoints in the various Python files and do debugging. I haven't install the code using dockers. However, I do not find any mistakes on the way you are trying to start the docker container. Do you want to copy/paste the error you get here in order to have a look? Or, you can email George (cc me) with the procedure and the error.

fedenanni commented 2 years ago

@kstamatis I have found the issue, it was just a small incompatibilities with libraries which was creating problems, it's fixed in https://github.com/ArchivesPortalEuropeFoundation/Topic-Detection/pull/58/commits/991fb3466d222b4620528eab087d07512e8f41fd and now I can run docker locally for debugging etc