Skip to content

Server4001/nodejs-mysql-basebox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nodejs-mysql-basebox

Source code for my Server4001/nodejs-mysql Vagrant box

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.

Instructions

  • 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. Replace 0.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, replace 010 and 0.1.0 with the version number.
  • Delete the .vagrant folder with rm -rf .vagrant.
  • Test out the box by going to a different folder, running vagrant init nodejs-mysql-centos-010, and changing the Vagrantfile to fit your needs. Next, run vagrant 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 the vagrant package command above.
  • Commit your changes to git.
  • Create a new git tag: git tag 0.1.0 && git push origin 0.1.0.

Version numbers as of box version 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

About

Source code for my Server4001/nodejs-mysql Vagrant box

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages