Setup of MediaWiki Application.
Following are the modules for Terraform
- VPC (Includes , VPC + Subnet + Routes + Gateways)
- RDS (MariaDB for App)
- EC2 (Servers + LoadBalancers)
Terraform uses Ansible to setup the MediaWiki installation
CentOS-7 machine has been used to setup it and following commands will work.
- Install Docker and start the service
# setenforce 0
# yum install docker -y
# systemctl enable docker
# systemctl start docker
- Run the following container with the given command.
# docker run -d -p 8080:8080 -p 50000:50000 -e AWS_ACCESS_KEY_ID=<ACCESS_KEY_ID> -e AWS_SECRET_ACCESS_KEY=<ACCESS_SECRET_KEY> -e AWS_DEFAULT_REGION="us-east-1" -e RDS_USERNAME=<DBUSER> -e RDS_PASSWORD=<DBPASSWORD> rkalluru/jenkins-tw:v1
Replace the values with actual values and then run.