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: v2/stacks/migration/README.md
+18-10Lines changed: 18 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,27 +23,27 @@ To run the stack:
23
23
24
24
This is required for the local docker build to work around a current issue with the volume paths not existing pre-build. Once this issue has been resolved, this step will no longer be necessary.
25
25
26
-
3.Build and start the stack:
26
+
3.For most use cases, you will want to run the stack with dp-topic-api and dp-permissions-api database seeded.
27
27
28
-
```shell
29
-
make up
30
-
```
31
-
32
-
To run the stack with dp-topic-api and dp-permissions-api database seeded:
28
+
To run the seeding you will need mongosh installed:
33
29
34
-
Follow the prerequsites for installing `mongosh` here - `https://github.com/ONSdigital/dp-topic-api/tree/develop/scripts`
30
+
```sh
31
+
brew install mongosh
32
+
```
35
33
36
-
Run:
34
+
To run the services with seeding, run:
37
35
38
36
```shell
39
37
make up-with-seed
40
38
```
41
39
42
-
This assumes that the locations of repositories on your system is in the same root as `dp-compose` or that you have an environment variable set for `$DP_REPO_DIR`
40
+
This will start all the containers (including mongodb) and then run the seeding scripts.
41
+
42
+
The seeding scripts assume that the locations of repositories on your system is in the same root as `dp-compose` or that you have an environment variable set for `$DP_REPO_DIR`.
43
43
44
44
If that is not the correct location, you will be prompted to input a custom location for dp-topic-api or dp-permissions-api on your system.
45
45
46
-
Once the correct location is found, you should see something like:
46
+
When the scripts run, you should see something like the below in your terminal:
47
47
48
48
```shell
49
49
Found dp-topic-api at {some-path}/dp-topic-api
@@ -54,6 +54,14 @@ Seeding permissions API database...
54
54
Found dp-permissions-api at {some-path}/dp-permissions-api
55
55
```
56
56
57
+
If any service hasn't picked up it's topic or permissions cache, you can force a refresh via `SERVICE={serviceName} make restart`.
58
+
59
+
3a. If you don't want to run the stack with the databases seeded, you can use:
60
+
61
+
```sh
62
+
make up
63
+
```
64
+
57
65
## How to test it's all working together
58
66
59
67
1. Access the authentication stub login page <http://localhost:29500/florence/login>
0 commit comments