<commit_before>version: '3.4'

x-common-variables: &common-variables
  - GITHUB_USERNAME=${GITHUB_USERNAME}
  - GITHUB_PASSWORD=${<PASSWORD>}
  - AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
  - AWS_ACCESS_KEY=${AWS_ACCESS_KEY}
  - REPO=${REPO}
  - BRANCH=${BRANCH}

services:
  centos6_base:
    build:
      context: ./
      dockerfile: docker-files/centos_rhel/Dockerfile
      args:
        BASE_IMAGE: centos:6
    image: centos6_base_img
  centos6_agent:
    build:
      context: ./
      dockerfile: docker-files/Dockerfile
      args:
        BASE_IMAGE: centos6_base_img
    image: centos6_agent_img
    container_name: centos6_agent
    environment: *common-variables
    network_mode: host
    depends_on:
      - centos6_base

  centos7_base:
    build:
      context: ./
      dockerfile: docker-files/centos_rhel/Dockerfile
      args:
        BASE_IMAGE: centos:7
    image: centos7_base_img
  centos7_agent:
    build:
      context: ./
      dockerfile: docker-files/Dockerfile
      args:
        BASE_IMAGE: centos7_base_img
    image: centos7_agent_img
    container_name: centos7_agent
    environment: *common-variables
    network_mode: host
    depends_on:
      - centos7_base

  redhat6_base:
    build:
      context: ./
      dockerfile: docker-files/centos_rhel/Dockerfile
      args:
        BASE_IMAGE: rhel-subs:6.1
    image: redhat6_base_img
  redhat6_agent:
    build:
      context: ./
      dockerfile: docker-files/Dockerfile
      args:
        BASE_IMAGE: redhat6_base_img
    image: redhat6_agent_img
    container_name: redhat6_agent
    environment: *common-variables
    network_mode: host
    depends_on:
      - redhat6_base

  redhat7_base:
    build:
      context: ./
      dockerfile: docker-files/centos_rhel/Dockerfile
      args:
        BASE_IMAGE: rhel-subs:7
    image: redhat7_base_img
  redhat7_agent:
      build:
        context: ./
        dockerfile: docker-files/Dockerfile
        args:
          BASE_IMAGE: redhat7_base_img
      image: redhat7_agent_img
      container_name: redhat7_agent
      environment: *common-variables
      network_mode: host
      depends_on:
        - redhat7_base

  ubuntu14_base:
    build:
      context: ./
      dockerfile: docker-files/ubuntu/Dockerfile
      args:
        BASE_IMAGE: ubuntu:14.04
    image: ubuntu14_base_img
  ubuntu14_agent:
    build:
      context: ./
      dockerfile: docker-files/Dockerfile
      args:
        BASE_IMAGE: ubuntu14_base_img
    image: ubuntu14_agent_img
    container_name: ubuntu14_agent
    environment: *common-variables
    network_mode: host
    depends_on:
      - ubuntu14_base

  ubuntu16_base:
    build:
      context: ./
      dockerfile: docker-files/ubuntu/Dockerfile
      args:
        BASE_IMAGE: ubuntu:16.04
    image: ubuntu16_base_img
  ubuntu16_agent:
    build:
      context: ./<commit_msg>Temporarily stop building RHEL agents (#541)<commit_after>version: '3.4'

x-common-variables: &common-variables
  - GITHUB_USERNAME=${GITHUB_USERNAME}
  - GITHUB_PASSWORD=${<PASSWORD>}
  - AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
  - AWS_ACCESS_KEY=${AWS_ACCESS_KEY}
  - REPO=${REPO}
  - BRANCH=${BRANCH}

services:
  centos6_base:
    build:
      context: ./
      dockerfile: docker-files/centos_rhel/Dockerfile
      args:
        BASE_IMAGE: centos:6
    image: centos6_base_img
  centos6_agent:
    build:
      context: ./
      dockerfile: docker-files/Dockerfile
      args:
        BASE_IMAGE: centos6_base_img
    image: centos6_agent_img
    container_name: centos6_agent
    environment: *common-variables
    network_mode: host
    depends_on:
      - centos6_base

  centos7_base:
    build:
      context: ./
      dockerfile: docker-files/centos_rhel/Dockerfile
      args:
        BASE_IMAGE: centos:7
    image: centos7_base_img
  centos7_agent:
    build:
      context: ./
      dockerfile: docker-files/Dockerfile
      args:
        BASE_IMAGE: centos7_base_img
    image: centos7_agent_img
    container_name: centos7_agent
    environment: *common-variables
    network_mode: host
    depends_on:
      - centos7_base

  ubuntu14_base:
    build:
      context: ./
      dockerfile: docker-files/ubuntu/Dockerfile
      args:
        BASE_IMAGE: ubuntu:14.04
    image: ubuntu14_base_img
  ubuntu14_agent:
    build:
      context: ./
      dockerfile: docker-files/Dockerfile
      args:
        BASE_IMAGE: ubuntu14_base_img
    image: ubuntu14_agent_img
    container_name: ubuntu14_agent
    environment: *common-variables
    network_mode: host
    depends_on:
      - ubuntu14_base

  ubuntu16_base:
    build:
      context: ./
      dockerfile: docker-files/ubuntu/Dockerfile
      args:
        BASE_IMAGE: ubuntu:16.04
    image: ubuntu16_base_img
  ubuntu16_agent:
    build:
      context: ./
{'fraction_non_alphanumeric': 0.08031792512026772, 'fraction_numerical': 0.02342606149341142, 'mean_word_length': 2.53960029607698, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '493888', 'n_tokens_mistral': 1785, 'n_tokens_neox': 1642, 'n_words': 277}