Closed macarious closed 10 months ago
Everything is working except please move server folder and web folder into dockerfiles folder otherwise those images won't build.
I was able to recreate the issue by clearing my cache in my docker app. I have updated the paths in the following files:
docker-compose.dev.yml
docker-compose.prod.yml
Dockerfile.web
(to reference the nginx.default.conf properly
)The containers should be able to be built and ran now.
I misunderstood the behaviour of the app and thought the recording function is still under development thus not working, but after some communication, it seems not be the case. Upon further testing, I find the recording function is not working unless the server is serving on localhost; Even when I run the program on localhost (with port forwarding), the app is missing some assets (thomas_birthday?) and the submission function is not working. I might be missing something here as I am not familiar with the app and the issue could be totally unrelated to docker, but I suggest we hold off merging until we can figure it out. Please let me know
Hey @ztybigcat @macarious I think references.txt needs to be reverted to this old version : https://github.com/SlangLab-NU/VoiceCollector/blob/585a11ef2442279cdd4f969734aa9875e2a00992/server/app/references.txt. The one that is on dev I think crept in by error somehow.
Major changes
Split the original
docker-compose.yml
into 2 versions:docker-compose.dev.yml
contains a development backend server (Flask)docker-compose.prod.yml
contains a production backend server (Gunicorn).Minor changes
dockerfiles
is created to store the dockerfiles and some configuration files. Thedocker-compose
instructions are still intended to be run in the root directory./app/init_db
/app/scripts/db_helper.py
/log/logger.py
.Instructions to build and run the containers
See DOCKER_REAMD.md.
Server Log
Using
docker-compose.dev.yml
, the server log should state that it is a development server:Using
docker-compose.prod.yml
, the server log, when starting, states that it is using gunicorn: