diff --git a/config.toml b/config.toml index b8cabf9..9fbc9c3 100644 --- a/config.toml +++ b/config.toml @@ -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 @@ -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" diff --git a/docker-compose.yml b/docker-compose.yml index 8a37a71..b87bdc5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,7 +14,7 @@ services: env_file: - .env environment: - - SCCACHE_LOG=sccache=trace + - SCCACHE_LOG=trace # tailscale: # container_name: tailscale diff --git a/docker-compose.yml.example b/docker-compose.yml.example index 87201b8..d61389e 100644 --- a/docker-compose.yml.example +++ b/docker-compose.yml.example @@ -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. @@ -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: \ No newline at end of file + cache: + build: \ No newline at end of file