@@ -122,7 +122,13 @@ This will not cache dependencies - in particular, you'll have to rebuild all 400
122
122
but makes sure that you're in a known environment so you should have fewer problems getting started.
123
123
124
124
You'll need to ` touch .docker.env ` first, this file can have any environment
125
- variable overrides you want to use in docker containers.
125
+ variable overrides you want to use in docker containers. Then run the migrations
126
+ before launching the main services:
127
+
128
+ ``` sh
129
+ docker compose run --build --rm cli database migrate
130
+ docker compose up --build -d
131
+ ```
126
132
127
133
You can also use the ` builder-a ` container to run builds on systems which don't support running builds directly (mostly on Mac OS or Windows):
128
134
@@ -142,15 +148,25 @@ docker compose run --rm cli database migrate
142
148
docker compose run --rm cli queue add regex 1.3.1
143
149
```
144
150
145
- If the command needs the crates.io-index clone then it must be run from within
146
- a ` registry-watcher ` container:
151
+ If you want to run the registry watcher, you'll need to first set the "last seen
152
+ reference" from the registry index, e.g. to set it to the current head so only
153
+ newly published crates are built:
154
+
155
+ ``` sh
156
+ docker compose run --rm cli queue set-last-seen-reference --head
157
+ ```
158
+
159
+ Then enable the docker-compose profile that includes the watcher:
147
160
148
161
``` sh
149
- docker compose run --rm registry-watcher queue set-last-seen-reference --head
162
+ docker compose --profile watch up --build -d
150
163
```
151
164
152
165
Note that running tests is not supported when using pure docker-compose.
153
166
167
+ Some of the above commands are included in the ` Justfile ` for ease of use,
168
+ check the ` [compose] ` group in ` just --list ` .
169
+
154
170
Please file bugs for any trouble you have running docs.rs!
155
171
156
172
### Docker-Compose
0 commit comments