<commit_before>[![Apache 2](http://img.shields.io/badge/license-Apache%202-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0)

# wordpress-aws-scaler

This is a how-to including scripts about how to auto-scale WordPress across multiple EC2 instances on AWS with using RDS and CloudFront.
<commit_msg>added instructions for Docker to README.md<commit_after>[![Apache 2](http://img.shields.io/badge/license-Apache%202-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0)

# WordPress AWS Scaler

This is a how-to including scripts about how to auto-scale WordPress across multiple EC2 instances on AWS with using Docker for deploying the WordPress core, RDS for the managed MySQL database server and CloudFront with S3 for delivering static files.

# Requirements
 
 * Docker (installed on your development machine)
 * AWS account 
 
# How to build and deploy WordPress on AWS

# Build the docker image for WordPress

    $ docker build -t janloeffler/wordpress-aws-scaler:0.1 .

# Check that our docker image works

    $ docker run -p 80:80 -it janloeffler/wordpress-aws-scaler:0.1

Visit [http://localhost/](http://localhost/)! Stop your server with **Ctrl+C**.

# Upload docker image to registry

    $ docker push janloeffler/wordpress-aws-scaler:0.1

# Setup MySQL database with RDS

tbd

# Create ELB and AutoScaling group

tbd
{'fraction_non_alphanumeric': 0.09641255605381166, 'fraction_numerical': 0.01868460388639761, 'mean_word_length': 4.21011673151751, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1931811', 'n_tokens_mistral': 433, 'n_tokens_neox': 391, 'n_words': 141}