willfarrell / mac-ci

Scripts to autoset a Jenkins CI on a Mac. Great to put on a spare Mac mini.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mac mini Continuous Intergration Server

Interviewee: Of course I have my own CI server, what seasoned developer doesn't?

Requirements

  • 1 x Mac mini ($600 - $1,500) 2.6GHz Quad-Core i7, 16GB RAM, 1TB Fusion Drive
  • 1 x Apple Mini DisplayPort to VGA Adapter ($29) If planning to not connect to a monitor
  • 1 x Resistor If planning to not connect to a monitor
  • 1 x VMware Fusion ($50) or VMWare Fusion Professional ($129)

Setup

  1. Create the user Jenkins.

  2. Setup dot files. Run .osx script top optimize setting for performance, fork from mathiasbynens/dotfiles.

  3. Install Xcode.

  4. Install Xcode from the Mac App Store.

  5. Open Xcode.

  6. Open the Preferences window (Cmd-,).

  7. Go to the Downloads tab.

  8. Install the Command Line Tools.

  9. Clean up OS UI

  10. Set background to soild colour.

osascript -e 'set desktopImage to POSIX file "/Library/Desktop Pictures/Solid Colors/Solid Gray Light.png"
tell application "Finder"
    set desktop picture to desktopImage
end tell'
  1. Remove uneed dock items

  2. Install boxen https://github.com/boxen/our-boxen or use brew cask.

# Setup folders
sudo mkdir -p /opt/boxen
sudo chown ${USER}:staff /opt/boxen

# Clone repo
git clone https://github.com/boxen/our-boxen /opt/boxen/repo
cd /opt/boxen/repo
git remote rm origin

# Add browsers include to Puppetfile
echo 'github "browsers"    "0.0.1", :repo => "willfarrell/puppet-browsers"' >> Puppetfile

# Run boxen bootstrap
script/boxen --no-fde

# Run `boxen --env` in new tab
echo "Run `boxen --env` in new tab"
  1. Install Browsers and Virtual Machines
#boxen browsers

Setup Jenkins

TODO

boxen jenkins

Mac mini CI

Shell scripts and configuration files used by the Google AngularJS Team. Video Slides

To Do

  • Write script to auto install dot files and setup computer best for jenkins (focus on security and speed).

  • remove background image

  • remove useless icons from dock (leave Finder, Browser)

  • Write script to install all browsers (bowen).

About

Scripts to autoset a Jenkins CI on a Mac. Great to put on a spare Mac mini.

License:MIT License


Languages

Language:Shell 100.0%