02.04
- 2.4 Document Environment Provisioning Steps
- Learning Objectives
- Assumptions
- High-Level Steps
- Detailed Steps
- Examples
- EXERCISE: Document Additional Environment Provisioning Steps
2.4 Document Environment Provisioning Steps
Learning Objectives
By the end of this lesson you will be able to:
- Document the steps for deploying a software package.
Assumptions
- None.
High-Level Steps
- Get Servers and Tools from repository: mysql-server, mysql, ant, tomcat6, and maven.
- Install, configure and run MySQL as a Linux service.
- Assign MySQL root password.
- Get source code from Git version-control repo.
- Configure and run Tomcat as a Linux service.
- Configure and run the MySQL database as a Linux service..
- Modify the Security Groups for 8080.
Detailed Steps
Get Servers and Tools from repository: mysql-server, mysql, ant, tomcat6, and maven.
sudo yum -y install mysql-server mysql ant tomcat6 maven
Run MySQL as a Linux service.
sudo service mysqld start
Assign MySQL root password.
/usr/bin/mysqladmin -u root password 'mysql'
Get source code from Git version-control repo.
git clone git@github.com:stelligent/continuous_integration_example.git
Configure and run Tomcat as a Linux service. Note: This installs to /usr/share/tomcat6/webapps
cd /etc/init.d/ sudo chmod u+x tomcat6 ./tomcat6 status sudo chkconfig --add tomcat6 sudo service tomcat6 start sudo chkconfig tomcat6 on ./tomcat6 status
Configure and run the MySQL database as a Linux service.
cd /etc/init.d/ sudo chmod u+x mysqld sudo ./mysqld status sudo chkconfig --add mysqld sudo service mysqld start sudo chkconfig mysqld on sudo ./mysqld status
Modify the Security Groups for 8080.
Examples
- Download example instructions from https://s3.amazonaws.com/cdcourse/pub/files/provision_ec2_centos.pdf.
EXERCISE: Document Additional Environment Provisioning Steps
- Document additional steps that might occur when provisioning an environment. Document these steps in text file and upload your answers to your cd29artifacts S3 bucket (where 00 is your student id).