<commit_before>FROM nfnty/arch-mini:latest

MAINTAINER "nfnty <<EMAIL>>"

RUN pacman --sync --noconfirm --refresh --sysupgrade && \
    pacman --sync --noconfirm base-devel git && \
    pacman --sync --noconfirm --clean --clean

ENV UGID="99999"
ENV UGNAME="makepkg"
ENV PRIMPATH="/makepkg"

RUN groupadd --gid "$UGID" "$UGNAME" && \
    useradd --uid "$UGID" --gid "$UGID" --shell /usr/bin/false "$UGNAME"

RUN install --directory --owner=root --group=root --mode=755 "$PRIMPATH/"{config,host/pkgbuild,scripts}
ADD scripts/makepkg.sh $PRIMPATH/scripts/
ADD config/makepkg.conf $PRIMPATH/config/
RUN chmod 755 "$PRIMPATH/scripts/makepkg.sh" && \
    chmod 644 "$PRIMPATH/config/makepkg.conf"

RUN install --directory --owner="$UGID" --group="$UGID" --mode=700 "$PRIMPATH/"{pkgbuild,builddir,pkgdest,srcdest,srcpkgdest,logs}
VOLUME ["$PRIMPATH/pkgdest", "$PRIMPATH/logs"]

ADD config/sudoers /etc/

USER $UGNAME
ENTRYPOINT ["/makepkg/scripts/makepkg.sh"]
<commit_msg>arch-makepkg: do not reinstall up to date packages<commit_after>FROM nfnty/arch-mini:latest

MAINTAINER "nfnty <<EMAIL>>"

RUN pacman --sync --noconfirm --refresh --sysupgrade && \
    pacman --sync --noconfirm --needed base-devel git && \
    pacman --sync --noconfirm --clean --clean

ENV UGID="99999"
ENV UGNAME="makepkg"
ENV PRIMPATH="/makepkg"

RUN groupadd --gid "$UGID" "$UGNAME" && \
    useradd --uid "$UGID" --gid "$UGID" --shell /usr/bin/false "$UGNAME"

RUN install --directory --owner=root --group=root --mode=755 "$PRIMPATH/"{config,host/pkgbuild,scripts}
ADD scripts/makepkg.sh $PRIMPATH/scripts/
ADD config/makepkg.conf $PRIMPATH/config/
RUN chmod 755 "$PRIMPATH/scripts/makepkg.sh" && \
    chmod 644 "$PRIMPATH/config/makepkg.conf"

RUN install --directory --owner="$UGID" --group="$UGID" --mode=700 "$PRIMPATH/"{pkgbuild,builddir,pkgdest,srcdest,srcpkgdest,logs}
VOLUME ["$PRIMPATH/pkgdest", "$PRIMPATH/logs"]

ADD config/sudoers /etc/

USER $UGNAME
ENTRYPOINT ["/makepkg/scripts/makepkg.sh"]

{'fraction_non_alphanumeric': 0.17795753286147623, 'fraction_numerical': 0.017189079878665317, 'mean_word_length': 4.048469387755102, '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': '3731052', 'n_tokens_mistral': 766, 'n_tokens_neox': 720, 'n_words': 162}