-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
48 lines (39 loc) · 1.9 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "debian/stretch64"
config.vm.hostname = "flexibee-server";
config.vm.network "forwarded_port", guest: 5434, host: 5434
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine and only allow access
# via 127.0.0.1 to disable public access
# config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"
# config.vm.network "public_network"
# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
# config.vm.synced_folder "../data", "/vagrant_data"
# https://docs.vagrantup.com/v2/push/atlas.html for more information.
config.push.define "atlas" do |push|
push.app = "vitexsoftware/flexibee"
end
config.vm.provision "shell", inline: <<-SHELL
apt-get update
export DEBIAN_FRONTEND="noninteractive"
echo cs_CZ.utf8 UTF-8 >> /etc/locale.gen
locale-gen
update-locale
export LC_ALL="cs_CZ.UTF-8"
apt-get -y install gdebi-core curl locales mc htop screen net-tools html2text
# CURVER="`curl -s https://www.flexibee.eu/podpora/stazeni-flexibee/stazeni-ekonomickeho-systemu-flexibee-linux/ | grep h2 | awk '{gsub("<[^>]*>", "")}1'| awk '{print $2}'`"
# IFS='.' read -r -a array <<< "$CURVER"
# GETURL="http://download.flexibee.eu/download/${array[0]}.${array[1]}/$CURVER/flexibee_${CURVER}_all.deb"
# wget $GETURL
# PACKAGE=`ls /vagrant/flexibee-server_*_all.deb`
gdebi --n --q `ls /vagrant/flexibee-server_*_all.deb`
# dpkg-reconfigure flexibee
service flexibee status
curl -k -v https://127.0.0.1:5434/login-logout/first-user-form | html2text
SHELL
end