...

Text file src/github.com/sigstore/rekor/docker-compose.test.yml

Documentation: github.com/sigstore/rekor

     1#
     2# Copyright 2022 The Sigstore Authors.
     3#
     4# Licensed under the Apache License, Version 2.0 (the "License");
     5# you may not use this file except in compliance with the License.
     6# You may obtain a copy of the License at
     7#
     8#     http://www.apache.org/licenses/LICENSE-2.0
     9#
    10# Unless required by applicable law or agreed to in writing, software
    11# distributed under the License is distributed on an "AS IS" BASIS,
    12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13# See the License for the specific language governing permissions and
    14# limitations under the License.
    15
    16version: '3.4'
    17services:
    18  rekor-server:
    19    build:
    20      context: .
    21      target: "test"
    22    environment:
    23      TMPDIR: /var/run/attestations # workaround for https://github.com/google/go-cloud/issues/3294
    24      PUBSUB_EMULATOR_HOST: gcp-pubsub-emulator:8085
    25    command: [
    26      "rekor-server",
    27      "-test.coverprofile=rekor-server.cov",
    28      "serve",
    29      "--trillian_log_server.address=trillian-log-server",
    30      "--trillian_log_server.port=8090",
    31      "--redis_server.address=redis-server",
    32      "--redis_server.port=6379",
    33      "--redis_server.password=test",
    34      "--rekor_server.address=0.0.0.0",
    35      "--rekor_server.signer=memory",
    36      "--enable_attestation_storage",
    37      "--attestation_storage_bucket=file:///var/run/attestations",
    38      "--max_request_body_size=32792576",
    39      "--rekor_server.new_entry_publisher=gcppubsub://projects/test-project/topics/new-entry",
    40      "--rekor_server.publish_events_json=true",
    41      "--search_index.storage_provider=mysql",
    42      "--search_index.mysql.dsn=test:zaphod@tcp(mysql:3306)/test",
    43      ]
    44    ports:
    45      - "3000:3000"
    46      - "2112:2112"
    47    depends_on:
    48      - gcp-pubsub-emulator
    49      - mysql
    50  gcp-pubsub-emulator:
    51    image: gcp-pubsub-emulator
    52    ports:
    53      - "8085:8085"
    54    command:
    55      - gcloud
    56      - beta
    57      - emulators
    58      - pubsub
    59      - start
    60      - --host-port=0.0.0.0:8085
    61      - --project=test-project
    62    healthcheck:
    63      test: ["CMD", "nc", "-zv", "localhost", "8085"]
    64      interval: 10s
    65      timeout: 3s
    66      retries: 3
    67      start_period: 10s

View as plain text