Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Vagrant virtual environment configuration
- Loading branch information
Showing
4 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
bin/* | ||
Sample/* | ||
.vagrant | ||
osm2pgrouting | ||
*.o | ||
*~ | ||
.project | ||
.cproject | ||
Sample/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
|
||
pgbox = ENV['BOX'] || "precise64" | ||
|
||
Vagrant.configure("2") do |config| | ||
|
||
# Vagrant box configuration | ||
config.vm.box = pgbox | ||
config.vm.box_url = "http://files.vagrantup.com/%s.box" % [pgbox] | ||
|
||
# Bootstrap script | ||
config.vm.provision :shell, :path => "tools/vagrant/bootstrap.sh" | ||
|
||
# Forward SSH agent to host | ||
config.ssh.forward_agent = true | ||
|
||
# Create synced folder for GnuPG keys | ||
config.vm.synced_folder "~/.gnupg", "/home/vagrant/.gnupg" | ||
config.vm.synced_folder "../", "/home/vagrant/repos" | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
# ------------------------------------------------------------------------------ | ||
# Vagrant - Virtualized Development | ||
# Copyright(c) pgRouting Contributors | ||
# | ||
# Virtual environment bootstrap script | ||
# ------------------------------------------------------------------------------ | ||
|
||
set -e # Exit script immediately on first error. | ||
#set -x # Print commands and their arguments as they are executed. | ||
|
||
# Abort provisioning if pgRouting development environment already setup. | ||
# ------------------------------------------------------------------------------ | ||
which vim >/dev/null && | ||
{ echo "osm2pgrouting development environment already setup."; exit 0; } | ||
|
||
# Run provisioning | ||
# ------------------------------------------------------------------------------ | ||
echo "Installing packages ... this may take some time." | ||
apt-get update -qq | ||
apt-get install -y -qq vim packaging-dev checkinstall libboost-graph-dev libpq-dev libexpat1-dev | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
# ------------------------------------------------------------------------------ | ||
# Vagrant - Virtualized Development | ||
# Copyright(c) pgRouting Contributors | ||
# | ||
# Prepare packaging | ||
# ------------------------------------------------------------------------------ | ||
|
||
echo "DEBEMAIL=mail@example.com" > ~/.bash_aliases | ||
echo "DEBFULLNAME='First Last'" >> ~/.bash_aliases | ||
|
||
git config --global user.name "First Last" | ||
git config --global user.email "mail@example.com" | ||
git config --global core.editor vim | ||
git config --global color.ui true |