{"id":22706787,"url":"https://github.com/bigbinary/vagrant-machine","last_synced_at":"2025-07-05T21:38:28.739Z","repository":{"id":20700732,"uuid":"23984409","full_name":"bigbinary/vagrant-machine","owner":"bigbinary","description":null,"archived":false,"fork":false,"pushed_at":"2016-04-06T15:58:32.000Z","size":42,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-29T20:44:41.133Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bigbinary.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-13T03:06:31.000Z","updated_at":"2019-08-13T15:50:36.000Z","dependencies_parsed_at":"2022-08-19T22:40:33.993Z","dependency_job_id":null,"html_url":"https://github.com/bigbinary/vagrant-machine","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/bigbinary%2Fvagrant-machine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigbinary%2Fvagrant-machine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigbinary%2Fvagrant-machine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigbinary%2Fvagrant-machine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bigbinary","download_url":"https://codeload.github.com/bigbinary/vagrant-machine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250349690,"owners_count":21415995,"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":[],"created_at":"2024-12-10T10:09:44.504Z","updated_at":"2025-04-23T01:20:15.504Z","avatar_url":"https://github.com/bigbinary.png","language":null,"readme":"## Introduction\n\nvagrant-machine builds an environment in your machine where you can install Ruby on Rails application without making any changes to your machine.\n\n### Host machine vs Guest machine\n\nIn this README \"host machine\" will be used to refer to the native\nmachine on which vagrant is installed. Once you ssh into the vagrant\nmachine then that machine will be referred to as \"guest machine\"\n\n## Using vagrant-machine\n\n* 1. [Installing Dependencies](#installing-dependencies)\n* 2. [Setting up machine using vagrant](#setting-up-the-guest-machine-using-vagrant)\n* 3. [Using vagrant](#using-guest-machine)\n\n### Installing Dependencies\n\nPlease install following tools\n\n* [VirtualBox](https://www.virtualbox.org/wiki/Downloads)\n* [Vagrant](http://www.vagrantup.com/downloads.html)\n* [Ansible](http://docs.ansible.com/intro_installation.html)\n\n\n#### Setting up the guest machine using vagrant\n\nBefore cloning `vagrant-machine` cd into the project directory.\nLet's say that project directory is `wheel`.\n\n```\ncd wheel\ngit clone https://github.com/bigbinary/vagrant-machine.git\ncp -rv vagrant-machine/* .\nrm -rf vagrant-machine\n```\n\n* Open `provisioning/group_vars/all` and change the \"name\" and \"email\" value to\nhave your name and your email address.\n\n* Open `provisioning/ruby/tasks/main.yml` and change the ruby verion. If\nyou need more than one ruby version then add another row.\n\nAfter making the changes mentioned above execute following commnad. Please note that depending on your download speed it could take upto 15 mintues for the guest machine to be built. During the installation process you will see lots of outputs because the script has been set to super verbose mode to show all the data it can.\n\n```\nvagrant up\n```\n\n#### Using guest machine\n\nExecute following commands to get into the guest machine.\n\n```\nvagrant ssh\n```\n\nOnce you are inside the guest machine you will notice that the command prompt looks like this\n\n```\nvagrant ~\n```\n\nNotice that the prompt starts with `vagrant`. It means that you are in the guest machine.\n\nIn the host machine the directory that had `Vagrantfile` is mapped to\n`/vagrant` in the guest machine.\n\n```\ncd /vagrant\ngem install bundler\nbundle install\n```\n\n### Start server\n\nFor starting the server do not use `rails server`. Use\ncommand given below.\n\n```\n./bin/rails server -b 0.0.0.0\n```\n\nNow open browser and visit `http://localhost:3000`.\n\n\n### Installations on the guest machine\n\n* [rvm](http://rvm.io)\n* [PostgreSQL](http://www.postgresql.org)\n* [ImageMagick](http://www.imagemagick.org)\n* [PhantomJS](http://phantomjs.org)\n* [Node.js](http://nodejs.org)\n* [curl](http://curl.haxx.se)\n* [git](http://git-scm.com)\n* [ack](http://beyondgrep.com)\n* [tree](http://linux.die.net/man/1/tree)\n* [git bash completion](https://github.com/git/git/blob/master/contrib/completion/git-completion.bash)\n* [custom command prompt](https://github.com/neerajdotname/dotfiles/blob/master/bash/command_prompt.bash)\n* [memcached](http://memcached.org)\n* [bashmarks](https://github.com/huyng/bashmarks)\n* [Heroku toolbelt](https://toolbelt.heroku.com)\n\n\n### Verify that PostgreSQL is working\n\nTo test if postgresql is properly working execute following commands in the guest machine.\n\nNote that password is blank for user postgres.\n\n```\npsql -h localhost -U postgres --password\nenter password:\nSELECT table_name FROM information_schema.tables WHERE table_schema='public';\n```\n\nYou should see result with zero row. It means postgres is wroking fine. Now to exit out of `psql` type `\\q` and hit enter.\n\n```\npostgres=# \\q\n```\n\n#### Brought to you by\n\n\u003ca href='http://BigBinary.com'\u003e\u003cimg src=\"https://s3.amazonaws.com/bigbinary-media/horizontal/logo_blue.png\" width=\"200px\"/\u003e\u003c/a\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigbinary%2Fvagrant-machine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbigbinary%2Fvagrant-machine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigbinary%2Fvagrant-machine/lists"}