A vagrant box for web development on ubuntu bionic64 (virtualbox).
- virtualbox 6.1.10
- anyenv
- hugo
- dbdeployer
- postgresql > postgresql 10.12
- rbenv > ruby 2.5.8, bundler
- nodenv > node 12.18.1, yarn
- phpenv > php 7.3.19, 7.4.7 composer, drush-launcher, wp-cli
- pyenv > python 3.8.2
# use
$ time vagrant up #
# vagrant up 5.70s user 2.41s system 21% cpu 38.385 total
# build box
$ time vagrant halt && time vagrant package --output bionic64-anyenv-v0.1.1.box && md5 bionic64-anyenv-v0.1.1.box
# vagrant halt 2.79s user 0.64s system 25% cpu 13.565 total
# vagrant package --output bionic64-anyenv-v0.1.1.box 43.05s user 2.60s system 23% cpu 3:16.62 total
# MD5 (bionic64-anyenv-v0.1.1.box) = 29f83fe455b971f440081d954e32c5c3
# add box for test
$ time vagrant box add bionic64-anyenv ./bionic64-anyenv-v0.1.1.box
# vagrant box add mozodev/bionic64-anyenv ./bionic64-anyenv-v0.1.1.box 5.92s user 4.02s system 97% cpu 10.243 total
# deploy
$ time aws s3 cp ./bionic64-anyenv-v0.1.1.box s3://mozodev/public/
# aws s3 cp ./bionic64-anyenv-v0.1.1.box s3://mozodev/public/ 27.75s user 28.81s system 50% cpu 1:51.98 total
[mysql] dbdeployer
DBdeployer is a tool that deploys MySQL database servers easily (sandboxed). documentation: https://www.dbdeployer.com/
# install specific mysql version
vagrant@bionic64-anyenv:~$ dbdeployer downloads get-unpack mysql-5.7.26.tar.xz --delete-after-unpack
vagrant@bionic64-anyenv:~$ dbdeployer deploy single 5.7.26
# status, start, stop, restart, use
vagrant@bionic64-anyenv:~$ ~/sandboxes/msb_5_7_26/status
vagrant@bionic64-anyenv:~$ ~/sandboxes/msb_5_7_26/start
vagrant@bionic64-anyenv:~$ ~/sandboxes/msb_5_7_26/stop
vagrant@bionic64-anyenv:~$ ~/sandboxes/msb_5_7_26/restart
vagrant@bionic64-anyenv:~$ ~/sandboxes/msb_5_7_26/use
[client]
user = root
password = msandbox
port = 5726
socket = /tmp/mysql_sandbox5726.sock
$ cd /vagrant/web
$ php ./core/scripts/drupal quick-start standard
$ chmod +w web/sites/default
$ drush si standard --site-name=drupal 8 --locale=ko --db-url=pgsql://postgres:postgres@127.0.0.1/d8
$ chmod +w web/sites/default
$ drush si standard --site-name=drupal 9 --locale=ko --db-url=pgsql://postgres:postgres@127.0.0.1/d9
#1 [OS]
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
#2 [disk]
/dev/sda1 9.7G 2.9G 6.8G 30% /
#3 [dbdeployer]
Basedir: /home/vagrant/opt/mysql
8.0.19
#4 [postgresql]
psql (PostgreSQL) 10.12 (Ubuntu 10.12-0ubuntu0.18.04.1)
#5 [anyenv]
nodenv: 12.18.1 (set by /home/vagrant/.anyenv/envs/nodenv/version)
phpenv: 7.3.19 (set by /home/vagrant/.anyenv/envs/phpenv/version)
pyenv: 3.8.2 (set by /home/vagrant/.anyenv/envs/pyenv/version)
rbenv: 2.5.8 (set by /home/vagrant/.anyenv/envs/rbenv/version)