Skip to content

Instantly share code, notes, and snippets.

@joshuabalduff
Last active February 7, 2019 13:50
Show Gist options
  • Save joshuabalduff/ff3051847f63dcdfe4a30691f8f038ba to your computer and use it in GitHub Desktop.
Save joshuabalduff/ff3051847f63dcdfe4a30691f8f038ba to your computer and use it in GitHub Desktop.

Revisions

  1. @joshmello joshmello revised this gist Feb 7, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion BrewVagrant.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    ***Install HomeBrew
    Install HomeBrew

    ```
    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  2. @joshmello joshmello revised this gist Feb 7, 2019. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions BrewVagrant.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,9 @@
    ***Install HomeBrew

    ```
    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    ```

    Vagrant
    Create and configure lightweight, reproducible, and portable development environments. Vagrant is an amazing tool for managing virtual machines via a simple to use command line interface.

  3. @joshmello joshmello revised this gist Feb 7, 2019. 1 changed file with 16 additions and 8 deletions.
    24 changes: 16 additions & 8 deletions BrewVagrant.md
    Original file line number Diff line number Diff line change
    @@ -6,30 +6,38 @@ In order to simplify the installation process you should install homebrew-cask w

    Install
    Vagrant uses Virtualbox to manage the virtual dependencies. You can directly download virtualbox and install or use homebrew for it.

    ```
    $ brew cask install virtualbox
    ```
    Now install Vagrant either from the website or use homebrew for installing it.

    ```
    $ brew cask install vagrant
    ```
    Vagrant-Manager helps you manage all your virtual machines in one place directly from the menubar.

    ```
    $ brew cask install vagrant-manager
    ```
    Usage
    Add the Vagrant box you want to use. We'll use Ubuntu 12.04 for the following example.

    ```
    $ vagrant box add precise64 http://files.vagrantup.com/precise64.box
    ```
    You can find more boxes at Vagrant Cloud

    Now create a test directory and cd into the test directory. Then we'll initialize the vagrant machine.

    ```
    $ vagrant init precise64
    ```
    Now lets start the machine using the following command.

    ```
    $ vagrant up
    ```
    You can ssh into the machine now.

    ```
    $ vagrant ssh
    ```
    Halt the vagrant machine now.

    ```
    $ vagrant halt
    ```
    Other useful commands are suspend, destroy etc.
  4. @joshmello joshmello created this gist Feb 7, 2019.
    35 changes: 35 additions & 0 deletions BrewVagrant.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,35 @@
    Vagrant
    Create and configure lightweight, reproducible, and portable development environments. Vagrant is an amazing tool for managing virtual machines via a simple to use command line interface.

    Before you start
    In order to simplify the installation process you should install homebrew-cask which provides a friendly homebrew-style CLI workflow for the administration of Mac applications distributed as binaries. Refer to this article in order to install homebrew-cask.

    Install
    Vagrant uses Virtualbox to manage the virtual dependencies. You can directly download virtualbox and install or use homebrew for it.

    $ brew cask install virtualbox
    Now install Vagrant either from the website or use homebrew for installing it.

    $ brew cask install vagrant
    Vagrant-Manager helps you manage all your virtual machines in one place directly from the menubar.

    $ brew cask install vagrant-manager
    Usage
    Add the Vagrant box you want to use. We'll use Ubuntu 12.04 for the following example.

    $ vagrant box add precise64 http://files.vagrantup.com/precise64.box
    You can find more boxes at Vagrant Cloud

    Now create a test directory and cd into the test directory. Then we'll initialize the vagrant machine.

    $ vagrant init precise64
    Now lets start the machine using the following command.

    $ vagrant up
    You can ssh into the machine now.

    $ vagrant ssh
    Halt the vagrant machine now.

    $ vagrant halt
    Other useful commands are suspend, destroy etc.