<commit_before>## -*- docker-image-name: "armbuild/ocs-distrib-opensuse:13.2" -*-
FROM armbuild/opensuse-disk:13.2
MAINTAINER Scaleway <<EMAIL>> (@scaleway)


# Environment
ENV SCW_BASE_IMAGE armbuild/scw-distrib-opensuse:13.2


# Patch rootfs for docker-based builds
RUN zypper -n -v refresh \
 && zypper -n update \
 && zypper -n install curl \
 && curl -Lq http://j.mp/scw-skeleton | FLAVORS=common,docker-based bash -e \
 && /usr/local/sbin/builder-enter


# Make the image smaller
# kernel, drivers, firmwares
RUN zypper rm -n kernel-default kernel-firmware
# services
RUN zypper rm -n libmozjs-17_0 bluez cracklib-dict-full


# Install packages
RUN zypper -n install \
    bc \
    shunit2 \
    socat \
    sudo \
    tmux \
    vim \
    wget


# Locale
RUN cd /usr/lib/locale/; ls | grep -v en_US | xargs rm -rf


# Patch rootfs
RUN curl -Lkq http://j.mp/scw-skeleton | FLAVORS=common,docker-based bash -e
ADD ./patches/etc/ /etc/
#ADD ./patches/usr/ /usr/


RUN systemctl enable oc-ssh-keys


# Remove root password
RUN passwd -d root


# Disable YaST2 on first boot
RUN systemctl disable YaST2-Firstboot.service


RUN systemctl disable systemd-modules-load.service

# Clean rootfs from image-builder
RUN /usr/local/sbin/builder-leave<commit_msg>Now setting the multi-user target as default. Kudos to @pgonin. #2<commit_after>## -*- docker-image-name: "armbuild/ocs-distrib-opensuse:13.2" -*-
FROM armbuild/opensuse-disk:13.2
MAINTAINER Scaleway <<EMAIL>> (@scaleway)


# Environment
ENV SCW_BASE_IMAGE armbuild/scw-distrib-opensuse:13.2


# Patch rootfs for docker-based builds
RUN zypper -n -v refresh \
 && zypper -n update \
 && zypper -n install curl \
 && curl -Lq http://j.mp/scw-skeleton | FLAVORS=common,docker-based bash -e \
 && /usr/local/sbin/builder-enter


# Make the image smaller
# kernel, drivers, firmwares
RUN zypper rm -n kernel-default kernel-firmware
# services
RUN zypper rm -n libmozjs-17_0 bluez cracklib-dict-full


# Install packages
RUN zypper -n install \
    bc \
    shunit2 \
    socat \
    sudo \
    tmux \
    vim \
    wget


# Locale
RUN cd /usr/lib/locale/; ls | grep -v en_US | xargs rm -rf


# Patch rootfs
RUN curl -Lkq http://j.mp/scw-skeleton | FLAVORS=common,docker-based bash -e
ADD ./patches/etc/ /etc/
#ADD ./patches/usr/ /usr/


RUN systemctl enable oc-ssh-keys


# Remove root password
RUN passwd -d root


# Disable YaST2 on first boot
RUN systemctl disable YaST2-Firstboot.service


RUN systemctl disable systemd-modules-load.service
RUN systemctl set-default multi-user

# Clean rootfs from image-builder
RUN /usr/local/sbin/builder-leave
{'fraction_non_alphanumeric': 0.11568024596464259, 'fraction_numerical': 0.01191391237509608, 'mean_word_length': 3.1317460317460317, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '6973854', 'n_tokens_mistral': 1003, 'n_tokens_neox': 941, 'n_words': 267}