GithubHelp home page GithubHelp logo

williemaddox / vagrant-geoserver-postgis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from druidsmith/vagrant-geoserver-postgis

0.0 2.0 0.0 140 KB

Vagrantfile and provisioner for a PostGIS/GeoServer box (running trusty64)

License: Creative Commons Zero v1.0 Universal

Shell 50.86% Ruby 49.14%

vagrant-geoserver-postgis's Introduction

vagrant-geoserver-postgis

Vagrantfile and provisioner for a PostGIS/GeoServer box (running trusty64)

Background

This is an attempt to provide an easy and replicatable way to rapidly stand up a GeoServer instance for development or other purposes in an automated way, using vagrant.

Prerequisites:

Vagrant

Installation of vagrant https://www.vagrantup.com/ - vagrant provides the mechanism for configuring and provisioning the machine. Vagrant can support VirtualBox or cloud hosted platforms. This vagrant instance is initially focusing on virtualbox.

VirtualBox

The geoserver instance will run within virtualbox https://www.virtualbox.org/wiki/Downloads - vagrant will create a virtualbox vm and provision it

Running the VM

With vagrant and virtualbox installed on the host machine, the GeoServer machine can be instantiated by cloning or copying this repo into a directory, and from a command line, going to the directory containing the vagrantfile and provision.sh scripts, and simply running 'vagrant up'

Vagrant will create the vm, and then will fetch Ubuntu 14.04 (trusty64) and then run the provisioner script. The provisioner script, 'provision.sh' is just a BASH shell script that will run to install dependencies, and then install PostGIS and GeoServer.

Once it is up and running, the GeoServer instance should be accessible by going to http://localhost:8080/geoserver

The VM can be shut down by using 'vagrant halt' - and can be destroyed by using 'vagrant destroy' from the host machine command line. The machine can also be accessed by using 'vagrant ssh' or via VirtualBox

Post-Installation

After the VM is up, the user will want to change any relevant passwords and make appropriate changes...

Not addressed: Additional PostGIS setup once within postgres, for example

sudo -u postgres psql CREATE EXTENSION adminpack; service postgresql restart SELECT pg_reload_conf(); SELECT name, setting FROM pg_settings where category='File Locations'; \q sudo su - postgres createuser -d -E -i -l -P -r -s postgisuser et cetera...

See PostGIS post-install instructions - http://postgis.net/install/
pgrouting not installed - line can be uncommented in provisioner script

This is currently still a work in progress - if there are system tweaks that are recommended, or ways to improve the provisioner bash script, please submit as changes.

vagrant-geoserver-postgis's People

Contributors

druidsmith avatar

Watchers

James Cloos avatar Willie Maddox avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.