<commit_before>version: "2.1"

services:
  # InfluxDB container
  influxdb:
    image: influxdb:1.1-alpine
    environment:
      PRE_CREATE_DB: "ontrack"
    # Makes all ports accessible on the host for testing
    ports:
      - "8083"

  # H2 database
  h2:
    image: "nemerosa/h2:latest"
    ports:
      - "9082"
      - "8082"

  # Vault
  # Non production setup
  # See https://hub.docker.com/_/vault/
  vault:
    image: "vault:0.9.0"
    environment:
      VAULT_DEV_ROOT_TOKEN_ID: "test"
    cap_add:
      - "IPC_LOCK"
    ports:
      - "8200"

  # Ontrack container
  ontrack:
    image: "docker.nemerosa.net/nemerosa/ontrack:${ONTRACK_VERSION:-latest}"
    environment:
       PROFILE: acceptance
       ONTRACK_CONFIG_CONFIGURATION_TEST: "false"
       ONTRACK_DB_URL: "jdbc:h2:tcp://h2:9082/ontrack;MODE=MYSQL"
       # Using Vault for storing the encryption keys
       ONTRACK_CONFIG_KEY_STORE: "vault"
       ONTRACK_CONFIG_VAULT_URI: "http://vault:8200"
       ONTRACK_CONFIG_VAULT_TOKEN: "test"
       # Sending metrics to InfluxDB
       ONTRACK_METRICS_INFLUXDB_HOST: "influxdb"
       ONTRACK_METRICS_INFLUXDB_PERIOD: 5
       ONTRACK_CONFIG_METRICS_PERIOD: 5
    volumes:
      # Better startup performances in CI and DO, do not use in Prod
      - "/dev/urandom:/dev/random"
    ports:
      - "8080:8080"
    depends_on:
      vault:
        condition: service_started
      h2:
        condition: service_started<commit_msg>[pipeline] Disabling InfluxDB in DO<commit_after>version: "2.1"

services:

  # H2 database
  h2:
    image: "nemerosa/h2:latest"
    ports:
      - "9082"
      - "8082"

  # Vault
  # Non production setup
  # See https://hub.docker.com/_/vault/
  vault:
    image: "vault:0.9.0"
    environment:
      VAULT_DEV_ROOT_TOKEN_ID: "test"
    cap_add:
      - "IPC_LOCK"
    ports:
      - "8200"

  # Ontrack container
  ontrack:
    image: "docker.nemerosa.net/nemerosa/ontrack:${ONTRACK_VERSION:-latest}"
    environment:
       PROFILE: acceptance
       ONTRACK_CONFIG_CONFIGURATION_TEST: "false"
       ONTRACK_DB_URL: "jdbc:h2:tcp://h2:9082/ontrack;MODE=MYSQL"
       # Using Vault for storing the encryption keys
       ONTRACK_CONFIG_KEY_STORE: "vault"
       ONTRACK_CONFIG_VAULT_URI: "http://vault:8200"
       ONTRACK_CONFIG_VAULT_TOKEN: "test"
    volumes:
      # Better startup performances in CI and DO, do not use in Prod
      - "/dev/urandom:/dev/random"
    ports:
      - "8080:8080"
    depends_on:
      vault:
        condition: service_started
      h2:
        condition: service_started
{'fraction_non_alphanumeric': 0.10183378852906749, 'fraction_numerical': 0.03355442840421381, 'mean_word_length': 2.586013986013986, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7659675', 'n_tokens_mistral': 995, 'n_tokens_neox': 943, 'n_words': 182}