<commit_before>############################################################
# Dockerfile to run Loads Broker Containers
# Based on Ununtu Image
############################################################

# Set the base image to use to Ubuntu
FROM stackbrew/debian:wheezy
RUN echo "deb http://ftp.debian.org/debian sid main" >> /etc/apt/sources.list
RUN apt-get update

MAINTAINER Mozilla Cloud Services

RUN apt-get update
RUN apt-get install -y python3-pip
RUN apt-get install -y python-virtualenv
RUN apt-get install -y git
RUN apt-get install -y wget
RUN apt-get install -y python3-dev

# influxdb
RUN wget http://s3.amazonaws.com/influxdb/influxdb_latest_amd64.deb
RUN dpkg -i influxdb_latest_amd64.deb
RUN apt-get update

# sshd
RUN apt-get -y install openssh-server
RUN mkdir /var/run/sshd
RUN sed -i "s/#PasswordAuthentication yes/PasswordAuthentication no/" /etc/ssh/sshd_config

# Adding loads user
RUN adduser --system loads
RUN mkdir -p /home/loads/.ssh
RUN sed -i s#/home/loads:/bin/false#/home/loads:/bin/bash# /etc/passwd

# Clearing and setting authorized ssh keys
RUN echo '' > /home/loads/.ssh/authorized_keys
RUN echo 'ssh-dss AAAAB3NzaC1kc3MAAACBAO1ruCNM0UDWugGQtsmO3B+LGJ+LxXVmQWo+53fOD+m8vQy98wFVpTTUWFXTXKUpAUkhgUOTuabIYSkEnpiDF9MasPFFwVHh9SNq1lWLifmPrHVGZ3+P5t6zskD51HaxeOuJJDasTIMxq8+d0TUP6SoGIzOWWU/GTVooqXsZ2/WnAAAAFQDdWZgnOsQm7FQWWYMSsP7LXXNrPwAAAIBRDreK4rnfeZU4oeLrnvMlakdzjAgCso7utwgZva95i7qjDHQODpWos+hjjLf6naRraXGnd2FVkep10luWzKiQpC4Hdy5s91203ZBZy/fw8coubNgt1Smd+Zi89yTLEe+xUYrSVoxfARY/e0DdRJmBb1ifkooAyujdTEhXmUDNLAAAAIBNUiOOL0s0m5Nth+fihLX7vwcexMCFS4PfnoERlAxj2tCWiNl8IEFbfYyiNMGVk9pjTnABpyaVCcNS8KopnPosvYwnSgpPUvZn7ssRacXwMF7PYd8h7iDN33jcmxGPLfnLwz+f6ODwvjIQOzAsPeNPh7d15NOVI6p/3O8LlgV+Jw== <EMAIL>' >> /home/loads/.ssh/authorized_keys

# set the default user to loads
#USER loads

# deploying the loads-broker project
RUN git clone https://github.com/loads/loads-broker /home/loads/loads-broker
RUN cd /home/loads/loads-broker; make build
RUN cd /home/loads/loads-broker; bin/pip install circus

EXPOSE 22
EXPOSE 8083
EXPOSE 8086
EXPOSE 8084

ADD circus.ini /home/loads/circus.ini
ADD config.toml /config/config.toml
ADD boto.cfg /etc/boto.cfg
ADD run.sh /run.sh
RUN chmod +x /*.sh


CMD /home/loads/loads-broker/bin/circusd /home/loads/circus.ini
<commit_msg>EXPOSEing 8080<commit_after>############################################################
# Dockerfile to run Loads Broker Containers
# Based on Ununtu Image
############################################################

# Set the base image to use to Ubuntu
FROM stackbrew/debian:wheezy
RUN echo "deb http://ftp.debian.org/debian sid main" >> /etc/apt/sources.list
RUN apt-get update

MAINTAINER Mozilla Cloud Services

RUN apt-get update
RUN apt-get install -y python3-pip
RUN apt-get install -y python-virtualenv
RUN apt-get install -y git
RUN apt-get install -y wget
RUN apt-get install -y python3-dev

# influxdb
RUN wget http://s3.amazonaws.com/influxdb/influxdb_latest_amd64.deb
RUN dpkg -i influxdb_latest_amd64.deb
RUN apt-get update

# sshd
RUN apt-get -y install openssh-server
RUN mkdir /var/run/sshd
RUN sed -i "s/#PasswordAuthentication yes/PasswordAuthentication no/" /etc/ssh/sshd_config

# Adding loads user
RUN adduser --system loads
RUN mkdir -p /home/loads/.ssh
RUN sed -i s#/home/loads:/bin/false#/home/loads:/bin/bash# /etc/passwd

# Clearing and setting authorized ssh keys
RUN echo '' > /home/loads/.ssh/authorized_keys
RUN echo 'ssh-dss AAAAB3NzaC1kc3MAAACBAO1ruCNM0UDWugGQtsmO3B+LGJ+LxXVmQWo+53fOD+m8vQy98wFVpTTUWFXTXKUpAUkhgUOTuabIYSkEnpiDF9MasPFFwVHh9SNq1lWLifmPrHVGZ3+P5t6zskD51HaxeOuJJDasTIMxq8+d0TUP6SoGIzOWWU/GTVooqXsZ2/WnAAAAFQDdWZgnOsQm7FQWWYMSsP7LXXNrPwAAAIBRDreK4rnfeZU4oeLrnvMlakdzjAgCso7utwgZva95i7qjDHQODpWos+hjjLf6naRraXGnd2FVkep10luWzKiQpC4Hdy5s91203ZBZy/fw8coubNgt1Smd+Zi89yTLEe+xUYrSVoxfARY/e0DdRJmBb1ifkooAyujdTEhXmUDNLAAAAIBNUiOOL0s0m5Nth+fihLX7vwcexMCFS4PfnoERlAxj2tCWiNl8IEFbfYyiNMGVk9pjTnABpyaVCcNS8KopnPosvYwnSgpPUvZn7ssRacXwMF7PYd8h7iDN33jcmxGPLfnLwz+f6ODwvjIQOzAsPeNPh7d15NOVI6p/3O8LlgV+Jw== <EMAIL>' >> /home/loads/.ssh/authorized_keys

# set the default user to loads
#USER loads

# deploying the loads-broker project
RUN git clone https://github.com/loads/loads-broker /home/loads/loads-broker
RUN cd /home/loads/loads-broker; make build
RUN cd /home/loads/loads-broker; bin/pip install circus

EXPOSE 22
EXPOSE 8080
EXPOSE 8083
EXPOSE 8086
EXPOSE 8084

ADD circus.ini /home/loads/circus.ini
ADD config.toml /config/config.toml
ADD boto.cfg /etc/boto.cfg
ADD run.sh /run.sh
RUN chmod +x /*.sh


CMD /home/loads/loads-broker/bin/circusd /home/loads/circus.ini

{'fraction_non_alphanumeric': 0.13278368409633326, 'fraction_numerical': 0.04122369277500543, 'mean_word_length': 5.880597014925373, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '718665', 'n_tokens_mistral': 2124, 'n_tokens_neox': 1985, 'n_words': 355}