Source environment for my CentOS6 php7 Elasticsearch Apache Mysql Vagrant Box. Provisioned using Ansible.
Basebox:centos/6 >= 1703.01
- CentOS release 6.9 (Final)
- Apache 2.x
- PHP 7.1.x
- MySQL 5.6.33
- Java JRE 8u131
- Kibana 4.6.x
- Kibana sense plugin
- Composer "latest"
- Elasticsearch 2.x
- Elasticsearch Kopf plugin
- Elasticsearch Mapper-attachement plugin
vagrant up
- Make any changes you need to the box. Be sure to reflect these changes in the provisioning scripts.
- Before packaging up the box, ssh in, and run the commands that are in the comments at the end of this readme.
- Package up the box with
vagrant package --output centos6-php7-elasticsearch-apache-mysql-0.1.0.box
. Replace0.1.0
with the version number. - Destroy the vm with
vagrant destroy --force
. - Add the new box to vagrant's local list with:
vagrant box add centos6-php7-elasticsearch-apache-mysql-010 centos6-php7-elasticsearch-apache-mysql-0.1.0.box
. Again, replace010
and0.1.0
with the version number. - Delete the
.vagrant
folder withrm -rf .vagrant
. - Test out the box by going to a different folder, running
vagrant init centos6-php7-elasticsearch-apache-mysql-010
, and changing theVagrantfile
to fit your needs. Next, runvagrant up
, and ensure everything is working. - Create a new version on Atlas.
- Add a new provider to the version. The type should be
virtualbox
. Upload the.box
file output by thevagrant package
command above.
sudo rm /etc/udev/rules.d/70-persistent-net.rules
sudo yum clean all
sudo dd if=/dev/zero of=/bigemptyfile bs=1M
sudo rm -rf /bigemptyfile
sudo su
history -c && exit
cat /dev/null > ~/.bash_history && history -c && exit