As part of this fix, also remove the GEO db from the source code and instead download and install it in the Dockerfile directly. This ensures it stays up-to-date with each rebuild of the events-api.
Important: Make sure the service throws an exception and does not start if the GEO db is missing.
This is due to https://github.com/mikenikles/your-analytics/pull/188/files#diff-ebd337fffbdad21b4b3ca730397efe30R14. The
events-api
root directory is the monorepo root, so the following code can no longer open the GEO db:As part of this fix, also remove the GEO db from the source code and instead download and install it in the Dockerfile directly. This ensures it stays up-to-date with each rebuild of the
events-api
. Important: Make sure the service throws an exception and does not start if the GEO db is missing.