From ea2b7793e7743f7e868b2489899af19b82a18a50 Mon Sep 17 00:00:00 2001 From: Rusty Phillips Date: Thu, 21 May 2015 11:14:18 -0400 Subject: [PATCH 1/2] Adding a make file and instructions for it to the packer thing. --- Makefile | 8 ++++++++ README.md | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ed0ac86 --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +default: + # To use packer, run "make packer-image-scripts", "make packer-shell-scripts", or run "make go" to create the go directories for development with go. +packer-image-scripts: + git clone git@github.com:cloudspace-devops/packer-image-scripts.git +packer-shell-scripts: + git clone git@github.com:cloudspace-devops/packer-shell-scripts.git +go: + mkdir go; mkdir go/bin; mkdir go/pkg; mkdir go/src; mkdir go/src/github.com; diff --git a/README.md b/README.md index 79e5869..64d25c3 100644 --- a/README.md +++ b/README.md @@ -7,9 +7,9 @@ Be sure to install Virtualbox and Vagrant before you begin. If you haven't setu 1. Clone this repo into a folder inside your workspace: `git clone git@github.com:cloudspace-devops/devops.git` 2. If you are going to be doing packer or go development, run the following in the root of your workspace directory: - - `git clone git@github.com:cloudspace-devops/packer-image-scripts.git` - - `git clone git@github.com:cloudspace-devops/packer-shell-scripts.git` - - `mkdir go; mkdir go/bin; mkdir go/pkg; mkdir go/src; mkdir go/src/github.com;` + - `make packer-image-scripts` + - `make packer-shell-scripts` + - `make go` 3. If you are using a workspace other than /srv, update the $workspace variable inside the Vagrantfile to match your workspace location. 4. Start the virtual machine by running `vagrant up` in the root of the project. 5. SSH into your virtual machine by running `vagrant ssh`, also in the root of the project. From 2750c7d92775302dd7887d0852418cce9f9f7b78 Mon Sep 17 00:00:00 2001 From: Rusty Phillips Date: Fri, 22 May 2015 11:35:54 -0400 Subject: [PATCH 2/2] Made makefile use sudo. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index ed0ac86..e0a3963 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ default: # To use packer, run "make packer-image-scripts", "make packer-shell-scripts", or run "make go" to create the go directories for development with go. packer-image-scripts: - git clone git@github.com:cloudspace-devops/packer-image-scripts.git + cd srv; sudo git clone git@github.com:cloudspace-devops/packer-image-scripts.git packer-shell-scripts: - git clone git@github.com:cloudspace-devops/packer-shell-scripts.git + cd /srv; sudo git clone git@github.com:cloudspace-devops/packer-shell-scripts.git go: - mkdir go; mkdir go/bin; mkdir go/pkg; mkdir go/src; mkdir go/src/github.com; + cd /srv; sudo mkdir go; sudo mkdir go/bin; sudo mkdir go/pkg; sudo mkdir go/src; sudo mkdir go/src/github.com;