Skip to content

Commit

Permalink
add sscache
Browse files Browse the repository at this point in the history
  • Loading branch information
Deniallugo committed Jan 12, 2021
1 parent 0c28561 commit 94f62ec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions docker-compose-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ services:
- .:/usr/src/zksync
- /usr/src/cache:/usr/src/cache
- /usr/src/keys:/usr/src/keys
- /usr/local/cargo/bin/sccache:usr/local/cargo/bin/sccache

environment:
- IN_DOCKER=true
- CACHE_DIR=/usr/src/cache
Expand Down
5 changes: 3 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ services:
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /tmp/runner:/tmp/runner
- /Users/danillugovskoy/cache:/Users/danillugovskoy/cache
- /Users/danillugovskoy/keys:/Users/danillugovskoy/keys
- /usr/src/cache:/usr/src/cache
- /usr/src/keys:/usr/src/keys
- /usr/local/cargo/bin/sccache:usr/local/cargo/bin/sccache

volumes:
keys:
2 changes: 1 addition & 1 deletion docker/zk/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ENV ZKSYNC_HOME=/usr/src/zksync
ENV PATH="${ZKSYNC_HOME}/bin:${PATH}"
ENV CI=1
RUN cargo install sccache
ENV RUSTC_WRAPPER=/usr/src/cache/sscache
ENV RUSTC_WRAPPER=/usr/local/cargo/bin/sccache

COPY docker/zk/entrypoint.sh /usr/local/bin/entrypoint.sh

Expand Down

0 comments on commit 94f62ec

Please sign in to comment.