Skip to content

Commit dda23fb

Browse files
authored
Merge pull request #784 from FAIRDataTeam/proposal/db-fixtures-path
- Move db fixtures dir from src/main/resources into project root - Modify Dockerfile to copy the fixtures into the image - Add configuration option for the (relational) db fixtures path - Use bootstrap.enabled property to disable the populator by default, so ops person can decide when to load fixtures This allows us to mount fixture files into the container at /fdp/fixtures/<filename> to override the defaults, or extend them.
2 parents cde6294 + eef76db commit dda23fb

21 files changed

+57
-15
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,7 @@ USER spring:spring
2626
WORKDIR /fdp
2727

2828
COPY --from=builder /builder/target/fdp-spring-boot.jar /fdp/app.jar
29+
COPY --from=builder /builder/fixtures /fdp/fixtures
30+
# TODO: copy the (rdf) "data" dir as well, or move that into the fixtures dir, e.g. fixtures/rdf and fixtures/db
2931

3032
ENTRYPOINT ["java", "-jar", "app.jar"]
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)