summaryrefslogtreecommitdiff
path: root/.gitlab-ci/buildbarn-remote-cache.yml
blob: 58ccf5d4eac344c1abd474a2512ecd1a2ff13fb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
##
# Buildbarn Compose manifest for BuildStream.
#
# Spins-up a unnamed and unauthenticated cache server:
#  - STORAGE at http://localhost:7982
#  - INDEX at: http://localhost:7981
#
# BuildStream configuration snippet:
#
# artifacts:
#   - url: https://localhost:7981
#     type: index
#     push: true
#   - url: https://localhost:7982
#     type: storage
#     push: true
#
# Basic usage:
#  - docker-compose -f buildbarn-remote-cache.yml up
#  - docker-compose -f buildbarn-remote-cache.yml down

version: '3.4'

services:
  bb-asset:
    image: buildbarn/bb-remote-asset:20200903T103837Z-90136c4
    command: /config/asset.jsonnet
    restart: unless-stopped
    expose:
    - "7981"
    ports:
    - "7981:7981"
    volumes:
    - type: volume
      source: assets
      target: /storage
    - type: bind
      source: ./config/
      target: /config

  bb-storage:
    image: buildbarn/bb-storage:20200816T115912Z-d83e1f0
    command: /config/storage.jsonnet
    restart: unless-stopped
    expose:
    - "7982"
    ports:
    - "7982:7982"
    volumes:
    - type: volume
      source: cas
      target: /cas
    - type: bind
      source: ./config/
      target: /config

volumes:
  assets:
  cas: