Sign inSign up

80dw/buildfarm-server

By 80dw

•Updated over 6 years ago
Archived

Public container release for the https://github.com/bazelbuild/bazel-buildfarm server.

Image
1

50K+

80dw/buildfarm-server repository overview

⁠Run Redis Container

docker run -d --name buildfarm-redis -p 6379:6379 redis:5.0.9

⁠Run Buildfarm Server Container

docker run -d --name buildfarm-server -v $(pwd):/var/lib/buildfarm-server -p 8980:8980 --network host 80dw/buildfarm-server:latest /var/lib/buildfarm-server/shard-server.config -p 8980

For shard-server.config use the following:

instances {
  name: "shard"
  digest_function: SHA256
  shard_instance_config: {
    run_dispatched_monitor: true
    dispatched_monitor_interval_seconds: 1
    run_operation_queuer: true
    max_blob_size: 4294967296
    redis_shard_backplane_config: {
      redis_uri: "redis://localhost:6379"
      jedis_pool_max_total: 4000
      workers_hash_name: "Workers"
      worker_channel: "WorkerChannel"
      action_cache_prefix: "ActionCache"
      action_cache_expire: 2419200 # 4 weeks
      action_blacklist_prefix: "ActionBlacklist"
      action_blacklist_expire: 3600 # 1 hour
      operation_prefix: "Operation"
      operation_expire: 604800 # 1 week
      pre_queued_operations_list_name: "{Arrival}:PreQueuedOperations"
      processing_list_name: "{Arrival}:ProcessingOperations"
      processing_prefix: "Processing"
      processing_timeout_millis: 10000
      queued_operations_list_name: "{Execution}:QueuedOperations"
      dispatching_list_name: "{Execution}:DispatchingOperations"
      dispatching_prefix: "Dispatching"
      dispatching_timeout_millis: 10000
      dispatched_operations_hash_name: "DispatchedOperations"
      operation_channel_prefix: "OperationChannel"
      cas_prefix: "ContentAddressableStorage"
      cas_expire: 604800 # 1 week
      subscribe_to_backplane: true
      run_failsafe_operation: true
      max_queue_depth: 100000
      max_pre_queue_depth: 1000000
    }
  }
}
port: 8980
default_instance_name: "shard"

Tag summary

Content type

Image

Digest

Size

90.3 MB

Last updated

over 6 years ago

docker pull 80dw/buildfarm-server