diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e0a3963 --- /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: + cd srv; sudo git clone git@github.com:cloudspace-devops/packer-image-scripts.git +packer-shell-scripts: + cd /srv; sudo git clone git@github.com:cloudspace-devops/packer-shell-scripts.git +go: + cd /srv; sudo mkdir go; sudo mkdir go/bin; sudo mkdir go/pkg; sudo mkdir go/src; sudo 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.