-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathamazon-mac-setup
70 lines (53 loc) · 1.96 KB
/
amazon-mac-setup
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
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew cask install iterm2
toolbox install brazilcli
brew install git
grep .toolbox ~/.bash_profile || echo 'export PATH=$HOME/.toolbox/bin:$PATH' >> ~/.bash_profile && source ~/.bash_profile
toolbox install cr
sysctl kern.maxfiles
brew install pyenv xz
python-build 3.6.10 ~/.runtimes/Python36
python-build 3.7.7 ~/.runtimes/Python37
python-build 3.8.3 ~/.runtimes/Python38
xcode-select --install
brew install rbenv libyaml libffi
ruby-build 2.7.1 ~/.runtimes/Ruby27x
#install java is skipped here please refer to setup-macos.html and install from self service
# NODE with chromedriver for web tests
brew install nvm
# Set up the working directory
mkdir ~/.nvm
# Set up paths, also add these to your .bash_profile
echo 'export NVM_DIR=~/.nvm' >> ~/.bash_profile
echo 'source $(brew --prefix nvm)/nvm.sh' >> ~/.bash_profile
# install the desired version of NodeJS
nvm install 10
# case senstive and encrypted volume
cd ~
git clone ssh://git.amazon.com/pkg/MacOSEncryptedVolumeTools
MacOSEncryptedVolumeTools/bin/create-encrypted-apfs-volume workplace
MacOSEncryptedVolumeTools/bin/create-encrypted-apfs-volume brazil-pkg-cache
brazil prefs --global --key packagecache.cacheRoot --value /Volumes/brazil-pkg-cache/
ln -s /Volumes/workplace ~/workplace
rm -rf MacOSEncryptedVolumeTools
# to verify or use disk utility
diskutil list
#IDE
# custom IntelliJ IDEA properties
#echo 'idea.case.sensitive.fs=true' >> ~/Library/Preferences/IntelliJIdea2019.3/idea.properties
#RDE
# create case senstive encrypted volume for workplace and cache
# confugre docker
toolbox update toolbox
toolbox install rde
#post config http....../RDE/Environment_Setup/#Environment_setup_validation
rde env validate
rde env setup ecr
toolbox update rde
brew tap amazon/amazon "ssh://git.amazon.com/pkg/HomebrewAmazon"
brew update
brew upgrade
# Install NinjaDevSync
brew install ninja-dev-sync
brew install aws-sam-cli