<commit_before>FROM gcr.io/google_containers/hyperkube-amd64:v1.2.0
MAINTAINER MidoNet (http://midonet.org)

# MidoNet configuration files
ADD conf/root_bashrc /root/.bashrc
ADD bin/create_veth_pair /usr/local/bin/create_veth_pair
ADD conf/midonet.list /etc/apt/sources.list.d/midonet.list
ADD bin/run_kubernetes.sh /run_kubernetes.sh
ADD conf/debian.list /etc/apt/sources.list.d/debian.list

RUN rm /etc/apt/sources.list

# MidoNet Keys
RUN curl -k http://repo.midonet.org/packages.midokura.key | apt-key add -
RUN curl -k http://builds.midonet.org/midorepo.key | apt-key add -

# Install utilities
RUn apt-get -qy update
RUN apt-get -qy install git mz hping3 tcpdump nmap iptables telnet traceroute --no-install-recommends

# Install Java 8
RUN apt-get install -qy software-properties-common
# RUN add-apt-repository -y ppa:openjdk-r/ppa
RUN apt-get -qy update
RUN apt-get install -qy openjdk-8-jdk --no-install-recommends

# Get pipework to allow arbitrary configurations on the container from the host
# Might get included into docker-networking in the future
RUN git clone http://github.com/jpetazzo/pipework /pipework
RUN mv /pipework/pipework /usr/bin/pipework

# We need to have the CNI driver installed in the kubelet container
RUN apt-get -qy update && apt-get -qy install curl git python3-setuptools python3-pip
RUN git clone http://github.com/midonet/kuryr /opt/kuryr -b k8s
RUN cd /opt/kuryr && pip3 install -r requirements.txt
RUN cd /opt/kuryr && python3 setup.py install
RUN mkdir -p /usr/libexec/kubernetes/kubelet-plugins/net/exec/
COPY conf/kuryr.conf /usr/libexec/kubernetes/kubelet-plugins/net/exec/kuryr.conf
RUN mkdir -p /usr/local/lib/python3.4/dist-packages/usr/libexec/kuryr
RUN cp -r /opt/kuryr/usr/libexec/kuryr/* /usr/local/lib/python3.4/dist-packages/usr/libexec/kuryr/

# We don't need the kube-proxy<commit_msg>Kuryr: install with pip<commit_after>FROM gcr.io/google_containers/hyperkube-amd64:v1.2.0
MAINTAINER MidoNet (http://midonet.org)

# MidoNet configuration files
ADD conf/root_bashrc /root/.bashrc
ADD bin/create_veth_pair /usr/local/bin/create_veth_pair
ADD conf/midonet.list /etc/apt/sources.list.d/midonet.list
ADD bin/run_kubernetes.sh /run_kubernetes.sh
ADD conf/debian.list /etc/apt/sources.list.d/debian.list

RUN rm /etc/apt/sources.list

# MidoNet Keys
RUN curl -k http://repo.midonet.org/packages.midokura.key | apt-key add -
RUN curl -k http://builds.midonet.org/midorepo.key | apt-key add -

# Install utilities
RUn apt-get -qy update
RUN apt-get -qy install git mz hping3 tcpdump nmap iptables telnet traceroute --no-install-recommends

# Install Java 8
RUN apt-get install -qy software-properties-common
# RUN add-apt-repository -y ppa:openjdk-r/ppa
RUN apt-get -qy update
RUN apt-get install -qy openjdk-8-jdk --no-install-recommends

# Get pipework to allow arbitrary configurations on the container from the host
# Might get included into docker-networking in the future
RUN git clone http://github.com/jpetazzo/pipework /pipework
RUN mv /pipework/pipework /usr/bin/pipework

# We need to have the CNI driver installed in the kubelet container
RUN apt-get -qy update && apt-get -qy install curl git python3 gcc python3-dev
RUN git clone http://github.com/midonet/kuryr /opt/kuryr -b k8s
RUN cd /opt/kuryr && curl https://bootstrap.pypa.io/get-pip.py | python3 - && pip3 install .
RUN mkdir -p /usr/libexec/kubernetes/kubelet-plugins/net/exec/
COPY conf/kuryr.conf /usr/libexec/kubernetes/kubelet-plugins/net/exec/kuryr.conf
RUN mkdir -p /usr/local/lib/python3.4/dist-packages/usr/libexec/kuryr
RUN cp -r /opt/kuryr/usr/libexec/kuryr/* /usr/local/lib/python3.4/dist-packages/usr/libexec/kuryr/

# We don't need the kube-proxy
{'fraction_non_alphanumeric': 0.11243889190657251, 'fraction_numerical': 0.009234111895708854, 'mean_word_length': 3.9369973190348526, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '3526152', 'n_tokens_mistral': 1382, 'n_tokens_neox': 1328, 'n_words': 346}