<commit_before>FROM ubuntu
MAINTAINER <EMAIL>

ENV container docker
RUN apt-get -y update

RUN apt-get update -qq && apt-get install -qqy \
    apt-transport-https \
    ca-certificates \
    curl \
    lxc \
    vim \
    iptables

RUN curl -sSL https://get.docker.com/ | sh

RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
rm -f /lib/systemd/system/multi-user.target.wants/*;\
rm -f /etc/systemd/system/*.wants/*;\
rm -f /lib/systemd/system/local-fs.target.wants/*; \
rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
rm -f /lib/systemd/system/basic.target.wants/*;\
rm -f /lib/systemd/system/anaconda.target.wants/*;

COPY scripts/kubeadm.sh /usr/local/bin/kubeadm.sh
RUN chmod +x /usr/local/bin/kubeadm.sh

VOLUME /sys/fs/cgroup
VOLUME /var/run/docker.sock

CMD /sbin/init<commit_msg>Fix Systemd setup for running in container<commit_after>FROM ubuntu
MAINTAINER <EMAIL>

ENV container docker

RUN set -x \
    && apt-get update -qq \
    && apt-get install -qqy \
        apt-transport-https \
        ca-certificates \
        curl \
        lxc \
        vim \
        iptables

RUN curl -sSL https://get.docker.com/ | sh

RUN set -x \
    && find /lib/systemd/system/sysinit.target.wants/ ! -name 'systemd-tmpfiles-setup.service' -type l -exec rm -fv {} + \
    && ls -lah /lib/systemd/system/sysinit.target.wants/ \
    && rm -fv /lib/systemd/system/multi-user.target.wants/* \
    && rm -fv /etc/systemd/system/*.wants/* \
    && rm -fv /lib/systemd/system/local-fs.target.wants/* \
    && rm -fv /lib/systemd/system/sockets.target.wants/*udev* \
    && rm -fv /lib/systemd/system/sockets.target.wants/*initctl* \
    && rm -fv /lib/systemd/system/basic.target.wants/*

COPY scripts/kubeadm.sh /usr/local/bin/kubeadm.sh
RUN chmod +x /usr/local/bin/kubeadm.sh

VOLUME /sys/fs/cgroup
VOLUME /var/run/docker.sock

CMD /sbin/init
{'fraction_non_alphanumeric': 0.16389309127584467, 'fraction_numerical': 0.0, 'mean_word_length': 2.4991181657848323, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4972097', 'n_tokens_mistral': 802, 'n_tokens_neox': 775, 'n_words': 154}