Source environment for my PHP7 CentOS vagrant box. Provisioned using Ansible.
NOTE: This is the environment used to build the Vagrant box. If you are looking for a PHP7 environment, just use the box: server4001/php7-centos
- CentOS release 6.7 (Final)
- Nginx 1.10.2
- MySQL 5.7.13
- PHP 7.0.13
- Beanstalkd 1.10
- Memcached 1.4.4
- Redis 2.4.10
- Composer 1.2.4
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 php7-centos-0.3.0.box
. Replace0.3.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 php7-centos-030 php7-centos-0.3.0.box
. Again, replace030
and0.3.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 php7-centos-030
, 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. - Commit your changes to git. Use the
master
branch. - Add a new tag in git:
git tag v0.3.0 && git push origin v0.3.0
.
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