<commit_before>FROM crops/yocto:ubuntu-16.04-base

ARG userid=1000

USER root

RUN mkdir /var/run/sshd

# Install dependencies in one command to avoid potential use of previous cache
# like explained here: https://stackoverflow.com/a/37727984
RUN apt-get update \
    && apt-get install -y openssh-server inetutils-ping cvs subversion python-pysqlite2 help2man libxml2-utils libsdl1.2-dev graphviz qemu-user g++-multilib curl
    
RUN rm -rf /var/lib/apt/lists/*
    
# en_US.utf8 is required by Yocto sanity check
RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG en_US.utf8

RUN usermod --uid $userid yoctouser
RUN echo 'yoctouser:yoctouser' | chpasswd
RUN echo 'yoctouser ALL=(ALL) NOPASSWD:SETENV: ALL' > /etc/sudoers.d/yoctouser

EXPOSE 22
CMD  ["/usr/sbin/sshd", "-D"]<commit_msg>Add more dependency libs<commit_after>FROM crops/yocto:ubuntu-16.04-base

ARG userid=1000

USER root

RUN mkdir /var/run/sshd

# Install dependencies in one command to avoid potential use of previous cache
# like explained here: https://stackoverflow.com/a/37727984
RUN apt-get update \
    && apt-get install -y openssh-server inetutils-ping iptables cvs subversion coreutils python3-pip libfdt1 python-pysqlite2 help2man libxml2-utils libsdl1.2-dev graphviz qemu-user g++-multilib curl

# For Yocto bitbake -c testimage XML reporting
RUN pip3 install unittest-xml-reporting

RUN rm -rf /var/lib/apt/lists/*
    
# en_US.utf8 is required by Yocto sanity check
RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG en_US.utf8

RUN usermod --uid $userid yoctouser
RUN echo 'yoctouser:yoctouser' | chpasswd
RUN echo 'yoctouser ALL=(ALL) NOPASSWD:SETENV: ALL' > /etc/sudoers.d/yoctouser

EXPOSE 22
CMD  ["/usr/sbin/sshd", "-D"]
{'fraction_non_alphanumeric': 0.10246360582306831, 'fraction_numerical': 0.031914893617021274, 'mean_word_length': 3.977715877437326, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 3}, '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': '3556130', 'n_tokens_mistral': 706, 'n_tokens_neox': 663, 'n_words': 193}