<commit_before>#######
# Debian Wheezy build of Koha - Provisioned by Salt
#######

FROM debian:wheezy
 
RUN apt-get update

#Utilities
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y vim.tiny wget less curl git nmap netcat tree htop unzip sudo

RUN wget -O- --quiet https://bootstrap.saltstack.com | \
    sudo sh -s -- -g https://github.com/saltstack/salt.git git v2014.7.0rc2 || true

#Docker client only
RUN wget -O /usr/local/bin/docker https://get.docker.io/builds/Linux/x86_64/docker-latest && \
    chmod +x /usr/local/bin/docker


# Preseed local master-minion
RUN cd /tmp && \
    salt-key --gen-keys=master-minion && \
    mkdir -p /etc/salt/pki/master/minions && \
    cp master-minion.pub /etc/salt/pki/master/minions/master-minion && \
    mkdir -p /etc/salt/pki/minion && \
    cp master-minion.pub /etc/salt/pki/minion/minion.pub && \
    cp master-minion.pem /etc/salt/pki/minion/minion.pem

# for now - only masterless salt is used
RUN echo "file_client: local\nmaster: localhost" > /etc/salt/minion

#######
# Salt Configuration
#######
<commit_msg>Disable master-minion setup, not used for now<commit_after>#######
# Debian Wheezy build of Koha - Provisioned by Salt
#######

FROM debian:wheezy
 
RUN apt-get update

#Utilities
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y vim.tiny wget less curl git nmap netcat tree htop unzip sudo

RUN wget -O- --quiet https://bootstrap.saltstack.com | \
    sudo sh -s -- -g https://github.com/saltstack/salt.git git v2014.7.0rc2 || true

#Docker client only
RUN wget -O /usr/local/bin/docker https://get.docker.io/builds/Linux/x86_64/docker-latest && \
    chmod +x /usr/local/bin/docker


# Preseed local master-minion
#RUN cd /tmp && \
#    salt-key --gen-keys=master-minion && \
#    mkdir -p /etc/salt/pki/master/minions && \
#    cp master-minion.pub /etc/salt/pki/master/minions/master-minion && \
#    mkdir -p /etc/salt/pki/minion && \
#    cp master-minion.pub /etc/salt/pki/minion/minion.pub && \
#    cp master-minion.pem /etc/salt/pki/minion/minion.pem

# for now - only masterless salt is used
RUN echo "file_client: local\nmaster: localhost" > /etc/salt/minion

#######
# Salt Configuration
#######

{'fraction_non_alphanumeric': 0.1550068587105624, 'fraction_numerical': 0.010059442158207591, 'mean_word_length': 3.112781954887218, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 6, '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': '179037', 'n_tokens_mistral': 862, 'n_tokens_neox': 803, 'n_words': 192}