blob: 1642c494c3e197b32e5cd18b65a13e3892b3bcb0 (
plain)
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
49
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
|