Skip to content

Instantly share code, notes, and snippets.

Last active January 7, 2016 00:17
What would you like to do?
# -*- mode: ruby -*-
# vi: set ft=ruby :
#This is a Vagrantfile to build a box and checkout Apache Nifi
Vagrant.configure("2") do |config| = "ubuntu/trusty64" :forwarded_port, guest: 8080, host: 8080
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--ioapic", "on"]
vb.memory = 2048
vb.cpus = 2 = "nifi-example-build"
config.vm.provision "shell",
inline: "sudo apt-get -y update;
sudo apt-get install -y wget openjdk-7-jdk git;
sudo apt-get remove maven*;
tar -zxf apache-maven-3.2.5-bin.tar.gz;
sudo cp -R apache-maven-3.2.5 /usr/local;
sudo ln -s /usr/local/apache-maven-3.2.5/bin/mvn /usr/bin/mvn;
rm apache-maven-3.2.5-bin.tar.gz;
mkdir matched;
mkdir unmatched;
git clone;
cd incubator-nifi;
git checkout nifi-0.0.2-incubating-RC1;
cd nifi-nar-maven-plugin/;
mvn clean install;
cd ../nifi && mvn -T C2.0 clean install -DskipTests;
cp nifi-assembly/target/nifi-*.tar.gz ~/;
cd ~/ && tar -xzf nifi-*.tar.gz;
cd nifi-*-incubating;
bin/ start;"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment