Commit d5b6165 1 parent 549089a commit d5b6165 Copy full SHA for d5b6165
File tree 4 files changed +7
-7
lines changed
4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ docker compose up -d --build
49
49
xdg-open http://localhost:4000/
50
50
```
51
51
52
- (Linux or WSL users can use ` scripts/host -compose.sh ` instead of ` docker compose ` to enable host networking - useful to launch services in a debugger)
52
+ (Linux or WSL users can use ` ./osrd -compose host ` instead of ` docker compose ` to enable host networking - useful to launch services in a debugger)
53
53
54
54
## Deployment
55
55
Original file line number Diff line number Diff line change @@ -97,22 +97,22 @@ Using a specific script (just through `docker compose` CLI and a set of docker-c
97
97
allows to run a single core worker for all infra on localhost network:
98
98
99
99
``` sh
100
- ./scripts/single-worker- compose.sh up -d
100
+ ./osrd- compose host sw up -d
101
101
102
102
# or exclude 'core' service straight away:
103
- ./scripts/single-worker- compose.sh up -d --scale core=0
103
+ ./osrd- compose host sw up -d --scale core=0
104
104
```
105
105
106
106
Then, it is easy to replace the desired component for debug purpose. \
107
107
For core:
108
108
109
109
``` sh
110
- ./scripts/single-worker- compose.sh down core # if 'core' is running
110
+ ./osrd- compose host sw down core # if 'core' is running
111
111
./gradlew shadowJar && ALL_INFRA=true java -jar -ea -Xmx12g -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=dump.hprof build/libs/osrd-all.jar worker --editoast-url http://localhost:8090/
112
112
```
113
113
114
114
Clean or restart the whole stack can be necessary sometimes and is also available
115
115
through docker compose CLI (the following wipes the database too):
116
116
``` sh
117
- ./scripts/single-worker- compose.sh down -v
117
+ ./osrd- compose host sw down -v
118
118
```
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ as `npm run e2e-tests` or `npx playwright test`.
58
58
>
59
59
> - Run all the components locally (you might keep Postgres and Valkey in containers)
60
60
> - If on Linux, you can also launch all the containers on the host network: you can replace the
61
- > ` docker compose <something> ` above with ` osrd/scripts/host -compose.sh <something> `
61
+ > ` docker compose <something> ` above with ` osrd/osrd -compose host <something> `
62
62
63
63
If the tests fail, a ` front/test-results ` folder will be created, containing videos and traces of
64
64
the failed test executions. These files can help you understand what went wrong. Additionally, the
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ This component is built around 3 crates:
18
18
## Config
19
19
20
20
The gateway reads ` gateway.toml ` in its current working directory.
21
- Please refer to ` gateway.prod.sample .toml ` for a relevant example.
21
+ Please refer to ` gateway.bundled .toml ` for a relevant example.
22
22
23
23
``` toml
24
24
# Address on which the gateway will listen
You can’t perform that action at this time.
0 commit comments