<commit_before>#!/usr/bin/env bash

# Path location to this script and the project base.
PATH_SELF="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
PATH_ROOT=${PATH_SELF}/../

# Load script libraries needed.
source ${PATH_SELF}/_pre_process/utilities_general.sh
source ${PATH_SELF}/_pre_process/utilities_docker.sh

# Ensure proper script arguments were provided.
__init__ "$@"

# Script Variables ---------------------------------------------------------------------------
SCRIPT_NAME="Nexus Local"
DOCKER_COMPOSE_FILE="docker-compose.yml"
# --------------------------------------------------------------------------------------------

start_script_with_docker_health_check

bash build.sh -e ${ENVIRONMENT} -l ${IS_LOCAL} -f ${IS_FRONT_END_ONLY} -d ${IS_DB_DEBUG} -b ${IS_BUILD_NEEDED}
BUILD_PROCESS_RESULT_CODE=$?

if [ ${BUILD_PROCESS_RESULT_CODE} -eq 199 ]; then
    echo "BUILD PROCESS 199"
elif [ ${BUILD_PROCESS_RESULT_CODE} -eq 0 ]; then

    if [ "${IS_BUILD_NEEDED}" = "true" ]; then
        docker_compose_build
    fi

    docker_compose_up
    docker_compose_down
    #echo "BUILD PROCESS 0"
    finish_script_success
else
    #echo "BUILD PROCESS "
    finish_script_fail "UNKNOWN STATUS CODE [ ${BUILD_PROCESS_RESULT_CODE} ]"
fi

#docker_compose_build<commit_msg>other script adjustment<commit_after>#!/usr/bin/env bash

# Path location to this script and the project base.
PATH_SELF="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
PATH_ROOT=${PATH_SELF}/../

# Load script libraries needed.
source ${PATH_SELF}/_pre_process/utilities_general.sh
source ${PATH_SELF}/_pre_process/utilities_docker.sh

# Ensure proper script arguments were provided.
__init__ "$@"

# Script Variables ---------------------------------------------------------------------------
SCRIPT_NAME="Nexus Local"
DOCKER_COMPOSE_FILE="docker-compose.yml"
# --------------------------------------------------------------------------------------------

start_script_with_docker_health_check

cd_base

bash build.sh -e ${ENVIRONMENT} -l ${IS_LOCAL} -f ${IS_FRONT_END_ONLY} -d ${IS_DB_DEBUG} -b ${IS_BUILD_NEEDED}
BUILD_PROCESS_RESULT_CODE=$?

if [ ${BUILD_PROCESS_RESULT_CODE} -eq 199 ]; then
    echo "BUILD PROCESS 199"
elif [ ${BUILD_PROCESS_RESULT_CODE} -eq 0 ]; then

    if [ "${IS_BUILD_NEEDED}" = "true" ]; then
        docker_compose_build
    fi

    docker_compose_up
    docker_compose_down
    #echo "BUILD PROCESS 0"
    finish_script_success
else
    #echo "BUILD PROCESS "
    finish_script_fail "UNKNOWN STATUS CODE [ ${BUILD_PROCESS_RESULT_CODE} ]"
fi

#docker_compose_build
{'fraction_non_alphanumeric': 0.23280829811755666, 'fraction_numerical': 0.006915097963887821, 'mean_word_length': 2.5917241379310343, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1821595', 'n_tokens_mistral': 871, 'n_tokens_neox': 811, 'n_words': 182}