Skip to content

Commit

Permalink
Update cache and build directories
Browse files Browse the repository at this point in the history
  • Loading branch information
korewaChino committed Jan 20, 2024
1 parent a9ce403 commit 971a617
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion config.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# This is where client toolchains will be stored.
cache_dir = "/var/cache/sccache"

# The maximum size of the toolchain cache, in bytes.
# If unspecified the default is 10GB.
# toolchain_cache_size = 10737418240
Expand All @@ -12,7 +13,7 @@ scheduler_url = "$SCHEDULER_URL"
[builder]
type = "overlay"
# The directory under which a sandboxed filesystem will be created for builds.
build_dir = "/tmp/build"
build_dir = "/var/tmp/build"
# The path to the bubblewrap version 0.3.0+ `bwrap` binary.
bwrap_path = "/usr/bin/bwrap"

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
env_file:
- .env
environment:
- SCCACHE_LOG=sccache=trace
- SCCACHE_LOG=trace

# tailscale:
# container_name: tailscale
Expand Down
6 changes: 4 additions & 2 deletions docker-compose.yml.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ services:
restart: unless-stopped
volumes:
- cache:/var/cache/sccache
- build:/var/tmp/build

# Set the below environment variables to configure the sccache server.

Expand All @@ -15,7 +16,8 @@ services:
environment:
# - SCHEDULER_URL=http://sccache-scheduler:8080
# - SERVER_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- SCCACHE_LOG=sccache=trace # for debugging
- SCCACHE_LOG=trace # for debugging

volumes:
cache:
cache:
build:

0 comments on commit 971a617

Please sign in to comment.