<commit_before>zk:
  image: bobrik/zookeeper
  net: host
  environment:
    ZK_CONFIG: tickTime=2000,initLimit=10,syncLimit=5,maxClientCnxns=128,forceSync=no,clientPort=2181
    ZK_ID: 1

master:
  image: mesosphere/mesos-master:1.1.1
  net: host
  environment:
    MESOS_ZK: zk://localhost:2181/mesos
    MESOS_HOSTNAME: ${DOCKER_IP}
    MESOS_IP: ${DOCKER_IP}
    MESOS_QUORUM: 1
    MESOS_CLUSTER: docker-compose
    MESOS_WORK_DIR: /var/lib/mesos
    MESOS_ROLES: "OPS"

slave:
  image: hubspot/singularityexecutorslave:0.19.0-SNAPSHOT
  command: mesos-slave
  net: host
  environment:
    MESOS_MASTER: zk://localhost:2181/mesos
    MESOS_HOSTNAME: localhost
    MESOS_IP: 127.0.0.1
    MESOS_CONTAINERIZERS: docker,mesos
    MESOS_ROLES: "OPS"
    MESOS_RESOURCES: "cpus(OPS):1;cpus(*):1;mem(OPS):512;mem(*):1024"
    MESOS_ATTRIBUTES: "example:value;myNumber:1"
    MESOS_ISOLATION: cgroups/cpu,cgroups/mem
    MESOS_WORK_DIR: /var/lib/mesos/agent
  volumes:
    - /var/run/docker.sock:/var/run/docker.sock
    - /sys:/sys

scheduler:
  image: hubspot/singularityservice:0.19.0-SNAPSHOT
  net: host
  environment:
    - DOCKER_HOST
    - LOAD_BALANCER_URI=http://localhost:8080/baragon/v2/request
    - SINGULARITY_SMTP_HOST=localhost
    - SINGULARITY_SMTP_PORT=1025
    - SINGULARITY_MESOS_FRAMEWORK_ROLE=OPS

baragonservice:
  image: hubspot/baragonservice:0.5.0
  net: host<commit_msg>Point Singularity at the "external" interface where mesos-master is listening.<commit_after>zk:
  image: bobrik/zookeeper
  net: host
  environment:
    ZK_CONFIG: tickTime=2000,initLimit=10,syncLimit=5,maxClientCnxns=128,forceSync=no,clientPort=2181
    ZK_ID: 1

master:
  image: mesosphere/mesos-master:1.1.1
  net: host
  environment:
    MESOS_ZK: zk://localhost:2181/mesos
    MESOS_HOSTNAME: ${DOCKER_IP}
    MESOS_IP: ${DOCKER_IP}
    MESOS_QUORUM: 1
    MESOS_CLUSTER: docker-compose
    MESOS_WORK_DIR: /var/lib/mesos
    MESOS_ROLES: "OPS"

slave:
  image: hubspot/singularityexecutorslave:0.19.0-SNAPSHOT
  command: mesos-slave
  net: host
  environment:
    MESOS_MASTER: zk://localhost:2181/mesos
    MESOS_HOSTNAME: localhost
    MESOS_IP: 127.0.0.1
    MESOS_CONTAINERIZERS: docker,mesos
    MESOS_ROLES: "OPS"
    MESOS_RESOURCES: "cpus(OPS):1;cpus(*):1;mem(OPS):512;mem(*):1024"
    MESOS_ATTRIBUTES: "example:value;myNumber:1"
    MESOS_ISOLATION: cgroups/cpu,cgroups/mem
    MESOS_WORK_DIR: /var/lib/mesos/agent
  volumes:
    - /var/run/docker.sock:/var/run/docker.sock
    - /sys:/sys

scheduler:
  image: hubspot/singularityservice:0.19.0-SNAPSHOT
  net: host
  environment:
    - DOCKER_HOST
    - LOAD_BALANCER_URI=http://localhost:8080/baragon/v2/request
    - SINGULARITY_SMTP_HOST=localhost
    - SINGULARITY_SMTP_PORT=1025
    - SINGULARITY_MESOS_FRAMEWORK_ROLE=OPS
    - SINGULARITY_MESOS_MASTER=${DOCKER_IP}:5050

baragonservice:
  image: hubspot/baragonservice:0.5.0
  net: host
{'fraction_non_alphanumeric': 0.11562284927735719, 'fraction_numerical': 0.044735030970406056, 'mean_word_length': 4.10896309314587, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5782411', 'n_tokens_mistral': 1328, 'n_tokens_neox': 1235, 'n_words': 159}