From f2e3688011ef8ac4c1b1c1217aa1eabe2c0f8f0e Mon Sep 17 00:00:00 2001 From: Jan Vales Date: Fri, 2 Nov 2018 17:03:24 +0100 Subject: [PATCH] Vagrant file to provision debian64/testing-vm and provision script. --- Vagrantfile | 13 +++++++++++++ provision.sh | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 Vagrantfile create mode 100755 provision.sh diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000..9152723 --- /dev/null +++ b/Vagrantfile @@ -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 index 0000000..fa746ed --- /dev/null +++ b/provision.sh @@ -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 + -- 2.43.0