Skip to content

Commit

Permalink
Update ReportStream Setup steps (#765)
Browse files Browse the repository at this point in the history
* Updated rs setup step

* Updated step 2 of cdc-ti setup

* Fixed indentation

* Removed env variable in command invocation as it should now be available via the .env file
  • Loading branch information
basiliskus authored Jan 15, 2024
1 parent a2e5a3b commit 9def037
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
"filename": "README.md",
"hashed_secret": "e07f44b0222f3680e0a3491edcf61030143e2ae7",
"is_verified": false,
"line_number": 269,
"line_number": 271,
"is_secret": false
}
],
Expand Down Expand Up @@ -253,5 +253,5 @@
}
]
},
"generated_at": "2024-01-10T19:16:29Z"
"generated_at": "2024-01-11T21:32:16Z"
}
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,17 +222,19 @@ For database documentation [go here](/docs/database.md)
1. Checkout `main` branch for `CDCgov/trusted-intermediary`
2. Edit the `app/src/main/java/gov/hhs/cdc/trustedintermediary/etor/EtorDomainRegistration.java` file and replace:
```Java
66if (ApplicationContext.getEnvironment().equalsIgnoreCase("local")) {
67ApplicationContext.register(OrderSender.class, LocalFileOrderSender.getInstance());
68 │ } else {
69ApplicationContext.register(OrderSender.class, ReportStreamOrderSender.getInstance());
70 │ }
if (ApplicationContext.getEnvironment().equalsIgnoreCase("local")) {
ApplicationContext.register(RSEndpointClient.class, MockRSEndpointClient.getInstance());
} else {
ApplicationContext.register(RSEndpointClient.class, ReportStreamEndpointClient.getInstance());
ApplicationContext.register(AzureClient.class, AzureClient.getInstance());
}
```
with:
```Java
66ApplicationContext.register(OrderSender.class, ReportStreamOrderSender.getInstance());
ApplicationContext.register(RSEndpointClient.class, ReportStreamEndpointClient.getInstance());
ApplicationContext.register(AzureClient.class, AzureClient.getInstance());
```
3. Run TI with `REPORT_STREAM_URL_PREFIX=http://localhost:7071 ./gradlew clean app:run`
3. Run TI with `./gradlew clean app:run`

#### ReportStream Setup

Expand All @@ -241,8 +243,8 @@ After enabling this option it is recommended that you delete all docker images a
with this option enabled.

1. Checkout `master` branch for `CDCgov/prime-reportstream`
2. Follow [the steps in the ReportStream docs](https://github.com/CDCgov/prime-reportstream/blob/master/prime-router/docs/docs-deprecated/getting-started/getting-started.md#building-the-baseline) to build the baseline
3. CD to `prime-reportstream/prime-router`
2. CD to `prime-reportstream/prime-router`
3. Run the `./cleanslate` script. For more information you can refer to the [ReportStream docs](https://github.com/CDCgov/prime-reportstream/blob/master/prime-router/docs/docs-deprecated/getting-started/getting-started.md#building-the-baseline)
4. Run RS with `docker compose up --build -d`
5. Run `./gradlew resetDB && ./gradlew reloadTable && ./gradlew reloadSettings`
6. Edit `prime-router/settings/staging/0149-etor.yml`
Expand Down

0 comments on commit 9def037

Please sign in to comment.