<commit_before>#
# Dockerfile for gogs-arm
#

FROM easypi/alpine-arm
MAINTAINER EasyPi Software Foundation

ENV GOGS_VERSION 0.11.29
ENV GOGS_CUSTOM /data/gogs

RUN apk add --no-cache bash \
                       ca-certificates \
                       curl \
                       git \
                       linux-pam \
                       openssh \
                       s6 \
                       socat \
                       tar

RUN set -xe \
    && adduser -H -D -g 'Gogs Git User' -h /data/git -s /bin/bash git \
    && passwd -u git \
    && echo "export GOGS_CUSTOM=${GOGS_CUSTOM}" >> /etc/profile

RUN set -xe \
    && curl -L https://github.com/tianon/gosu/releases/download/1.10/gosu-armhf > /usr/sbin/gosu \
    && chmod +x /usr/sbin/gosu

RUN set -xe \
    && mkdir /app/ \
    && cd /app/ \
    && curl -LO https://github.com/gogits/gogs/releases/download/v${GOGS_VERSION}/raspi2_armv6.zip \
    && unzip raspi2_armv6.zip \
    && rm raspi2_armv6.zip \
    && ln -s /lib/libc.musl-armhf.so.1 /lib/ld-linux-armhf.so.3

RUN set -xe \
    && cd /app/gogs/ \
    && curl -L https://github.com/gogits/gogs/archive/v${GOGS_VERSION}.tar.gz | tar xz --strip 1 gogs-${GOGS_VERSION}/docker \
    && mv docker/nsswitch.conf /etc/

WORKDIR /app/gogs/
VOLUME /data/

EXPOSE 22 3000

CMD ["docker/start.sh", "/bin/s6-svscan", "/app/gogs/docker/s6/"]
<commit_msg>upgrade gogs to 0.11.33<commit_after>#
# Dockerfile for gogs-arm
#

FROM easypi/alpine-arm
MAINTAINER EasyPi Software Foundation

ENV GOGS_VERSION 0.11.33
ENV GOGS_CUSTOM /data/gogs

RUN apk add --no-cache bash \
                       ca-certificates \
                       curl \
                       git \
                       linux-pam \
                       openssh \
                       s6 \
                       socat \
                       tar

RUN set -xe \
    && adduser -H -D -g 'Gogs Git User' -h /data/git -s /bin/bash git \
    && passwd -u git \
    && echo "export GOGS_CUSTOM=${GOGS_CUSTOM}" >> /etc/profile

RUN set -xe \
    && curl -L https://github.com/tianon/gosu/releases/download/1.10/gosu-armhf > /usr/sbin/gosu \
    && chmod +x /usr/sbin/gosu

RUN set -xe \
    && mkdir /app/ \
    && cd /app/ \
    && curl -LO https://github.com/gogits/gogs/releases/download/v${GOGS_VERSION}/raspi2_armv6.zip \
    && unzip raspi2_armv6.zip \
    && rm raspi2_armv6.zip \
    && ln -s /lib/libc.musl-armhf.so.1 /lib/ld-linux-armhf.so.3

RUN set -xe \
    && cd /app/gogs/ \
    && curl -L https://github.com/gogits/gogs/archive/v${GOGS_VERSION}.tar.gz | tar xz --strip 1 gogs-${GOGS_VERSION}/docker \
    && mv docker/nsswitch.conf /etc/

WORKDIR /app/gogs/
VOLUME /data/

EXPOSE 22 3000

CMD ["docker/start.sh", "/bin/s6-svscan", "/app/gogs/docker/s6/"]

{'fraction_non_alphanumeric': 0.14782608695652175, 'fraction_numerical': 0.020652173913043477, 'mean_word_length': 1.5852059925093633, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7107071', 'n_tokens_mistral': 1115, 'n_tokens_neox': 1038, 'n_words': 215}