typhon-project / typhondl

http://www.typhon-project.org
Eclipse Public License 2.0
1 stars 0 forks source link

Add wait-for-it #43

Closed MarieSaphira closed 4 years ago

MarieSaphira commented 4 years ago

Adds wait-for-it functionality to the API container, so that the databases and polystore containers can be started from one docker-compose file. The API container waits for the polystore metadata database containing the ML and DL model to be ready.

To start the polystore run docker-compose up -d

To stop the polystore run docker-compose down

To have a look if the API parsed the models correctly run docker logs <foldername>_typhon-polystore-service_1 It should contain something like Parsed: Host: documentdb, port: 27017, user: username, pass: password for each of the databases

DavyLandman commented 4 years ago

What if we add this wait for it config to the docker container config of the polystore api? Without it it doesn't work right? That way we don't have to 'polute' the compose file?

MarieSaphira commented 4 years ago

@OrfenCLMS what do you think about that?

OrfenCLMS commented 4 years ago

@MarieSaphira I'm not sure i understand. What would i have to do on my end?