Skip to content

Commit

Permalink
wtf
Browse files Browse the repository at this point in the history
  • Loading branch information
korewaChino committed Jan 14, 2024
1 parent 3a76db3 commit 5a3efb9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cache_dir = "/var/cache/sccache"
# If unspecified the default is 10GB.
# toolchain_cache_size = 10737418240
# A public IP address and port that clients will use to connect to this builder.
public_addr = "$PUBLIC_ADDR:10600"
public_addr = "0.0.0.0:10600"
# The URL used to connect to the scheduler (should use https, given an ideal
# setup of a HTTPS server in front of the scheduler)
scheduler_url = "$SCHEDULER_URL"
Expand Down
6 changes: 5 additions & 1 deletion dist-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ while [ "$PUBLIC_ADDR" == "null" ]; do
export PUBLIC_ADDR=$(get_tailscale_ip)
done

export PUBLIC_ADDR="$PUBLIC_ADDR:10600"

ip addr show

REQUIRED_ENVS=(
"SERVER_TOKEN"
"SCHEDULER_URL"
Expand All @@ -36,4 +40,4 @@ done

envsubst <$CONFIG_TEMPLATE > $CONFIG_FILE

sccache-dist server --config $CONFIG_FILE
sccache-dist server --config $CONFIG_FILE --syslog debug
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
services:
sccache-server:
build:
context: .
dockerfile: Dockerfile
image: ghcr.io/fyralabs/fyra-build-client:main
privileged: true
depends_on:
Expand All @@ -8,6 +11,8 @@ services:
volumes:
- cache:/var/cache/sccache
- /tmp/tailscale:/tmp
env_file:
- .env

tailscale:
image: tailscale/tailscale:latest
Expand Down

0 comments on commit 5a3efb9

Please sign in to comment.