-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_tools.sh
More file actions
61 lines (48 loc) · 1.39 KB
/
install_tools.sh
File metadata and controls
61 lines (48 loc) · 1.39 KB
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
#! /bin/sh
PWD=`pwd ;`
PIP=`which pip ;`
PYTHON27=`which python2.7 ;`
VIRTUALENV=`which virtualenv ;`
if [ ! $PIP ]; then
echo "NG : not exists pip command. please install pip command."
exit 1
fi
if [ ! $PYTHON27 ]; then
echo "NG : not exists Python 2.7 command. please install Python 2.7 command."
exit 1
fi
# 必要なツールを格納するディレクトリを作成
if [ ! -d tools ]; then
echo "mkdir tools"
mkdir tools ;
else
echo "already mkdir tools"
fi
# virtualenv インストール
if [ ! $VIRTUALENV ]; then
echo "install virtualenv : Please enter the password for 'sudo' " ;
sudo pip install --upgrade virtualenv ;
fi
# virtualenv 設定
if [ ! -d tools/venv ]; then
virtualenv --python=$PYTHON27 $PWD/tools/venv ;
fi
cd tools ;
# eb コマンドをインストール
if [ ! -d AWS-ElasticBeanstalk-CLI-2.5.1 ]; then
wget https://s3.amazonaws.com/elasticbeanstalk/cli/AWS-ElasticBeanstalk-CLI-2.5.1.zip ;
unzip AWS-ElasticBeanstalk-CLI-2.5.1.zip ;
rm AWS-ElasticBeanstalk-CLI-2.5.1.zip ;
fi
# ec2-api-tools をインストール
if [ ! -d ec2-api-tools-* ]; then
wget http://s3.amazonaws.com/ec2-downloads/ec2-api-tools.zip ;
unzip ec2-api-tools.zip ;
rm ec2-api-tools.zip ;
fi
# # Jenkins をインストール
# if [ ! -d jenkins.war ]; then
# wget http://mirrors.jenkins-ci.org/war/latest/jenkins.war ;
# fi
cd .. ;
echo "Successfully installed tools" ;