<commit_before>#!/bin/sh

DESCRIPTION="A container with Python 2.7 in it"
CONTAINER_NAME="python_2.7"
ROOTFS_LIST="python_2.7.txt"

echo "This creates a container that only contains busybox"
echo ""
echo "It is necessary to build these Open Source projects in this order:"
echo "- Linux-PAM-1.2.1.sh"
echo "- busybox-1.24.2.sh"
echo "- finit-1.10.sh"
echo "- zlib-1.2.8.sh"
echo "- dropbear-2016.73.sh"
echo "- timezone2016e.sh"
echo "- mcip.sh"
echo "- pcre-8.38.sh"
echo "- metalog-3.sh"
echo "- expat-2.2.0.sh"
echo "- gdbm-1.12.sh"
echo "- libffi-3.2.1.sh"
echo "- ncurses-6.0.sh"
echo "- openssl-1.0.2h.sh"
echo "- readline-6.3.sh"
echo "- sqlite-src-3110100.sh"
echo "- python-2.7.11.sh"
echo " "
echo "These packages only have to be compiled once. After that you can package the container yourself with"
echo " > ./scripts/mk_container.sh -n ${CONTAINER_NAME} -l ${ROOTFS_LIST}"
echo " "
echo "Continue? <y/n>"

read text
! [ "${text}" = "y" ] && exit 0

SCRIPTSDIR="$(dirname $0)"
TOPDIR="$(realpath ${SCRIPTSDIR}/..)"
. ${TOPDIR}/scripts/common_settings.sh

# compile the needed packages
${OSS_PACKAGES_SCRIPTS}/Linux-PAM-1.2.1.sh all
${OSS_PACKAGES_SCRIPTS}/busybox-1.24.2.sh all
${OSS_PACKAGES_SCRIPTS}/finit-1.10.sh all
${OSS_PACKAGES_SCRIPTS}/zlib-1.2.8.sh all
${OSS_PACKAGES_SCRIPTS}/dropbear-2016.73.sh all
${OSS_PACKAGES_SCRIPTS}/timezone2016e.sh all
${OSS_PACKAGES_SCRIPTS}/mcip.sh all
${OSS_PACKAGES_SCRIPTS}/pcre-8.38.sh all
${OSS_PACKAGES_SCRIPTS}/metalog-3.sh all
${OSS_PACKAGES_SCRIPTS}/expat-2.2.0.sh all
${OSS_PACKAGES_SCRIPTS}/gdbm-1.12.sh all
${OSS_PACKAGES_SCRIPTS}/libffi-3.2.1.sh all
${OSS_PACKAGES_SCRIPTS}/ncurses-6.0.sh all
${OSS_PACKAGES_SCRIPTS}/openssl-1.0.2h.sh all
${OSS_PACKAGES_SCRIPTS}/readline-6.3.sh all
${OSS_PACKAGES_SCRIPTS}/sqlite-src-3110100.sh all
${OSS_PACKAGES_SCRIPTS}/python-2.7.11.sh all

# package container
echo " "
echo "Packaging the container"
${TOPDIR}/scripts/mk_container.sh -n "${CONTAINER_NAME}" -l "${ROOTFS_LIST}" -d "${DESCRIPTION}" -v "1.0"<commit_msg>fixed python version in create_container_python build script<commit_after>#!/bin/sh

DESCRIPTION="A container with Python 2.7 in it"
CONTAINER_NAME="python_2.7"
ROOTFS_LIST="python_2.7.txt"

echo "This creates a container that only contains busybox"
echo ""
echo "It is necessary to build these Open Source projects in this order:"
echo "- Linux-PAM-1.2.1.sh"
echo "- busybox-1.24.2.sh"
echo "- finit-1.10.sh"
echo "- zlib-1.2.8.sh"
echo "- dropbear-2016.73.sh"
echo "- timezone2016e.sh"
echo "- mcip.sh"
echo "- pcre-8.38.sh"
echo "- metalog-3.sh"
echo "- expat-2.2.0.sh"
echo "- gdbm-1.12.sh"
echo "- libffi-3.2.1.sh"
echo "- ncurses-6.0.sh"
echo "- openssl-1.0.2h.sh"
echo "- readline-6.3.sh"
echo "- sqlite-src-3110100.sh"
echo "- python-2.7.11.sh"
echo " "
echo "These packages only have to be compiled once. After that you can package the container yourself with"
echo " > ./scripts/mk_container.sh -n ${CONTAINER_NAME} -l ${ROOTFS_LIST}"
echo " "
echo "Continue? <y/n>"

read text
! [ "${text}" = "y" ] && exit 0

SCRIPTSDIR="$(dirname $0)"
TOPDIR="$(realpath ${SCRIPTSDIR}/..)"
. ${TOPDIR}/scripts/common_settings.sh

# compile the needed packages
${OSS_PACKAGES_SCRIPTS}/Linux-PAM-1.2.1.sh all
${OSS_PACKAGES_SCRIPTS}/busybox-1.24.2.sh all
${OSS_PACKAGES_SCRIPTS}/finit-1.10.sh all
${OSS_PACKAGES_SCRIPTS}/zlib-1.2.8.sh all
${OSS_PACKAGES_SCRIPTS}/dropbear-2016.73.sh all
${OSS_PACKAGES_SCRIPTS}/timezone2016e.sh all
${OSS_PACKAGES_SCRIPTS}/mcip.sh all
${OSS_PACKAGES_SCRIPTS}/pcre-8.38.sh all
${OSS_PACKAGES_SCRIPTS}/metalog-3.sh all
${OSS_PACKAGES_SCRIPTS}/expat-2.2.0.sh all
${OSS_PACKAGES_SCRIPTS}/gdbm-1.12.sh all
${OSS_PACKAGES_SCRIPTS}/libffi-3.2.1.sh all
${OSS_PACKAGES_SCRIPTS}/ncurses-6.0.sh all
${OSS_PACKAGES_SCRIPTS}/openssl-1.0.2h.sh all
${OSS_PACKAGES_SCRIPTS}/readline-6.3.sh all
${OSS_PACKAGES_SCRIPTS}/sqlite-src-3110100.sh all
${OSS_PACKAGES_SCRIPTS}/python-2.7.12.sh all

# package container
echo " "
echo "Packaging the container"
${TOPDIR}/scripts/mk_container.sh -n "${CONTAINER_NAME}" -l "${ROOTFS_LIST}" -d "${DESCRIPTION}" -v "1.0"
{'fraction_non_alphanumeric': 0.17380660954712362, 'fraction_numerical': 0.05777233782129743, 'mean_word_length': 4.455273698264352, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2255752', 'n_tokens_mistral': 1865, 'n_tokens_neox': 1736, 'n_words': 327}