-
Notifications
You must be signed in to change notification settings - Fork 1
/
installs.sh
108 lines (86 loc) · 4.02 KB
/
installs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#!/usr/bin/env bash
#Homebrew, mas-cli, brew cask: everything you need to install software on a mac
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" && \
# brew install mas && && \ #Not currently used in the script
brew tap caskroom/cask && \
#Oh-My-Zsh - Install first so that we can add plugins as we install other software
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" && \
#Alternative: https://github.com/sorin-ionescu/prezto this script assumes oh-my-zsh though, you might want to create a pretzo version
#Activate any plugins you want for Oh-My-Zsh
#See https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins for available plugins
sed "s/plugins=.*/plugins=(git mvn brew sbt docker docker-compose vagrant)/g" ~/.zshrc && \
#Various command line tools:
brew install ssh-copy-id && \
brew install tomcat7 && \
brew install tree && \
brew install liquibase && \
#TODO: Set liquibase home to whatever it says after the brew installation
#See: https://github.com/nvbn/thefuck
brew install thefuck && \
echo 'eval "$(thefuck --alias)"' >> ~/.zshrc && \
#Java -> NB! this will install the latst version, while you might want to use 1.8.0_20 to build the main AppDirect repo
brew cask install java && \
#Install maven and set the JVM memory settings for it
# In case you need an older version of maven...Most likely not
# brew tap homebrew/versions && \
# brew install maven32 && \
brew install maven && \
touch ~/.mavenrc && \
echo 'export MAVEN_DEBUG_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000"' >> ~/.mavenrc && \
echo 'export MAVEN_OPTS="-Xms1024m -Xmx2048m -noverify -XX:MaxMetaspaceSize=760m"' >> ~/.mavenrc && \
#Scala
brew install scala && \
brew install sbt && \
#Various desktop apps
brew cask install slack && \
brew cask install caffeine && \
brew cask install vagrant && \
brew cask install vagrant-manager && \
brew cask install iterm2 && \
brew cask install visual-studio-code && \
brew cask install sublime-text && \
brew cask install google-chrome && \
brew cask install google-drive && \
brew cask install google-hangouts && \
brew cask install visualvm && \
brew cask install spectacle && \
brew cask install archiver && \
brew cask install jing && \
#Docker toolbox: (docker, docker-machine, virtualbox, kitematic)
#NB: You might be better off using Docker for Mac, for which, unfortunatelly, no cask exists yet
#Ensure that the docker VM runs when you run your terminal
#brew cask install dockertoolbox && \
#docker-machine create --driver "virtualbox" --virtualbox-memory "8192" --virtualbox-cpu-count "8" --virtualbox-disk-size "60000" default && \
#docker-machine env default && \
#echo 'eval $(docker-machine env default)' >> ~/.zshrc && \
#My alias for docker-compose, careful overrides some unix tool also named 'dc'
echo 'alias dc="docker-compose"' >> ~/.zshrc && \
echo 'alias docker_clean_images="docker rmi $(docker images -a --filter=dangling=true -q)"'
echo 'alias docker_clean_ps="docker rm $(docker ps --filter=status=exited --filter=status=created -q)"'
#alias dps='docker ps --format "table {{.Names}}\t{{.Image}}\t{{.Status}}\t{{.Ports}}" -a'
#IDE
brew cask install intellij-idea && \
#Openconnect: Install only if using it
#brew install openconnect && \
#Example for creating an alias for a particular VPN, so you can quickly connect
#alias my_vpn_alias="sudo openconnect --authgroup=[authgroup-goes-here] --user=[username-goes-here] [VPN-to-connect to]"
#Install Python
brew install python && \
pip install --upgrade pip && \
pip install httplib2 && \
pip install requests && \
pip install requests_oauthlib && \
#Ansible
pip install ansible && \
#NodeJS stuff
brew install node && \
npm install gulp -g && \
npm -g install eslint && \
#MySql driver
brew tap gbeine/homebrew-java && \
brew install mysql-connector-java && \
#MySQL DB client
brew cask install sequel-pro && \
# GitHub goodies" https://hub.github.com/
brew install hub && \
echo 'eval "$(hub alias -s)"' >> ~/.zshrc