You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/org/fairdatapoint/config/BootstrapConfig.java
+11-6Lines changed: 11 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -37,13 +37,17 @@
37
37
importjava.util.Comparator;
38
38
39
39
/**
40
-
* The {@code BootstrapConfig} class configures a repository populator to load initial data into the relational database, based on JSON fixture files.
40
+
* The {@code BootstrapConfig} class configures a repository populator to load initial data into the relational
41
+
* database, based on JSON fixture files.
41
42
* Bootstrapping is disabled by default, and should only be enabled once, on the very first run of the application.
42
43
* It can also be enabled on subsequent runs, but then it will overwrite any changes that may have been made by users.
43
-
* To enable on the first run, set the env variable {@code BOOTSTRAP_ENABLED=true} on the command line, before running the app.
44
-
* When using e.g. docker compose, you can define {@code BOOTSTRAP_ENABLED: ${BOOTSTRAP_ENABLED:-false}} in the {@code environment} section and then set up the stack by running {@code BOOTSTRAP_ENABLED=true docker compose up -d}.
44
+
* To enable on the first run, set the env variable {@code BOOTSTRAP_ENABLED=true} on the command line, before running
45
+
* the app.
46
+
* When using e.g. docker compose, you can define {@code BOOTSTRAP_ENABLED: ${BOOTSTRAP_ENABLED:-false}} in the
47
+
* {@code environment} section and then set up the stack by running {@code BOOTSTRAP_ENABLED=true docker compose up -d}.
45
48
* The default fixtures are located in the {@code <project-root>/fixtures} directory.
46
-
* To add custom fixtures and/or override any of the default fixtures in a docker compose setup, we can bind-mount individual fixture files.
49
+
* To add custom fixtures and/or override any of the default fixtures in a docker compose setup, we can bind-mount
50
+
* individual fixture files.
47
51
* For example: {@code ./my-fixtures/0100_user-accounts.json:/fdp/fixtures/0100_user-accounts.json:ro}
48
52
* Note that bind-mounting the entire directory, instead of individual files, would hide all default files.
0 commit comments