src-d / ghsync

GitHub API v3 > PostgreSQL
https://sourced.tech
GNU General Public License v3.0
9 stars 8 forks source link

Add Dockerfile #25

Closed carlosms closed 5 years ago

carlosms commented 5 years ago

Fix #5.

This PR adds the Dockerfile. The entrypoint does not run any sub command by default, because sync will fail without calling migrate first. Both are needed, so I though it makes sense to leave ghsync and it will print the help by default.

$ docker run srcd/ghsync
Please specify one command of: completion, migrate, sync or version
Usage:
...

ca-certificates added for the https github endpoints.

I left a sleep in docker-compose.yml to wait for postgres & rabbitmq initialization. This can be improved in a couple of ways:

I didn't want to complicate it now, as this can be reconsidered when we have a better understanding of how this will be integrated in sourced-ce.

carlosms commented 5 years ago

@dpordomingo please take another look.