Skip to content

Commit

Permalink
You can now set up an engineer or designer machine.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Kelly and Joshua Franklin committed Mar 11, 2016
1 parent 0928d6a commit 560756e
Show file tree
Hide file tree
Showing 14 changed files with 102 additions and 39 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
setup.log
.DS_Store
.idea
*.iml
1 change: 1 addition & 0 deletions .pairs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
pairs:
bk: Brian Kelly; bkelly
ah: Ashraf Hanafy; ahanafy
jf: Joshua Franklin; jfranklin

email:
prefix: pair
Expand Down
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,22 @@ Then open up the OS X Terminal and run the following commands:
$ cd workspace
$ git clone https://github.com/pivotal/workstation-setup.git
$ cd workstation-setup
$ ./scripts/setup.sh
```

### Engineering Machine

If you're setting up an engineering machine run the following:

```sh
$ ./engineer.sh
```

### Designer Machine

If you're setting up an engineering machine run the following:

```sh
$ ./designer.sh
```

## Having problems?
Expand All @@ -24,7 +39,7 @@ If you're having problems using the setup script, please let us know by [opening

## Customizing

If you'd like to customize this project for your own use:
If you'd like to customize this project for a project's use:

- Fork the project
- Edit `./scripts/setup.sh` to your liking
Expand Down
8 changes: 8 additions & 0 deletions designer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

# Fail immediately if any errors occur
set -e

SCRIPTS_DIR="$(dirname "$0")/scripts"

${SCRIPTS_DIR}/setup.sh designer
9 changes: 9 additions & 0 deletions engineer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

# Fail immediately if any errors occur
set -e

SCRIPTS_DIR="$(dirname "$0")/scripts"

${SCRIPTS_DIR}/setup.sh engineer

8 changes: 3 additions & 5 deletions scripts/applications.sh → scripts/applications-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ brew cask install firefox

brew cask install slack
brew cask install screenhero
brew cask install skype

# Text Editors

Expand All @@ -29,9 +30,6 @@ brew cask install sublime
brew cask install textmate
brew install macvim

# Design Tools

brew cask install adobe-creative-cloud
brew cask install sketch
brew cask install recordit
# Emulation tools

brew cask install virtualbox
15 changes: 15 additions & 0 deletions scripts/applications-designer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
echo
echo "Installing Designer applications"

# Graphic editing tools

brew cask install adobe-creative-cloud
brew cask install sketch

# Screen recording tools

brew cask install recordit
brew cask install skitch
brew cask install licecap
brew cask install screenflow

2 changes: 1 addition & 1 deletion scripts/cloud.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
echo
echo "Installing Cloud Foundry Command-line Inteface"
echo "Installing Cloud Foundry Command-line Interface"
brew tap cloudfoundry/tap
brew install cf-cli
2 changes: 1 addition & 1 deletion scripts/configurations.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
echo
echo "Configuring iterm"
echo "Configuring iTerm"
cp files/com.googlecode.iterm2.plist ~/Library/Preferences

echo
Expand Down
9 changes: 9 additions & 0 deletions scripts/finished.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
echo
echo "Done!"

echo
echo "After checking the above output for any problems, start a new iTerm session to make use of all the tools that have been installed."
echo "Additionally, the results of this setup have been stored in setup.log for review."

echo

7 changes: 5 additions & 2 deletions scripts/homebrew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ echo "Ensuring you have the latest Homebrew..."
brew update

echo
echo "Ensuring you have a healthy Homebrew enviroment..."
echo "Ensuring you have a healthy Homebrew environment..."
brew doctor

echo
echo "Ensuring your Homebrew directory is writeable..."
echo "Ensuring your Homebrew directory is writable..."
sudo chown -R $(whoami) /usr/local/bin

echo
Expand All @@ -28,6 +28,9 @@ echo "Adding Pivotal Tab to Homebrew"
brew tap pivotal/tap

echo
echo "Upgrading existing brews..."
brew upgrade

echo "Cleaning up your Homebrew installation..."
brew cleanup

Expand Down
49 changes: 23 additions & 26 deletions scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,34 @@
# Fail immediately if any errors occur
set -e

setup_dir="$(dirname "$0")"
SETUP_TYPE=$1
MY_DIR="$(dirname "$0")"

clear

echo
echo "You need to agree to the Xcode Software License Agreement"
echo "You will need to enter your password first."
echo "Then, when the agree comes up, press 'q' to jump to the end and then type 'agree' and press return"
echo
echo "Setting up a '$SETUP_TYPE' machine..."

sudo xcodebuild -license
${MY_DIR}/xcode-license.sh

# Note: Homebrew needs to be set up first
$setup_dir/homebrew.sh
$setup_dir/configuration-osx.sh
$setup_dir/configuration-bash.sh
$setup_dir/git.sh
$setup_dir/java.sh
$setup_dir/ruby.sh
$setup_dir/node.sh
$setup_dir/node-packages.sh
$setup_dir/cloud.sh
$setup_dir/applications.sh
$setup_dir/configurations.sh

echo
echo "Done!"

echo
echo "After checking the above output for any problems, start a new iTerm session to make use of all the tools that have been installed."
echo "Additionally, the results of this setup have been stored in setup.log for review."

echo
${MY_DIR}/homebrew.sh
${MY_DIR}/configuration-osx.sh
${MY_DIR}/configuration-bash.sh
${MY_DIR}/git.sh
${MY_DIR}/java.sh
${MY_DIR}/ruby.sh
${MY_DIR}/node.sh
${MY_DIR}/node-packages.sh
${MY_DIR}/cloud.sh
${MY_DIR}/applications-common.sh

if [ "$SETUP_TYPE" -eq "designer" ]
then
${MY_DIR}/applications-designer.sh
fi

${MY_DIR}/configurations.sh

${MY_DIR}/finished.sh

2 changes: 1 addition & 1 deletion scripts/teardown.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -e
clear

echo
echo "Ensuring your Homebrew directory is writeable..."
echo "Ensuring your Homebrew directory is writable..."
sudo chown -R $(whoami) /usr/local/bin

brew prune
Expand Down
7 changes: 7 additions & 0 deletions scripts/xcode-license.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
echo
echo "You need to agree to the Xcode Software License Agreement"
echo "You will need to enter your password first."
echo "Then, when the agree comes up, press 'q' to jump to the end and then type 'agree' and press return"
echo

sudo xcodebuild -license

0 comments on commit 560756e

Please sign in to comment.