forked from juju-solutions/charmbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-review-tools.sh
executable file
·46 lines (37 loc) · 1.25 KB
/
install-review-tools.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
#!/bin/bash
set -e
HOME=/home/ubuntu
# Add tims awesome PPA for the 2.0 bleeding edge tooling
add-apt-repository -y ppa:tvansteenburgh/ppa
apt-get update -qqy
apt-get install -qy \
build-essential \
cython \
git \
juju-deployer \
libssl-dev \
make \
python-dev \
python-jujuclient \
python3-dev \
python-pip \
python3-pip \
python-virtualenv \
rsync \
unzip
apt install --no-install-recommends charm
pip install --upgrade pip six
pip install amulet charm-tools flake8 bundletester tox
pip3 install --upgrade pip
pip3 install amulet
# Fix for CI choking on duplicate hosts if the host key has changed
# which is common.
mkdir -p $HOME/.ssh
echo 'Host *' > $HOME/.ssh/config
echo ' StrictHostKeyChecking no' >> $HOME/.ssh/config
# Chuck hates this
touch $HOME/.vimrc
echo "alias vim=vi" >> /home/ubuntu/.bashrc
echo "export LAYER_PATH=${HOME}/layers" >> /home/ubuntu/.bashrc
echo "export INTERFACE_PATH=${HOME}/interfaces" >> /home/ubuntu/.bashrc
chown -R ubuntu:ubuntu ${HOME}