NOTE: This is the environment used to build the Vagrant box. If you are looking for a Node.js environment, just use the box: server4001/nodejs-mysql-centos.
vagrant up
- Make any changes you need to the box by changing the Ansible provisioner.
- Update the version numbers in this README.
- Before packaging up the box, ssh in, and run the following commands:
sudo service rabbitmq-server stop
sudo chkconfig rabbitmq-server off
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
- Package up the box with
vagrant package --output nodejs-mysql-centos-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 nodejs-mysql-centos-010 nodejs-mysql-centos-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 nodejs-mysql-centos-010
, and changing theVagrantfile
to fit your needs. Next, runvagrant up
, and ensure everything is working. - Create a new version on Vagrant Cloud.
- 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.
- Create a new git tag:
git tag 0.1.0 && git push origin 0.1.0
.
- Node.js: 10.14.2
- CentOS: 6.7
- Erlang: 21.1
- MongoDB: 4.0.5
- MySQL: 5.7.24
- Nginx: 1.14.1
- NPM: 6.4.1
- RabbitMQ: 3.7.9
- Redis: 3.2.12
- Supervisord: 3.3.1
- Yarn: 1.12.3