diff --git a/docker-compose/config/remote-asset.jsonnet b/docker-compose/config/remote-asset.jsonnet new file mode 100644 index 00000000..ea42115c --- /dev/null +++ b/docker-compose/config/remote-asset.jsonnet @@ -0,0 +1,26 @@ +local common = import 'common.libsonnet'; +{ + fetcher: { + caching: { + fetcher: { + http: { + allowUpdatesForInstances: ['fuse', 'hardlinking'], + contentAddressableStorage: common.blobstore.contentAddressableStorage, + }, + }, + }, + }, + + assetCache: { + actionCache: { + blobstore: common.blobstore, + }, + }, + global: common.global, + grpcServers: [{ + listenAddresses: [':8984'], + authenticationPolicy: { allow: {} }, + }], + allowUpdatesForInstances: ['foo'], + maximumMessageSizeBytes: 16 * 1024 * 1024 * 1024, +} diff --git a/docker-compose/docker-compose.yml b/docker-compose/docker-compose.yml index ae917be2..51e7b73a 100644 --- a/docker-compose/docker-compose.yml +++ b/docker-compose/docker-compose.yml @@ -124,3 +124,15 @@ services: - ./volumes/worker-hardlinking-ubuntu22-04:/worker depends_on: - runner-installer + + remote-asset: + # TODO(minor-fixes): Replace with actual container once pushed to ghcr + image: bazel/cmd/bb_remote_asset:bb_remote_asset_container + command: + - /config/remote-asset.jsonnet + expose: + - 9980 + ports: + - 8984:8984 + volumes: + - ./config:/config \ No newline at end of file