-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
33 lines (27 loc) · 1.38 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
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
# config.vm.box_check_update = false
config.vm.network "forwarded_port", guest: 2113, host: 2113, host_ip: "127.0.0.1"
config.vm.network "forwarded_port", guest: 1113, host: 1113, host_ip: "127.0.0.1"
# config.vm.network "private_network", ip: "192.168.33.10"
# config.vm.synced_folder "../data", "/vagrant_data"
config.vm.provider "virtualbox" do |vb|
vb.memory = "1024"
end
config.vm.provision "shell", inline: <<-SHELL
apt-get install -y curl
curl -s https://packagecloud.io/install/repositories/EventStore/EventStore-OSS/script.deb.sh | sudo bash
apt-get install -y eventstore-oss
echo '---' > /etc/eventstore/eventstore.conf
echo 'RunProjections: All' >> /etc/eventstore/eventstore.conf
echo 'ClusterSize: 1' >> /etc/eventstore/eventstore.conf
echo 'IntIp: 10.0.2.15' >> /etc/eventstore/eventstore.conf
echo 'ExtIp: 10.0.2.15' >> /etc/eventstore/eventstore.conf
echo 'IntIpAdvertiseAs: 127.0.0.1' >> /etc/eventstore/eventstore.conf
echo 'ExtIpAdvertiseAs: 127.0.0.1' >> /etc/eventstore/eventstore.conf
echo 'IntHttpPrefixes: http://*:2113/' >> /etc/eventstore/eventstore.conf
echo 'ExtHttpPrefixes: http://*:2113/' >> /etc/eventstore/eventstore.conf
echo 'AddInterfacePrefixes: False' >> /etc/eventstore/eventstore.conf
service eventstore start
SHELL
end