[lxc-devel] [lxc/master] add vagrant for lxc
akshaykarle on Github
lxc-bot at linuxcontainers.org
Mon Apr 25 14:08:21 UTC 2016
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 510 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160425/92f2be20/attachment.bin>
-------------- next part --------------
From 0fef097b994f83d5aac5c41d7166f3cae4142474 Mon Sep 17 00:00:00 2001
From: Akshay Karle <akshay.a.karle at gmail.com>
Date: Mon, 25 Apr 2016 11:04:34 -0300
Subject: [PATCH] add vagrant for lxc
* uses 14.04 official image
* sets up the dependencies required to compile lxc
* shares the local development directory from host to /home/vagrant/lxc
Signed-off-by: Akshay Karle <akshay.a.karle at gmail.com>
---
.gitignore | 2 ++
Vagrantfile | 15 +++++++++++++++
2 files changed, 17 insertions(+)
create mode 100644 Vagrantfile
diff --git a/.gitignore b/.gitignore
index adc965e..3717e5d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -145,3 +145,5 @@ TAGS
doc/api/doxygen_sqlite3.db
doc/api/*.tmp
+
+.vagrant
diff --git a/Vagrantfile b/Vagrantfile
new file mode 100644
index 0000000..0bdee0d
--- /dev/null
+++ b/Vagrantfile
@@ -0,0 +1,15 @@
+# -*- mode: ruby -*-
+# vi: set ft=ruby :
+
+Vagrant.configure(2) do |config|
+ config.vm.box = "ubuntu/trusty64"
+
+ config.vm.synced_folder ".", "/home/vagrant/lxc"
+
+ config.vm.provision "shell", inline: <<-SHELL
+ sudo add-apt-repository ppa:ubuntu-lxc/daily -y
+ sudo apt-get update -qq
+ sudo apt-get install -qq gcc automake
+ sudo apt-get install -qq libapparmor-dev libcap-dev libseccomp-dev python3-dev docbook2x libgnutls-dev liblua5.2-dev libselinux1-dev libcgmanager-dev
+ SHELL
+end
More information about the lxc-devel
mailing list