-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
33 lines (24 loc) · 1.25 KB
/
install.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
#!/bin/bash
# Error out immediately if we get any errors, so we know things failed.
set -e
#Set locale to en_US.utf8. Needed for a successful capistrano deployment.
update-locale LC_ALL=en_US.utf8
apt-get update
# Enable the add-apt-repository command.
apt-get install -y software-properties-common
# We need MySQL 5.6 right now, but since it's not in Xenial package repositories, we need to have this one here in place
add-apt-repository 'deb http://archive.ubuntu.com/ubuntu trusty universe'
# Update apt once again so it learns about this new repo.
apt-get update
# Install MySQL 5.6 finally.
export DEBIAN_FRONTEND=noninteractive #Prevents mysql installer to show set password dialogue
export MYSQL_ROOT_PASSWORD='root'
debconf-set-selections <<< "mysql-server-5.6 mysql-server/root_password password $MYSQL_ROOT_PASSWORD"
debconf-set-selections <<< "mysql-server-5.6 mysql-server/root_password_again password $MYSQL_ROOT_PASSWORD"
# Install the dependencies.
apt-get install -y build-essential curl git imagemagick libgdal-dev libgeos-dev\
libmagick++-dev libmysqlclient-dev libproj-dev libxml2-dev libxslt-dev \
mysql-server-5.6 nodejs-legacy npm python-software-properties ruby ruby-dev \
vim zlib1g-dev \
nfs-kernel-server
gem install bundler