<commit_before>#!/usr/bin/bash

set -o errexit -o noclobber -o noglob -o nounset -o pipefail

SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

CNAME="${1}"

source "${SCRIPTDIR}/var.sh"

docker create \
    --volume="${MAKEPKGCONF}:/etc/makepkg.conf:ro" \
    --volume="${LIBPATH}:/var/lib/builder:rw" \
    --volume="${LOGPATH}:/var/log/builder:rw" \
    --volume="${PKGBUILDPATH}:/mnt/pkgbuild:rw" \
    --volume="${PKGCACHEPATH}:/var/cache/pacman/pkg:rw" \
    --cap-drop 'ALL' \
    --cap-add 'FOWNER' \
    --cap-add 'SETGID' \
    --cap-add 'SETUID' \
    --cap-add 'SYS_CHROOT' \
    --net='bridge' \
    --name="${CNAME}" \
    --hostname="${CNAME}" \
    --memory="${MEMORY}" \
    --memory-swap='-1' \
    --cpu-shares="${CPU_SHARES}" \
    nfnty/arch-builder:latest \
    ${@:2}<commit_msg>builder: Add capability SYS_RESOURCE for sudo 1.8.15<commit_after>#!/usr/bin/bash

set -o errexit -o noclobber -o noglob -o nounset -o pipefail

SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

CNAME="${1}"

source "${SCRIPTDIR}/var.sh"

docker create \
    --volume="${MAKEPKGCONF}:/etc/makepkg.conf:ro" \
    --volume="${LIBPATH}:/var/lib/builder:rw" \
    --volume="${LOGPATH}:/var/log/builder:rw" \
    --volume="${PKGBUILDPATH}:/mnt/pkgbuild:rw" \
    --volume="${PKGCACHEPATH}:/var/cache/pacman/pkg:rw" \
    --cap-drop 'ALL' \
    --cap-add 'FOWNER' \
    --cap-add 'SETGID' \
    --cap-add 'SETUID' \
    --cap-add 'SYS_CHROOT' \
    --cap-add 'SYS_RESOURCE' \
    --net='bridge' \
    --name="${CNAME}" \
    --hostname="${CNAME}" \
    --memory="${MEMORY}" \
    --memory-swap='-1' \
    --cpu-shares="${CPU_SHARES}" \
    nfnty/arch-builder:latest \
    ${@:2}
{'fraction_non_alphanumeric': 0.2488235294117647, 'fraction_numerical': 0.007058823529411765, 'mean_word_length': 2.573529411764706, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '637617', 'n_tokens_mistral': 716, 'n_tokens_neox': 699, 'n_words': 97}