<commit_before>docker-joomla
=============

Builds out a Joomla container running the latest from their master branch inside Apache/PHP.

## Run Script ##

The following should should put up a functional Joomla install ready to be configured.

*Note:* If you want your Joomla install to survive a docker rm, add `-v /path/on/host/configuration.php:/app/configuration.php \` on a new line below `-p $HOST_PORT:80 \` to the Joomla docker run command and `-v /path/on/host/mysql:/var/lib/mysql \` on a new line below `-e MYSQL_DATABASE="$DB" \` in the MySQL docker run command.

    #!/bin/bash
    HOST_PORT=80
    CT_DB='joomla-mysql'
    CT_WWW='joomla'
    DB_ROOT_PASS='<PASSWORD>'
    DB_USER='joomla'
    DB_PASS='<PASSWORD>'
    DB='joomla'

    if ! [[ -z `docker ps -a | grep $CT_DB` ]]; then
      if [[ -z `docker ps | grep $CT_DB` ]]; then docker start $CT_DB; fi
    else
      docker run  -d --name "$CT_DB" \
                  -e MYSQL_ROOT_PASSWORD="$<PASSWORD>" \
                  -e MYSQL_USER="$DB_USER" \
                  -e MYSQL_PASSWORD="$<PASSWORD>" \
                  -e MYSQL_DATABASE="$DB" \
                  centurylink/mysql
    fi

    if ! [[ -z `docker ps -a | grep $CT_WWW` ]]; then
      if [[ -z `docker ps | grep $CT_WWW` ]]; then docker start $CT_WWW; fi
    else
      docker pull inhumantsar/docker-joomla
      docker run  -d --name="$CT_WWW" \
                  --link $CT_DB:mysql \
                  -p $HOST_PORT:80 \
                  inhumantsar/docker-joomla<commit_msg>Missed a fi in the readme<commit_after>docker-joomla
=============

Builds out a Joomla container running the latest from their master branch inside Apache/PHP.

## Run Script ##

The following should should put up a functional Joomla install ready to be configured.

*Note:* If you want your Joomla install to survive a docker rm, add `-v /path/on/host/configuration.php:/app/configuration.php \` on a new line below `-p $HOST_PORT:80 \` to the Joomla docker run command and `-v /path/on/host/mysql:/var/lib/mysql \` on a new line below `-e MYSQL_DATABASE="$DB" \` in the MySQL docker run command.

    #!/bin/bash
    HOST_PORT=80
    CT_DB='joomla-mysql'
    CT_WWW='joomla'
    DB_ROOT_PASS='<PASSWORD>'
    DB_USER='joomla'
    DB_PASS='<PASSWORD>'
    DB='joomla'

    if ! [[ -z `docker ps -a | grep $CT_DB` ]]; then
      if [[ -z `docker ps | grep $CT_DB` ]]; then docker start $CT_DB; fi
    else
      docker run  -d --name "$CT_DB" \
                  -e MYSQL_ROOT_PASSWORD="$<PASSWORD>" \
                  -e MYSQL_USER="$DB_USER" \
                  -e MYSQL_PASSWORD="$<PASSWORD>" \
                  -e MYSQL_DATABASE="$DB" \
                  centurylink/mysql
    fi

    if ! [[ -z `docker ps -a | grep $CT_WWW` ]]; then
      if [[ -z `docker ps | grep $CT_WWW` ]]; then docker start $CT_WWW; fi
    else
      docker pull inhumantsar/docker-joomla
      docker run  -d --name="$CT_WWW" \
                  --link $CT_DB:mysql \
                  -p $HOST_PORT:80 \
                  inhumantsar/docker-joomla
		fi
{'fraction_non_alphanumeric': 0.1315875613747954, 'fraction_numerical': 0.003927986906710311, 'mean_word_length': 2.1800208116545265, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '4770268', 'n_tokens_mistral': 1098, 'n_tokens_neox': 1034, 'n_words': 305}