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


container_name=yii2-app-basic-improve;
expose_port=80;
username=`whoami`;
docker stop ${container_name} && docker rm ${container_name};

dockerRun(){
    echo container_name=${container_name};
    echo expose_port=${expose_port};
    echo code_dir=${code_dir};
    echo custom_nginx_conf_dir=${custom_nginx_conf_dir};
    echo
    docker run --name ${container_name} -p ${expose_port}:80  -v ${code_dir}:/app -v ${custom_nginx_conf_dir}:/etc/nginx/conf.d -d taobig/nginx_php7:php71;
}

#Docker
#code_dir=C:\Users\${username}\code\${container_name};

#DockerToolbox  The drive name("c") must be a lowercase; and must run in "Docker Quickstart Terminal"
#code_dir=/c/Users/${username}/code/${container_name};

code_dir=/c/Users/${username}/code/${container_name};
custom_nginx_conf_dir=${code_dir}/_docker;
dockerRun;

if [ $? -eq 0 ];then
    echo "success";
    docker ps;
else

    code_dir=c:/Users/${username}/code/${container_name};
    custom_nginx_conf_dir=${code_dir}/_docker;
    dockerRun;

    if [ $? -eq 0 ];then
        docker ps;
    else
        echo "failed";
        echo
    fi

fi<commit_msg>add some tips after the docker container has been started<commit_after>#!/usr/bin/env bash

container_name=yii2-app-basic-improve;
expose_port=80;
username=`whoami`;
docker stop ${container_name} && docker rm ${container_name};

dockerRun(){
    echo container_name=${container_name};
    echo expose_port=${expose_port};
    echo code_dir=${code_dir};
    echo custom_nginx_conf_dir=${custom_nginx_conf_dir};
    echo
    docker run --name ${container_name} -p ${expose_port}:80  -v ${code_dir}:/app -v ${custom_nginx_conf_dir}:/etc/nginx/conf.d -d taobig/nginx_php7:php71;
}

#Docker
#code_dir=C:\Users\${username}\code\${container_name};

#DockerToolbox  The drive name("c") must be a lowercase; and must run in "Docker Quickstart Terminal"
#code_dir=/c/Users/${username}/code/${container_name};

code_dir=/c/Users/${username}/code/${container_name};
custom_nginx_conf_dir=${code_dir}/_docker;
dockerRun;

if [ $? -eq 0 ];then
    echo "success, =====>>>>> 192.168.99.100:${expose_port}";
    docker ps;
else

    code_dir=c:/Users/${username}/code/${container_name};
    custom_nginx_conf_dir=${code_dir}/_docker;
    dockerRun;

    if [ $? -eq 0 ];then
        echo "success, =====>>>>> 127.0.0.1:${expose_port}";
        docker ps;
    else
        echo "failed";
        echo
    fi

fi
{'fraction_non_alphanumeric': 0.16175266175266176, 'fraction_numerical': 0.015151515151515152, 'mean_word_length': 4.32244008714597, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '1745456', 'n_tokens_mistral': 931, 'n_tokens_neox': 877, 'n_words': 168}