-
Notifications
You must be signed in to change notification settings - Fork 4
Update vagrant box for RescueMe
Follow this guide when RescueMe requires a new dependency installed on the host system, or if developers need some new development tool pre-installed to make ease the pain of configuring toolchains locally.
##Guide
-
Open an command line and
cd /path/to/rescueme
-
Start up current version of
rescueme/precise64
installed locallyvagrant up
-
Log into virtual host
vagrant ssh
-
Perform any changes to host
For example
sudo apt-get install ...
-
Delete all RescueMe databases
Hosts in development contains databases that must be deleted before deploy.
Use this command
mysqlshow -u root -pvagrant
to verify that only these databases exist
+--------------------+ | Databases | +--------------------+ | information_schema | | mysql | | performance_schema | | phpmyadmin | +--------------------+
Delete any other databases found with
mysqladmin -u root -pvagrant drop <database>
-
Prepare virtual host for packaging
sudo apt-get clean sudo dd if=/dev/zero of=/EMPTY bs=1M && sudo rm -f /EMPTY sudo -s && cat /dev/null > ~/.bash_history && history -c && exit
-
Package new version into box
vagrant package
which outputs file
package.box
in working directory -
Deploy new version to Atlas [using this guide](Deploy vagrant box for RescueMe)