-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
70 lines (60 loc) · 1.65 KB
/
Vagrantfile
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.provider :virtualbox do |vb|
vb.memory = "2048"
end
config.ssh.forward_agent = true
# Add deadsnakes repository
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 5BB92C09DB82666C
add-apt-repository -y ppa:fkrull/deadsnakes
# Add NodeJS repository
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
# Update package list
export DEBIAN_FRONTEND=noninteractive
apt-get update --allow-unauthenticated
# Generic development
apt-get install -y \
tree \
zip \
unzip \
build-essential \
language-pack-ja-base \
language-pack-ja
# Japanese locale
update-locale LANG=ja_JP.UTF-8
# Set timezone
timedatectl set-timezone Asia/Tokyo
# Python development
apt-get install -y \
python3.6 \
python3.6-dev \
python3.6-venv
# NodeJS development
apt-get install -y nodejs
# Common Packages
apt-get install -y \
ca-certificates \
curl \
git \
libcurl4-openssl-dev \
libffi-dev \
libjpeg-dev \
libpng12-dev \
libpq-dev \
libsqlite3-dev \
libssl-dev \
libxml2-dev \
libxslt1-dev \
libz-dev \
wget \
zlib1g-dev
# ngrok
if [ ! -e /usr/local/bin/ngrok ]; then
wget -q https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip -O /tmp/ngrok-stable-linux-amd64.zip
unzip -o /tmp/ngrok-stable-linux-amd64.zip -d /usr/local/bin/
fi
EOS
end