Vagrant file to provision debian64/testing-vm and provision script.
authorJan Vales <jan@jvales.net>
Fri, 2 Nov 2018 16:03:24 +0000 (17:03 +0100)
committerJan Vales <jan@jvales.net>
Fri, 2 Nov 2018 16:03:24 +0000 (17:03 +0100)
Vagrantfile [new file with mode: 0644]
provision.sh [new file with mode: 0755]

diff --git a/Vagrantfile b/Vagrantfile
new file mode 100644 (file)
index 0000000..9152723
--- /dev/null
@@ -0,0 +1,13 @@
+Vagrant.configure("2") do |config|
+  config.vm.box = "debian/testing64"
+
+  config.vm.provider "virtualbox" do |v|
+    v.name = "aic18g6t4"
+    v.memory = 2048
+  end
+
+  # design-choice: run file in vm.
+  config.vm.provision "shell", inline: "/vagrant/provision.sh"
+
+  config.vm.network "forwarded_port", guest: 8080, host: 8080
+end
diff --git a/provision.sh b/provision.sh
new file mode 100755 (executable)
index 0000000..fa746ed
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+cd /vagrant
+
+apt update
+apt install -y docker.io docker-compose
+
+# camunda install
+docker build -t camunda-aic-overlay camunda-aic-overlay
+docker run -d --name camunda -p 8080:8080 camunda-aic-overlay:latest
+
+# docker-compose up
+