-
Notifications
You must be signed in to change notification settings - Fork 0
/
osx-desenv.sh
46 lines (36 loc) · 1.48 KB
/
osx-desenv.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
# --------------------------------------------------------------------
# Instalar aplicativos
# --------------------------------------------------------------------
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null ; brew install caskroom/cask/brew-cask 2> /dev/null
brew update
brew install curl
brew cask install virtualbox
brew cask install github
# --------------------------------------------------------------------
# Instalar Boot to Docker
# --------------------------------------------------------------------
brew install docker
brew cask install boot2docker
# --------------------------------------------------------------------
# Instalar VM
# --------------------------------------------------------------------
boot2docker init
boot2docker up
boot2docker ip
# --------------------------------------------------------------------
# Subir docker
# --------------------------------------------------------------------
mkdir $home/TempDesenv
cd $home/TempDesenv
git clone https://github.com/camillagds/react-todomvc.git
cd react-todomvc
docker build -f Dockerfile -t react-todomvc .
docker run -d --name app -p 8080:8080 react-todomvc
docker ps
#Test
sleep 5
docker ps -a | grep app
curl -l http://localhost:8080
docker exec -d app chmod +x /usr/src/app/test_app.sh
docker exec -d app sh /usr/src/app/test_app.sh