Skip to content

Instantly share code, notes, and snippets.

@duro
Last active December 2, 2015 13:41
Show Gist options
  • Save duro/f3af300cb8c301654e1e to your computer and use it in GitHub Desktop.
Save duro/f3af300cb8c301654e1e to your computer and use it in GitHub Desktop.

Getting Started

  1. Download and install Docker Toolbox

  2. Setup new docker machine

    docker-machine start default
    eval "$(docker-machine env default)"
    
  3. Install Docker Rsync

    brew tap synack/docker
    brew install docker-rsync
    
  4. Import node and postgres images

    docker import <path_to>/node.4.2.2.tar node:4.2.2
    docker import <path_to>/postgres.9.4.4.tar postgres:9.4.4
    
  5. Edit Host file

    echo "$(docker-machine ip default) docker.local" > /tmp/whatever; sudo sh -c "cat /tmp/whatever >> /etc/hosts"
    
  6. Start API Server

    cd <path_to>/javascript-all-the-things/api
    make sync
    <new_tab>
    make up
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment