summaryrefslogtreecommitdiffstats
path: root/Vagrantfile
diff options
context:
space:
mode:
authorChristian Benien <christian.benien@nuance.com>2018-07-27 17:25:38 +0200
committerChristian Benien <christian.benien@nuance.com>2018-07-27 17:41:02 +0200
commitfdee159e0756528d6873cfe1526769975cad5c00 (patch)
treea352f39a35e31e2d0f556aabd1ea0e02300de92d /Vagrantfile
parentbd52bb7d7a7785374c5e1c5f1fc6f92476de1c0c (diff)
Change-Id: I4c9fc3b9e8b3ea3b97bcbc4d8f099edd71b94b91 Signed-off-by: Christian Benien <christian.benien@nuance.com>
Diffstat (limited to 'Vagrantfile')
-rw-r--r--Vagrantfile50
1 files changed, 50 insertions, 0 deletions
diff --git a/Vagrantfile b/Vagrantfile
new file mode 100644
index 0000000..1642c49
--- /dev/null
+++ b/Vagrantfile
@@ -0,0 +1,50 @@
+# -*- mode: ruby -*-
+# vi: set ft=ruby :
+
+Vagrant.configure("2") do |config|
+ config.vm.box = "ubuntu/xenial64"
+
+ config.vm.provider "virtualbox" do |vb|
+ vb.memory = "2048"
+ end
+
+ config.vm.network "forwarded_port", guest: 1235, host: 1235
+
+ config.vm.provision "shell", inline: <<-SHELL
+
+ export DISTRO="xUbuntu_16.04"
+ export BRANCH="AGL_ElectricEel"
+ wget -O - http://download.opensuse.org/repositories/isv:/LinuxAutomotive:/${BRANCH}/${DISTRO}/Release.key | sudo apt-key add -
+ echo "deb http://download.opensuse.org/repositories/isv:/LinuxAutomotive:/${BRANCH}/${DISTRO}/ ./" >> /etc/apt/sources.list.d/AGL.list
+
+
+ apt-get update
+ apt-get install -y \
+ build-essential \
+ git \
+ curl \
+ wget \
+ cmake \
+ pkg-config \
+ libjson-c-dev \
+ libsystemd-dev \
+ agl-xds-agent \
+ agl-app-framework-binder-bin \
+ agl-app-framework-binder-dev
+
+ apt-get -y dist-upgrade
+
+ # Source the profile script in bashrc so that it is also available
+ # for non-login shells
+ echo ". /etc/profile.d/AGL_app-framework-binder.sh" >> /etc/bash.bashrc
+
+ mkdir -p $HOME/tmp
+ cd $HOME/tmp
+ wget https://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.55.tar.gz
+ tar xzf libmicrohttpd-0.9.55.tar.gz
+ cd libmicrohttpd-0.9.55
+ ./configure && make && sudo make install
+ cd ..
+ chmod +x /vagrant/conf.d/autobuild/linux/autobuild
+ SHELL
+end