<commit_before>## Laradock for FamousGrey Interactive

   Laradock is a configuration package for docker for Laravel but also for any other web project:
   - [Laradock Documentation](http://laradock.io/)

## Install Docker & Laradock

   - Download [Docker](https://www.docker.com/docker-mac)
   - Go to your web development directory and clone the Laradock repository:

         git clone https://github.com/famousinteractive/laradock.git

   - Remove the .git directory in the laradock directory:

         cd laradock && rm -rf .git

   - The architecture of your web development directory should be:
        + Project 1
        + Project 2
        + laradock

   - Once Laradock is installed, go the the Laradock directory and copy/rename env-example:

         cp env-example .env

   - Update this .env file 
   
        - with the right PHP version you want. 
        - you may need to update the default ports if you have conflicts with your current installation:

                MYSQL_PORT=3306 
                NGINX_HOST_HTTP_PORT=80
                NGINX_HOST_HTTPS_PORT=443
   
        - Check the variable `WORSPACE_INSTALL_XX` and `PHP_FPM_INSTALL_XX`. Setting the following to true is suggested : `NODE, YARN, IMAGEMAGICK`

   - Add the alias if you have a .aliases file in your home directory. Execute :

         echo "alias docker-exec=\"docker-compose exec --user=laradock workspace bash $*\"" >> ~/.aliases
         echo "alias laradock-down=\"docker-compose down\"" >> ~/.aliases
         echo "alias laradock-up=\"docker-compose up -d nginx php-fpm workspace mariadb\"" >> ~/.aliases
         echo "alias laradock-restart=\"laradock-down && laradock-up\"" >> ~/.aliases
         reload

   - If not, add it to your bash_profile file. Execute : 

         echo "alias docker-exec=\"docker-compose exec --user=laradock workspace bash $*\"" >> ~/.bash_profile
         echo "alias laradock-down=\"docker-compose down\"" >> ~/.bash_profile
         echo "alias laradock-up=\"docker-compose up -d nginx php-fpm workspace mariadb\"" >> ~/.bash_profile
         echo "alias laradock-restart=\"laradock-down && laradock-up\"" >> ~/.bash_profile

        Then refresh with:

         source ~/.bash_profile

   - Install `dockerproject` the helper to generate nginx config file and helper script

         wget https://raw.githubusercontent.com/famousinteractive/famous-interactive-laradock/master/dockerproject.sh
         mv dockerproject.sh /usr/local/bin/dockerproject && chmod +x /usr/local/bin/dockerproject


   - With this script you can run `dockerproject` and it will generate the nginx configuration and some sh scripts to help to manage the project.
                
            - You'll need to provide the path to your Laradock directory (absolute path). Use `pwd` in the laradock directory to get it.
            - The project name needs to be the directory name of your project.
            - The nginx config files are in <laradockDirectory>/nginx/sites. 
            - Run `laradock-restart` to update your change

### Run
   - /!\ Read the known bugs below before running for the first time.
   - Go to the Laradock directory and execute the alias created previously:<commit_msg>update readme about dockerproject<commit_after>## Laradock for FamousGrey Interactive

   Laradock is a configuration package for docker for Laravel but also for any other web project:
   - [Laradock Documentation](http://laradock.io/)

## Install Docker & Laradock

   - Download [Docker](https://www.docker.com/docker-mac)
   - Go to your web development directory and clone the Laradock repository:

         git clone https://github.com/famousinteractive/laradock.git

   - Remove the .git directory in the laradock directory:

         cd laradock && rm -rf .git

   - The architecture of your web development directory should be:
        + Project 1
        + Project 2
        + laradock

   - Once Laradock is installed, go the the Laradock directory and copy/rename env-example:

         cp env-example .env

   - Update this .env file 
   
        - with the right PHP version you want. 
        - you may need to update the default ports if you have conflicts with your current installation:

                MYSQL_PORT=3306 
                NGINX_HOST_HTTP_PORT=80
                NGINX_HOST_HTTPS_PORT=443
   
        - Check the variable `WORSPACE_INSTALL_XX` and `PHP_FPM_INSTALL_XX`. Setting the following to true is suggested : `NODE, YARN, IMAGEMAGICK`

   - Add the alias if you have a .aliases file in your home directory. Execute :

         echo "alias docker-exec=\"docker-compose exec --user=laradock workspace bash $*\"" >> ~/.aliases
         echo "alias laradock-down=\"docker-compose down\"" >> ~/.aliases
         echo "alias laradock-up=\"docker-compose up -d nginx php-fpm workspace mariadb\"" >> ~/.aliases
         echo "alias laradock-restart=\"laradock-down && laradock-up\"" >> ~/.aliases
         reload

   - If not, add it to your bash_profile file. Execute : 

         echo "alias docker-exec=\"docker-compose exec --user=laradock workspace bash $*\"" >> ~/.bash_profile
         echo "alias laradock-down=\"docker-compose down\"" >> ~/.bash_profile
         echo "alias laradock-up=\"docker-compose up -d nginx php-fpm workspace mariadb\"" >> ~/.bash_profile
         echo "alias laradock-restart=\"laradock-down && laradock-up\"" >> ~/.bash_profile

        Then refresh with:

         source ~/.bash_profile

   - Install `dockerproject` the helper to generate nginx config file and helper script

         wget https://raw.githubusercontent.com/famousinteractive/famous-interactive-laradock/master/dockerproject.sh
         mv dockerproject.sh /usr/local/bin/dockerproject && chmod +x /usr/local/bin/dockerproject


   - With this script you can run `dockerproject` and it will generate the nginx configuration and some sh scripts to help to manage the project.
                
            - Run the command inside your Php project
            - Update default prompted variable if required.
            - The script will set up the nginx config file, your local host and it'll restart docker with the default container. 
            - The nginx config files are in <laradockDirectory>/nginx/sites.

### Run
   - /!\ Read the known bugs below before running for the first time.
   - Go to the Laradock directory and execute the alias created previously:
{'fraction_non_alphanumeric': 0.08746492048643592, 'fraction_numerical': 0.0034299968818210166, 'mean_word_length': 2.603932584269663, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 37, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6899640', 'n_tokens_mistral': 1924, 'n_tokens_neox': 1752, 'n_words': 652}