{"id":18709170,"url":"https://github.com/jojoee/vagrant-examples","last_synced_at":"2025-11-09T11:30:24.782Z","repository":{"id":91701002,"uuid":"85475472","full_name":"jojoee/vagrant-examples","owner":"jojoee","description":"Vagrant examples","archived":false,"fork":false,"pushed_at":"2017-03-19T14:09:18.000Z","size":3,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-28T07:42:17.410Z","etag":null,"topics":["example","vagrant","vagrantfile"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jojoee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-19T12:48:45.000Z","updated_at":"2023-08-03T06:40:03.000Z","dependencies_parsed_at":"2024-04-22T19:50:38.955Z","dependency_job_id":null,"html_url":"https://github.com/jojoee/vagrant-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojoee%2Fvagrant-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojoee%2Fvagrant-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojoee%2Fvagrant-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojoee%2Fvagrant-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jojoee","download_url":"https://codeload.github.com/jojoee/vagrant-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239571578,"owners_count":19661165,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["example","vagrant","vagrantfile"],"created_at":"2024-11-07T12:26:36.250Z","updated_at":"2025-11-09T11:30:24.747Z","avatar_url":"https://github.com/jojoee.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vagrant-examples\n\n- Vagrant: Manages VM software\n- Vagrantfile: virtual machine configuration\n\n## Getting started\n\n1. Install VirtualBox\n2. Install [Vagrant](https://www.vagrantup.com/), after install Vagrant, it'll update our hosts file\n3. Go to directory: `cd baked-lamp`\n4. Start: `vagrant up`\n\n## CLI\n\n```\nBasic\n$ vagrant help\n$ vagrant -v\n$ vagrant box list\n$ vagrant box update\n$ vagrant init [box-name]\n$ vagrant init ubuntu/trusty64\n$ vagrant up\n\nTo access\n$ vagrant ssh\n\nPlugin\n$ vagrant plugin list\n# vagrant plugin update\n$ vagrant plugin install \u003cplugin-name\u003e\n$ vagrant plugin install vagrant-vbguest\n\nWhile running\n$ vagrant provision\n$ vagrant suspend...........pause\n$ vagrant halt..............power off VM\n$ vagrant destroy...........stop and remove VM\n$ vagrant status\n$ vagrant reload\n\nBox\n$ vagrant box add \u003cbox-name\u003e [box-path]\n$ vagrant box add ubuntu/trusty64\n$ vagrant box add laravel/homestead\n$ vagrant box add debian/jessie64\n$ vagrant box add centos/7\n$ vagrant box add miya0001/vccw\n$ vagrant remove \u003cbox-name\u003e\n```\n\n## Provisioning\n\nBaked: make it from scratch\n\n```\n$ vagrant up\n$ vagrant ssh\n\nInside VM\n$ sudo yum update -y\n$ sudo yum install -y nano git unzip screen\n$ sudo yum install -y httpd httpd-devel httpd-tools\n$ sudo yum install -y php php-cli php-common php-devel php-mysql\n$ sudo chkconfig --add httpd\n$ sudo chkconfig httpd on\n$ cd /var/www\n$ sudo rm -rf html\n$ sudo ln -s /vagrant /var/www/html\n$ sudo service httpd restart\n$ sudo yum install -y mysql mysql-server mysql-devel\n$ sudo chkconfig --add mysqld\n$ sudo chkconfig mysqld on\n$ sudo service mysqld start\n$ mysql -u root -e \"CREATE DATABASE IF NOT EXISTS jojoee_test\";\n$ mysql -u root -e \"SHOW DATABASES\";\n$ exit\n\nExport to box\n$ vagrant status\n$ vagrant package --output baked-lamp.box\n$ vagrant box add \"jojoee/baked-lamp\" baked-lamp.box\n\nTest\n$ cd baked-lamp-test\n$ vagrant up\n\nhttp://localhost:8080/\nhttp://localhost:8080/index.php\nhttp://localhost:8081/\nhttp://localhost:8081/index.php\n```\n\n## Update\n\n- [x] Work with database (e.g. MySQL)\n- [ ] Plugin\n\n## Reference\n\n- [Vagrant](https://www.vagrantup.com/)\n- [Vagrant documentation](https://www.vagrantup.com/docs/)\n- [Vagrantfile](https://www.vagrantup.com/docs/vagrantfile/)\n- Vagrant Box: [Discover Vagrant Boxes](https://atlas.hashicorp.com/boxes/search), [Vagrantbox.es](http://www.vagrantbox.es/)\n- [Available Vagrant Plugins](https://github.com/mitchellh/vagrant/wiki/Available-Vagrant-Plugins)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjojoee%2Fvagrant-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjojoee%2Fvagrant-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjojoee%2Fvagrant-examples/lists"}