<commit_before>#!/bin/bash -e

IMAGE_DIR_PREFIX=${IMAGE_DIR_PREFIX:-eewiki}

time=$(date +%Y-%m-%d)
mirror_dir="/var/www/html/rcn-ee.us/rootfs/eewiki"
DIR="$PWD"

export apt_proxy=proxy.gfnd.rcn-ee.org:3142/

if [ -d ./deploy ] ; then
	sudo rm -rf ./deploy || true
fi

if [ ! -f jenkins.build ] ; then
./RootStock-NG.sh -c eewiki_minfs_debian_buster_armel
./RootStock-NG.sh -c eewiki_minfs_debian_buster_armhf
./RootStock-NG.sh -c eewiki_minfs_debian_buster_arm64

#./RootStock-NG.sh -c eewiki_minfs_debian_bullseye_armel
#./RootStock-NG.sh -c eewiki_minfs_debian_bullseye_armhf
#./RootStock-NG.sh -c eewiki_minfs_debian_bullseye_arm64

./RootStock-NG.sh -c eewiki_minfs_ubuntu_bionic_armhf
./RootStock-NG.sh -c eewiki_minfs_ubuntu_focal_armhf
else
	mkdir -p ${DIR}/deploy/ || true
fi

debian_buster="debian-10.9"
debian_bullseye="debian-11"
ubuntu_bionic="ubuntu-18.04.5"
ubuntu_focal="ubuntu-20.04.2"

xz_img="xz -z -8"
xz_tar="xz -T2 -z -8"

cat > ${DIR}/deploy/gift_wrap_final_images.sh <<-__EOF__
#!/bin/bash

copy_base_rootfs_to_mirror () {
        if [ -d ${mirror_dir}/ ] ; then
                if [ ! -d ${mirror_dir}/\${blend}/ ] ; then
                        mkdir -p ${mirror_dir}/\${blend}/ || true
                fi
                if [ -d ${mirror_dir}/\${blend}/ ] ; then
                        if [ ! -f ${mirror_dir}/\${blend}/\${base_rootfs}.tar.xz ] ; then
                                cp -v \${base_rootfs}.tar ${mirror_dir}/\${blend}/
                                cd ${mirror_dir}/\${blend}/
                                ${xz_tar} \${base_rootfs}.tar && sha256sum \${base_rootfs}.tar.xz > \${base_rootfs}.tar.xz.sha256sum &
                                cd -
                        fi
                fi<commit_msg>Revert "bullseye still needs work"<commit_after>#!/bin/bash -e

IMAGE_DIR_PREFIX=${IMAGE_DIR_PREFIX:-eewiki}

time=$(date +%Y-%m-%d)
mirror_dir="/var/www/html/rcn-ee.us/rootfs/eewiki"
DIR="$PWD"

export apt_proxy=proxy.gfnd.rcn-ee.org:3142/

if [ -d ./deploy ] ; then
	sudo rm -rf ./deploy || true
fi

if [ ! -f jenkins.build ] ; then
./RootStock-NG.sh -c eewiki_minfs_debian_buster_armel
./RootStock-NG.sh -c eewiki_minfs_debian_buster_armhf
./RootStock-NG.sh -c eewiki_minfs_debian_buster_arm64

./RootStock-NG.sh -c eewiki_minfs_debian_bullseye_armel
./RootStock-NG.sh -c eewiki_minfs_debian_bullseye_armhf
./RootStock-NG.sh -c eewiki_minfs_debian_bullseye_arm64

./RootStock-NG.sh -c eewiki_minfs_ubuntu_bionic_armhf
./RootStock-NG.sh -c eewiki_minfs_ubuntu_focal_armhf
else
	mkdir -p ${DIR}/deploy/ || true
fi

debian_buster="debian-10.9"
debian_bullseye="debian-11"
ubuntu_bionic="ubuntu-18.04.5"
ubuntu_focal="ubuntu-20.04.2"

xz_img="xz -z -8"
xz_tar="xz -T2 -z -8"

cat > ${DIR}/deploy/gift_wrap_final_images.sh <<-__EOF__
#!/bin/bash

copy_base_rootfs_to_mirror () {
        if [ -d ${mirror_dir}/ ] ; then
                if [ ! -d ${mirror_dir}/\${blend}/ ] ; then
                        mkdir -p ${mirror_dir}/\${blend}/ || true
                fi
                if [ -d ${mirror_dir}/\${blend}/ ] ; then
                        if [ ! -f ${mirror_dir}/\${blend}/\${base_rootfs}.tar.xz ] ; then
                                cp -v \${base_rootfs}.tar ${mirror_dir}/\${blend}/
                                cd ${mirror_dir}/\${blend}/
                                ${xz_tar} \${base_rootfs}.tar && sha256sum \${base_rootfs}.tar.xz > \${base_rootfs}.tar.xz.sha256sum &
                                cd -
                        fi
                fi
{'fraction_non_alphanumeric': 0.15871663827370813, 'fraction_numerical': 0.018171493469619535, 'mean_word_length': 2.1940163191296462, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3794564', 'n_tokens_mistral': 1535, 'n_tokens_neox': 1357, 'n_words': 211}