<commit_before>version: '2'

services:
  redis:
    image: starkandwayne/redis:edge
    command: "start starkandwayne/redis --peer shield"
    environment:
      HAB_REDIS: |
        bootstrap_from_backup=true
        shield_endpoint='https://shield'
        backups_schedule='daily'
        backups_schedule_value='daily 4am'
        backups_retention='shortterm'
        backups_retention_value='864000'
        backups_store='default'
    links:
    - shield
  shield:
    image: starkandwayne/shield:edge
    ports:
    - 443:443
    command: "start starkandwayne/shield --peer database --bind database:postgresql.shield"
    links:
    - database
  agent: # to autoprovision the dependant store
    image: starkandwayne/shield-agent:edge
    command: "start starkandwayne/shield-agent --bind daemon:shield.default --peer shield"
    environment:
      HAB_SHIELD_AGENT: |
        [[stores]]
        name='default'
        plugin='s3'
        [stores.config]
        access_key_id='${AWS_ACCESS_KEY}'
        secret_access_key='${AWS_SECRET_KEY}'
        bucket='${AWS_BUCKET}'
        prefix='redis-delmo'
    links:
    - shield
  database:
    image: starkandwayne/postgresql:edge
    command: "start starkandwayne/postgresql --group shield"
  tests:
    image: starkandwayne-redis-tests
    build: ./
    environment:
      REDIS_PASSWORD: password
      REDIS_HOST: redis
      SHIELD_ENDPOINT: https://shield
      SHIELD_API_TOKEN: autoprovision
      SHIELD_SKIP_SSL_VERIFY: 'true'
    links:
    - redis<commit_msg>Create schedule and policy in agent in redis test<commit_after>version: '2'

services:
  redis:
    image: starkandwayne/redis:edge
    command: "start starkandwayne/redis --peer shield"
    environment:
      HAB_REDIS: |
        bootstrap_from_backup=true
        shield_endpoint='https://shield'
        backups_schedule='daily'
        backups_retention='shortterm'
        backups_store='default'
    links:
    - shield
  shield:
    image: starkandwayne/shield:edge
    ports:
    - 443:443
    command: "start starkandwayne/shield --peer database --bind database:postgresql.shield"
    links:
    - database
  agent: # to autoprovision the dependant store
    image: starkandwayne/shield-agent:edge
    command: "start starkandwayne/shield-agent --bind daemon:shield.default --peer shield"
    environment:
      HAB_SHIELD_AGENT: |
        [[stores]]
        name='default'
        plugin='s3'
        [stores.config]
        access_key_id='${AWS_ACCESS_KEY}'
        secret_access_key='${AWS_SECRET_KEY}'
        bucket='${AWS_BUCKET}'
        prefix='redis-delmo'
        [schedules]
        daily='daily 4am'
        [retention-policies]
        shortterm='86400'
    links:
    - shield
  database:
    image: starkandwayne/postgresql:edge
    command: "start starkandwayne/postgresql --group shield"
  tests:
    image: starkandwayne-redis-tests
    build: ./
    environment:
      REDIS_PASSWORD: password
      REDIS_HOST: redis
      SHIELD_ENDPOINT: https://shield
      SHIELD_API_TOKEN: autoprovision
      SHIELD_SKIP_SSL_VERIFY: 'true'
    links:
    - redis
{'fraction_non_alphanumeric': 0.09810228369250563, 'fraction_numerical': 0.009327758121582503, 'mean_word_length': 2.746987951807229, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '793397', 'n_tokens_mistral': 1058, 'n_tokens_neox': 1013, 'n_words': 187}