https://github.com/willfarrell/mac-ci
Scripts to autoset a Jenkins CI on a Mac. Great to put on a spare Mac mini.
https://github.com/willfarrell/mac-ci
Last synced: 5 months ago
JSON representation
Scripts to autoset a Jenkins CI on a Mac. Great to put on a spare Mac mini.
- Host: GitHub
- URL: https://github.com/willfarrell/mac-ci
- Owner: willfarrell
- License: mit
- Created: 2013-09-19T15:24:43.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-09-19T15:32:43.000Z (over 12 years ago)
- Last Synced: 2025-03-12T20:38:09.676Z (12 months ago)
- Language: Shell
- Size: 4.25 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mac mini Continuous Intergration Server
*Interviewee: Of course I have my own CI server, what seasoned developer doesn't?*
## Requirements
- 1 x [Mac mini](https://www.apple.com/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](http://www.vmware.com/products/fusion/overview.html) ($50) or [VMWare Fusion Professional](http://www.vmware.com/products/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](https://github.com/mathiasbynens/dotfiles).
3. Install Xcode.
1. Install Xcode from the Mac App Store.
2. Open Xcode.
3. Open the Preferences window (`Cmd-,`).
4. Go to the Downloads tab.
5. Install the Command Line Tools.
4. Clean up OS UI
1. Set background to soild colour.
```applescript
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'
```
2. Remove uneed dock items
4. Install [boxen](http://boxen.github.com/) `https://github.com/boxen/our-boxen` or use [brew cask](https://github.com/phinze/homebrew-cask).
```bash
# 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"
```
5. Install [Browsers and Virtual Machines](https://github.com/willfarrell/Browsers)
```bash
#boxen browsers
```
## Setup Jenkins
TODO
```bash
boxen jenkins
```
## [Mac mini CI](https://github.com/angular/ci.angularjs.org)
Shell scripts and configuration files used by the Google AngularJS Team. [Video](https://www.youtube.com/watch?v=BNpV7npURhE) [Slides](https://docs.google.com/presentation/d/1-j264F0Q8k3NzionQspx7fhKd2E8XPkIKItxz2qhN28)
## 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).