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: README.md
+24-3Lines changed: 24 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -99,6 +99,16 @@ which uses docker-compose for the web server as well.
99
99
This will not cache dependencies - in particular, you'll have to rebuild all 400 whenever the lockfile changes -
100
100
but makes sure that you're in a known environment so you should have fewer problems getting started.
101
101
102
+
You can also use the `web` container to run builds on systems which don't support running builds directly (mostly on Mac OS or Windows):
103
+
```sh
104
+
# run a build for a single crate
105
+
docker-compose run web build crate regex 1.3.1
106
+
# or build essential files
107
+
docker-compose run web build add-essential-files
108
+
# rebuild the web container when you changed code.
109
+
docker-comose build web
110
+
```
111
+
102
112
Note that running tests is not supported when using pure docker-compose.
103
113
104
114
Please file bugs for any trouble you have running docs.rs!
@@ -124,7 +134,7 @@ so this will be necessary anytime you make changes.
124
134
125
135
If you want to completely clean up the database, don't forget to remove the volumes too:
126
136
127
-
```
137
+
```sh
128
138
$ docker-compose down --volumes
129
139
```
130
140
@@ -139,10 +149,18 @@ This is probably because you have `git.autocrlf` set to true,
139
149
140
150
##### I see the error `/opt/rustwide/cargo-home/bin/cargo: cannot execute binary file: Exec format error` when running builds.
141
151
142
-
You are most likely not on a Linux platform. Currently, running builds is only supported on `x86_64-unknown-linux-gnu`.
152
+
You are most likely not on a Linux platform. Running builds directly is only supported on `x86_64-unknown-linux-gnu`. On other platforms you can use the `docker-compose run web build [...]` workaround described above.
143
153
144
-
See [rustwide#41](https://github.com/rust-lang/rustwide/issues/41) for more details.
154
+
See [rustwide#41](https://github.com/rust-lang/rustwide/issues/41) for more details about supporting more platforms directly.
145
155
156
+
##### All tests are failing or timing out
157
+
158
+
Our test setup needs a certain about of file descriptors.
159
+
160
+
At least 4096 should be enough, you can set it via:
161
+
```sh
162
+
$ ulimit -n 4096
163
+
```
146
164
### CLI
147
165
148
166
See `cargo run -- --help` for a full list of commands.
@@ -162,6 +180,9 @@ cargo run -- start-web-server
162
180
# For example, `docker-compose run web build crate regex 1.1.6`
163
181
cargo run -- build crate <CRATE_NAME><CRATE_VERSION>
164
182
183
+
# alternatively, via the web container
184
+
docker-compose run web build crate <CRATE_NAME><CRATE_VERSION>
185
+
165
186
# Builds every crate on crates.io and adds them into database
0 commit comments