-
Notifications
You must be signed in to change notification settings - Fork 21
/
Vagrantfile
36 lines (31 loc) · 1.23 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
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/bionic64"
config.vm.provision "docker",
images: ["mariadb:latest", "tomcat:latest" , "maven:latest"]
config.vm.synced_folder '.', '/massbank/MassBank-web'
config.vm.synced_folder '../MassBank-data', '/massbank/MassBank-data'
config.vm.provision "shell", inline: <<-SHELL
hostnamectl set-hostname massbank
curl -s -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
cd /massbank/MassBank-web
./install.sh start 0
apt install apache2 -y
a2enmod ssl rewrite proxy_http
cp -r conf/apache2/* /etc/apache2/
a2dissite 000-default
a2ensite massbank massbank-ssl
systemctl reload apache2
SHELL
# Create a private network, which allows host-only access to the machine
# using a specific IP.
config.vm.network "private_network", ip: "192.168.35.18"
# Provider-specific configuration so you can fine-tune various
# backing providers for Vagrant. These expose provider-specific options.
# Example for VirtualBox:
#
config.vm.provider "virtualbox" do |vb|
vb.memory = 4096
vb.cpus = 2
end
end