WMS-V – A New Way ToVisualise Geo-temporal Data – The Big Picture



WMS-V – A New Way ToVisualise Geo-temporal Data – The Big Picture

0 0


wms-v-presentation

WMS-V Presentation - Sponsored by Landcare Research

On Github geekdenz / wms-v-presentation

WMS-V

A New Way ToVisualise Geo-temporal Data

Tim-Hinnerk Heuer / @geekdenzhttp://j.mp/landcare-wms-v

Andrew Cowie, David Medyckyj-Scott

Landcare Research

  • The Big Picture

  • An Example: Package.php - Debian Package Maker

1:30

The Big Picture

Application Development Cycle

while (!project_finished()) {
	gather_requirements();
	formulate_issues_and_tasks();
	write_code();
	package();                   // package.php
	upload_to_test_repository(); // package.php
	test();
	sign_off();
	deploy_to_production();      // puppet / apt-get (on debian/ubuntu)
}
4:00

The Big Picture

Application Development Cycle

gather requirements formulate issues and tasks write code package                                          - package.php upload to test repository   - package.php test sign off deploy to production - puppet / apt-get (on debian/ubuntu)

repeat while project not finished...

6:00

Package.php - Debian Package Maker

package.php - help

$ package.php --help
Usage
=====
1. create a 'packager' directory in your project
2. create a 'packager/config.php'
3. optionally create 'packager/after-install.php'
4. optionally create 'packager/before-remove.php'

Execute
    package.php
in the root directory of your project and a package will be created for you and
uploaded to your repository.

The package can be found in packager/deb with version etc. Git tags are
automatically created for you
and the version can be customized by editing 'version.txt'.

More information can be found @ https://github.com/geekdenz/packager or in
README.md.
7:00

Package.php - packager/config.php

Easy configuration based on PHP arrays.

7:30

packager/config.php

<?php return array(                  
    'landcare-mapcache-dev' => array(
		// gets executed after the setup and before the actual package build:
        'before-package' => 'before-package.php',
        'depends' => array( // list of dependencies
            'php5-cli', 'libgdal1', 'libapr1', 'libaprutil1', 'libpixman-1-0',   
        ),
        'description' => 'MapCache is a WMS client implementing caching of '.
                         'MapServer layers.',
        'files' => array(
            'build/root/*' => '/',      
        ),
        'license' => 'GPL v3',
        'repository' => 'repository.test.zen.landcareresearch.co.nz:'.
						'/var/www/dists/precise/main/binary-amd64',
        'url' => 'http://mapserver.org',
        'vendor' => 'Regents of the University of Minnesota & Landcare Research',

        'm' => 'heuert@landcareresearch.co.nz',
        's' => 'dir',
        't' => 'deb',
    ),
);
8:30

version.txt

0.1.0

gets automatically updated by

$ package.php -rg

in the root directory of the project.

to

0.1.1
9:00

Git Tags

$ package.php -t

creates tag v0.1.1 linked to the current git commit

if version.txt contains 0.1.1

10:00

Result: Debian Package

  • gets version number 0.1.1 in our example
  • gets description and meta data from packager/config.php
  • gets installed with
$ sudo apt-get install landcare-package

or with puppet.

11:00

FINAL

END

ENDE

BY Tim-Hinnerk Heuer

/heuert@landcareresearch.co.nz

/@geekdenz

http://j.mp/landcare-pp

12:00