File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -14,17 +14,21 @@ services:
14
14
expose : ["3000"]
15
15
volumes :
16
16
- " /var/run/docker.sock:/var/run/docker.sock"
17
- - " .rustwide-docker:/opt/docsrs/rustwide"
18
- - " cratesio-index:/opt/docsrs/prefix/crates.io-index"
19
- - " artifact-cache:/opt/docsrs/prefix/artifact_cache"
17
+ # we only need one of the two mappings here.
18
+ # this will link to your local filesystem, which makes build debugging
19
+ # easier
20
+ - " ./ignored/opt-docsrs:/opt/docsrs_ext/"
21
+ # this uses a docker volume and will be faster, but you need to
22
+ # log into the container to debug its contents
23
+ # - "prefix-ext:/opt/docsrs_ext/"
20
24
environment :
21
- DOCSRS_RUSTWIDE_WORKSPACE : /opt/docsrs/rustwide
25
+ DOCSRS_RUSTWIDE_WORKSPACE : /opt/docsrs_ext/rustwide
26
+ DOCSRS_PREFIX : /opt/docsrs_ext/prefix
22
27
DOCSRS_DATABASE_URL : postgresql://cratesfyi:password@db
23
28
DOCSRS_STORAGE_BACKEND : s3
24
29
S3_ENDPOINT : http://s3:9000
25
30
AWS_ACCESS_KEY_ID : cratesfyi
26
31
AWS_SECRET_ACCESS_KEY : secret_key
27
- DOCSRS_PREFIX : /opt/docsrs/prefix
28
32
env_file :
29
33
- .env
30
34
healthcheck :
@@ -95,5 +99,4 @@ services:
95
99
volumes :
96
100
postgres-data : {}
97
101
minio-data : {}
98
- cratesio-index : {}
99
- artifact-cache : {}
102
+ prefix-ext : {}
Original file line number Diff line number Diff line change 2
2
3
3
set -euv
4
4
5
- export DOCSRS_PREFIX=/opt/docsrs/prefix
5
+ export DOCSRS_PREFIX=${DOCSRS_PREFIX :- " /opt/docsrs/prefix" }
6
6
export DOCSRS_DOCKER=true
7
7
export DOCSRS_LOG=${DOCSRS_LOG-" docs-rs,rustwide=info" }
8
8
export PATH=" $PATH :/build/target/release"
You can’t perform that action at this time.
0 commit comments