-
Notifications
You must be signed in to change notification settings - Fork 44
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
Add docker for index meta-database #140
Add docker for index meta-database #140
Conversation
b234f3b
to
98219df
Compare
This now creates two docker-compose services, i.e., two images. One is for the index meta-database (called |
370807e
to
71bb485
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
df60bb2
to
f98c055
Compare
f98c055
to
c5ec729
Compare
Co-authored-by: Casper Welzel Andersen <[email protected]>
Update docker-compose to start both servers. Add CI check for building the Docker containers.
Now we are testing not only if it can be built, but also start both servers and test to see if we get an expected response.
There are now two ways to start the index meta-database server, instead of the regular server. 1. Run: ./run.sh index 2. Set variable: export MAIN="main_index" And then run normally. The two methods are also prioritized this way, i.e., if the environment variable MAIN="main", but one runs ./run.sh index, then the index meta-database will be started instead of the regular server.
c5ec729
to
8d39011
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is good to go, if you decide to act on my above comment then just ping me to re-accept.
Bump to v0.5.0 Changes: - Possibility for Docker deployment for both the index meta-database server as well as the regular server (#140, @ltalirz, @CasperWA) - Test building and starting Docker images with GitHub Actions CI (#140, @CasperWA, @ml-evs, @ltalirz) - Remove `/index` from the index meta-database's base URL (#140, @ltalirz, @CasperWA) - `include` query parameter (#163, @CasperWA) - Rename `optimade/server/deps.py` to `optimade/server/query_params.py` (#163, @CasperWA) - Human-readable landing page for versioned base URLs, as well as for `/optimade` (#172, @ml-evs) - Move mapper aliases to config file and out of mapper classes (#175, @ml-evs) Bug fixes: - Properly build versioned base URLs (#178, @CasperWA)
Going from the
index_meta_db
branch from @ltalirz's fork, this adds a Dockerfile to the repository and a docker-compose file that should start both servers.Furthermore, a CI check has been added to test the Docker build.