-
Notifications
You must be signed in to change notification settings - Fork 0
/
.dev.sh
90 lines (58 loc) · 2.2 KB
/
.dev.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
# git
echo "Git setup"
git config --global user.name "jirkapenzes"
git config --global user.email "[email protected]"
# GitHub: Generating SSH keys
# https://help.github.com/articles/generating-ssh-keys/
# Lists the files in your .ssh directory, if they exist
ls -al ~/.ssh
# Creates a new ssh key, using the provided email as a label
ssh-keygen -t rsa -b 4096 -C "[email protected]"
# Start the ssh-agent in the background
eval "$(ssh-agent -s)"
# Add your SSH key to the ssh-agent
ssh-add ~/.ssh/id_rsa
# Copies the contents of the id_rsa.pub file to your clipboard
pbcopy < ~/.ssh/id_rsa.pub
echo "SSH key for GitHub was generated and was copied to clipboard"
echo "Please copy ssh key into GitHub administration"
echo "Press any key to continue ..."
read
# openshift RHC client
sudo gem install rhc
sudo gem update
rhc setup
# bower
npm install -g bower
# bash - download solarized theme
sudo git clone https://github.com/tomislav/osx-terminal.app-colors-solarized.git "/Users/jirkapenzes/dev/github"
echo "Please open solarized theme and set it as default in bash preferences"
echo "Press any key to continue ..."
read
# tomcat
# https://wolfpaulus.com/jounal/mac/tomcat8/
# http://blog.bolshchikov.net/post/50277857673/installing-tomcat-on-macos-with-homebrew
brew install tomcat6
tomcat_version="$(ls /usr/local/Cellar/tomcat6/)"
echo "Installed Tomcat" $tomcat_version
tomcat_dir="/usr/local/Cellar/tomcat6/$tomcat_version/libexec"
sudo ln -s $tomcat_dir /Library/Tomcat
sudo chown -R jirkapenzes /Library/Tomcat
sudo chmod +x /Library/Tomcat/bin/*.sh
echo "Tomcat was succesfull installed"
echo "You can run it via /Library/Tomcat/bin/startup.sh"
echo "Tomcat will be located to localhost:8080"
# docker
# https://github.com/docker/docker/issues/4007
boot2docker init
# allow ports range 49000 - 50000
for i in {49000..50000}; do
VBoxManage modifyvm "boot2docker-vm" --natpf1 "tcp-port$i,tcp,,$i,,$i";
VBoxManage modifyvm "boot2docker-vm" --natpf1 "udp-port$i,udp,,$i,,$i";
done
for i in {1521..1522}; do
VBoxManage modifyvm "boot2docker-vm" --natpf1 "tcp-port$i,tcp,,$i,,$i";
VBoxManage modifyvm "boot2docker-vm" --natpf1 "udp-port$i,udp,,$i,,$i";
done
# elasticsearch
brew install elasticsearch