Skip to content
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 support for postgresql database (for FDP develop) #12

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

dennisvang
Copy link

@dennisvang dennisvang commented Nov 15, 2024

The FDP develop branch uses postgres, whereas current releases 1.16 and 1.17 use mongodb.

This PR adapts the docker compose configuration to support both mongodb and postgres.

The correct database config is automatically selected by init.sh, based on the specified FDP image.

In addition, docker-related commands and filenames have been modernized.

  • cleaned up docker compose template
  • replaced *_IMAGE env variables by *_VERSION, for convenience
  • adapted init.sh to select either mongo or postgres, based on FDP image
  • added npm run test for convenience
  • updated Makefile to use modern docker compose calls
  • updated README to reflect the changes
  • removed OPEN_REFINE_IMAGE env variable reference from readme (as it does not appear to be used)

fixes #13

- add comments
- remove -r flag (recursive not needed when copying file)
- verbose option --in-place for clarity
- add comments
- rename fdp-server service to fdp (for consistency)
- add postgresql db service
- use docker compose profiles to enable selection of db service mongo/postgres
consistent with modern compose.yml default filename
remove unnecessary sed backup files
the based image name remains the same anyway
and clean up references
@dennisvang dennisvang changed the title Add support for FDP using postgresql database Add support for postgresql database (for FDP develop) Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not compatible with latest FDP development version (2.0)
1 participant