SlideShare a Scribd company logo
1   #Sign up!
 2   Web UI!
 3   !
 4   #####Install the command line tools (you can use the web for some but not all)!
 5   Not going to install now. If you are comfortable with Web be aware that you can't complete the whole
 …   flow!
 6   !
 7   #####Create a domain !
 8   rhc domain create -n <yourDomainName> -l spousty+spatial@redhat.com !
 9   !
10   #####Create an application - both are Java - one is called geoserver, the other is called parks!
11   rhc app create -g medium -t jbossas-7 -a geoserver!
12   !
13   nodejs-0.6, jbossas-7, python-2.6, jenkins-1.4, ruby-1.8, diy-0.1, php-5.3, perl-5.10!
14   !
15   #####Add a cartridge if needed - start with Postgresql!
16   rhc app cartridge add -a geoserver -c postgresql-8.4 !
17   !
18   mongodb-2.0, cron-1.4, mysql-5.1, postgresql-8.4, haproxy-1.4, 10gen-mms-agent-0.1, phpmyadmin-3.4,
 …   metrics-0.1, rockmongo-1.1, jenkins-client-1.4!
19   !
20   #####SSH into your “server” and look at env variables!
21   ssh!
22   !
23   ENV!
24   !
25   !
26   ######Here are the instructions for getting wordpress up and running!
27   https://github.com/openshift/wordpress-example!
28   !
29   !
30   !
31   !
32   !
33   ####################################################!
34   #####SCP the data files we will need for later exercises!
35   scp parkcoord.sql <ssh string>:/geoserver/data!
36   !
37   !
38   #####Make our Postgresql db spatial!
39   ssh into the machine!
40   !
41   psql -d geoserver -c "create language plpgsql;"!
42   psql -d geoserver -f /usr/share/pgsql/contrib/postgis-64.sql!
43   psql -d geoserver -f /usr/share/pgsql/contrib/spatial_ref_sys.sql!
44   !
45   !
46   ######create the table!
47   CREATE TABLE parkpoints!
48   (!
49      gid serial NOT NULL,!
50      name text, -- name of the park!
51      the_geom geometry,!
52      CONSTRAINT parkpts_pk PRIMARY KEY (gid ),!
53      CONSTRAINT enforce_dims_the_geom CHECK (st_ndims(the_geom) = 2),!
54      CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'POINT'::text OR the_geom IS
 …   NULL),!
55      CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 4326)!
56   )!
57   WITH (!
58      OIDS=FALSE!
59   );!
60   !
61   COMMENT ON COLUMN parkpoints.name IS 'name of the park';!
62   !
63   #####Make the spatial index!
64   CREATE INDEX parkpoints_spatial_idx ON parkpoints USING gist (the_geom );!
 65   !
 66   ######back out to the command line to load the data!
 67   psql -f geoserver/data/parkcoord.sql parkpoints!
 68   !
 69   #####Go in and do a query!
 70   psql geoserver!
 71   SELECT gid, name FROM parkpoints WHERE ST_DWithin('SRID=4326;POINT(-103.8 44.6)',the_geom, 1);!
 72   !
 73   ####################################################!
 74   #####On to MongoDB spatial!
 75   !
 76   #####create another app - called parks!
 77   rhc app create -g medium -t python-2.6 -a parks!
 78   !
 79   nodejs-0.6, jbossas-7, python-2.6, jenkins-1.4, ruby-1.8, diy-0.1, php-5.3, perl-5.10!
 80   !
 81   #####Add a cartridge of mongodb!
 82   rhc app cartridge add -a parks -c mongodb-2.0!
 83   !
 84   #####scp our data up to the server!
 85   scp parkcoord.json <ssh string>:parks/data/!
 86   !
 87   #####ssh into the machine!
 88   ssh <ssh string>!
 89   !
 90   #####import into mongo!
 91   mongoimport -d parks -c parkpoints --type json --file parks/data/parkcoord.json -h
  …   $OPENSHIFT_NOSQL_DB_HOST -u admin -p <your mongo password>!
 92   !
 93   #####open the mongo shell!
 94   mongo -u admin -p <your password> $OPENSHIFT_NOSQL_DB_HOST/parks!
 95   !
 96   #####build the index!
 97   db.parkpoints.ensureIndex({"pos":"2d"});!
 98   !
 99   #####Now some queries!
100   #####simple spatial!
101   db.parkpoints.find({"pos" : { "$near" : [-37, 41]}});!
102   !
103   #####spatial and text query using regex!
104   db.parkpoints.find( { Name : /lincoln/i, pos : { $near : [-37,41] }} );!
105   !
106   #####geonear TODO!
107   db.runCommand({ geoNear : "parkpoints", near : [-37,41], num : 10 });!
108   !
109   !
110   ####################################################!
111   #####Now to load geoserver !
112   #copy the modified war file into the git deployment directory!
113   #need to add the jboss-services.xml into the war file! !
114   #Make changes in your git repo!
115   git add .!
116   git commit -m "adding geoserver"!
117   git push!
118   !
119   #wait for it to deploy!
120   #then hit the url and work away!
121   #let's hook up postgis from before!
122   #preview the layer!
123   !
124   !
125   !
126   !
127   !
128   !
129   !
130   #Make changes in your git repo!
131   git add .!
132   git commit -m "my first commit"!
133   git push!
134   !
135   #SSH into your “server” and look at env variables!
136   ssh!
137   !
138   ENV!
139   !
140   #WIN!!
141   !
142

More Related Content

What's hot (20)

PDF
GCE NFS HA
Simon Su
 
PDF
OSS AWS 핸즈온 강의
Juhong Jung
 
PDF
Accumulo Summit Keynote 2018
Accumulo Summit
 
PDF
Node36
beshoy semsem
 
PDF
Ruby on embedded devices rug::b Aug 2014
Eno Thierbach
 
PDF
Build, Ship, and Run Any App, Anywhere using Docker
Rahulkrishnan R A
 
PPTX
zmq.rs - A brief history of concurrency in Rust
Fantix King 王川
 
PDF
Odoo Online platform: architecture and challenges
Odoo
 
DOCX
Bsdtw17: mariusz zaborski: case studies of sandboxing base system with capsicum
Scott Tsai
 
PPTX
15 map reduce on azure
Patrick Bury
 
PDF
Максим Барышиков-«WoT: Geographically distributed cluster of clusters»
Tanya Denisyuk
 
PDF
Logstash: Get to know your logs
SmartLogic
 
ODP
Duplicity
mig5
 
PDF
Caching in Docker - the hardest thing in computer science
Jarek Potiuk
 
PPTX
Nodester Architecture overview & roadmap
cmatthieu
 
PPTX
nodester Architecture overview & roadmap
wearefractal
 
PPTX
HTTP::Parser::XS - writing a fast & secure XS module
Kazuho Oku
 
PDF
Asynchronous IO in Rust - Enrico Risa - Codemotion Rome 2017
Codemotion
 
PPTX
Geek Sync | Using PowerShell with Python and SQL Server
IDERA Software
 
PPTX
Unix training session 3
Anil Kumar Kapil,PMP®
 
GCE NFS HA
Simon Su
 
OSS AWS 핸즈온 강의
Juhong Jung
 
Accumulo Summit Keynote 2018
Accumulo Summit
 
Ruby on embedded devices rug::b Aug 2014
Eno Thierbach
 
Build, Ship, and Run Any App, Anywhere using Docker
Rahulkrishnan R A
 
zmq.rs - A brief history of concurrency in Rust
Fantix King 王川
 
Odoo Online platform: architecture and challenges
Odoo
 
Bsdtw17: mariusz zaborski: case studies of sandboxing base system with capsicum
Scott Tsai
 
15 map reduce on azure
Patrick Bury
 
Максим Барышиков-«WoT: Geographically distributed cluster of clusters»
Tanya Denisyuk
 
Logstash: Get to know your logs
SmartLogic
 
Duplicity
mig5
 
Caching in Docker - the hardest thing in computer science
Jarek Potiuk
 
Nodester Architecture overview & roadmap
cmatthieu
 
nodester Architecture overview & roadmap
wearefractal
 
HTTP::Parser::XS - writing a fast & secure XS module
Kazuho Oku
 
Asynchronous IO in Rust - Enrico Risa - Codemotion Rome 2017
Codemotion
 
Geek Sync | Using PowerShell with Python and SQL Server
IDERA Software
 
Unix training session 3
Anil Kumar Kapil,PMP®
 

Similar to Script for the geomeetup presentation (20)

PDF
Spatial script for CIMA
Steven Pousty
 
PDF
myHadoop 0.30
Glenn K. Lockwood
 
ODT
Spatial script for MongoBoulder
Steven Pousty
 
PDF
Docker composeで開発環境をメンバに配布せよ
Yusuke Kon
 
PPTX
One Click Provisioning With Enterprise Manager 12c
Josh Turner
 
PDF
Spark with Elasticsearch - umd version 2014
Holden Karau
 
PDF
Into The Box 2018 Going live with commandbox and docker
Ortus Solutions, Corp
 
PDF
Going live with BommandBox and docker Into The Box 2018
Ortus Solutions, Corp
 
PPTX
React nativebeginner1
Oswald Campesato
 
PDF
Spatial script for Spatial mongo for PHP and Zend
Steven Pousty
 
PDF
Open shift intro for Philly PUG
Steven Pousty
 
PPTX
Docker for Development
allingeek
 
PDF
Next Generation DevOps in Drupal: DrupalCamp London 2014
Barney Hanlon
 
PPTX
Erlocator
Christian Gribneau
 
PDF
Nodejs - A quick tour (v5)
Felix Geisendörfer
 
PDF
From development environments to production deployments with Docker, Compose,...
Jérôme Petazzoni
 
PDF
Apache Hadoop Shell Rewrite
Allen Wittenauer
 
PDF
Library Operating System for Linux #netdev01
Hajime Tazaki
 
PDF
From Zero To Production (NixOS, Erlang) @ Erlang Factory SF 2016
Susan Potter
 
PDF
Efficient JavaScript Development
wolframkriesing
 
Spatial script for CIMA
Steven Pousty
 
myHadoop 0.30
Glenn K. Lockwood
 
Spatial script for MongoBoulder
Steven Pousty
 
Docker composeで開発環境をメンバに配布せよ
Yusuke Kon
 
One Click Provisioning With Enterprise Manager 12c
Josh Turner
 
Spark with Elasticsearch - umd version 2014
Holden Karau
 
Into The Box 2018 Going live with commandbox and docker
Ortus Solutions, Corp
 
Going live with BommandBox and docker Into The Box 2018
Ortus Solutions, Corp
 
React nativebeginner1
Oswald Campesato
 
Spatial script for Spatial mongo for PHP and Zend
Steven Pousty
 
Open shift intro for Philly PUG
Steven Pousty
 
Docker for Development
allingeek
 
Next Generation DevOps in Drupal: DrupalCamp London 2014
Barney Hanlon
 
Nodejs - A quick tour (v5)
Felix Geisendörfer
 
From development environments to production deployments with Docker, Compose,...
Jérôme Petazzoni
 
Apache Hadoop Shell Rewrite
Allen Wittenauer
 
Library Operating System for Linux #netdev01
Hajime Tazaki
 
From Zero To Production (NixOS, Erlang) @ Erlang Factory SF 2016
Susan Potter
 
Efficient JavaScript Development
wolframkriesing
 
Ad

More from Steven Pousty (16)

PPTX
APPLICATIONS AND CONTAINERS AT SCALE: OpenShift + Kubernetes + Docker
Steven Pousty
 
PDF
Introduction to PaaS for application developers
Steven Pousty
 
PDF
London Cloud Summit 2014 - raising the tide: getting developers in the cloud
Steven Pousty
 
PPT
Workshop For pycon13
Steven Pousty
 
ODP
Build a PaaS with OpenShift Origin
Steven Pousty
 
PPTX
Monkigras - dropping science on your developer ecosystem
Steven Pousty
 
PPTX
Spatial mongo for PHP and Zend
Steven Pousty
 
PPTX
Dropping Science on Your Developer Ecosystem - lessons from Ecosystem Management
Steven Pousty
 
PPT
Open shift intro for Philly PUG
Steven Pousty
 
PPT
Mongo sf spatialmongo
Steven Pousty
 
PDF
Script for Spatial Mongo
Steven Pousty
 
PPTX
OpenShift with Eclipse Tooling - EclipseCon 2012
Steven Pousty
 
PPTX
Free Mongo on OpenShift
Steven Pousty
 
PPTX
deCarta at BAPI
Steven Pousty
 
PPT
LinuxFest NW - Using Postgis To Add Some Spatial Flavor To Your App
Steven Pousty
 
PPT
Using PostGIS To Add Some Spatial Flavor To Your Application
Steven Pousty
 
APPLICATIONS AND CONTAINERS AT SCALE: OpenShift + Kubernetes + Docker
Steven Pousty
 
Introduction to PaaS for application developers
Steven Pousty
 
London Cloud Summit 2014 - raising the tide: getting developers in the cloud
Steven Pousty
 
Workshop For pycon13
Steven Pousty
 
Build a PaaS with OpenShift Origin
Steven Pousty
 
Monkigras - dropping science on your developer ecosystem
Steven Pousty
 
Spatial mongo for PHP and Zend
Steven Pousty
 
Dropping Science on Your Developer Ecosystem - lessons from Ecosystem Management
Steven Pousty
 
Open shift intro for Philly PUG
Steven Pousty
 
Mongo sf spatialmongo
Steven Pousty
 
Script for Spatial Mongo
Steven Pousty
 
OpenShift with Eclipse Tooling - EclipseCon 2012
Steven Pousty
 
Free Mongo on OpenShift
Steven Pousty
 
deCarta at BAPI
Steven Pousty
 
LinuxFest NW - Using Postgis To Add Some Spatial Flavor To Your App
Steven Pousty
 
Using PostGIS To Add Some Spatial Flavor To Your Application
Steven Pousty
 
Ad

Recently uploaded (20)

PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PDF
Per Axbom: The spectacular lies of maps
Nexer Digital
 
PDF
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
PDF
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
PDF
RAT Builders - How to Catch Them All [DeepSec 2024]
malmoeb
 
PDF
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
PDF
Market Insight : ETH Dominance Returns
CIFDAQ
 
PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
PDF
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
PDF
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
PPTX
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PDF
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PPTX
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
PPTX
Agile Chennai 18-19 July 2025 | Workshop - Enhancing Agile Collaboration with...
AgileNetwork
 
PPTX
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
PPTX
Simple and concise overview about Quantum computing..pptx
mughal641
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
Per Axbom: The spectacular lies of maps
Nexer Digital
 
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
RAT Builders - How to Catch Them All [DeepSec 2024]
malmoeb
 
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
Market Insight : ETH Dominance Returns
CIFDAQ
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
Agile Chennai 18-19 July 2025 | Workshop - Enhancing Agile Collaboration with...
AgileNetwork
 
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
Simple and concise overview about Quantum computing..pptx
mughal641
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 

Script for the geomeetup presentation

  • 1. 1 #Sign up! 2 Web UI! 3 ! 4 #####Install the command line tools (you can use the web for some but not all)! 5 Not going to install now. If you are comfortable with Web be aware that you can't complete the whole … flow! 6 ! 7 #####Create a domain ! 8 rhc domain create -n <yourDomainName> -l [email protected] ! 9 ! 10 #####Create an application - both are Java - one is called geoserver, the other is called parks! 11 rhc app create -g medium -t jbossas-7 -a geoserver! 12 ! 13 nodejs-0.6, jbossas-7, python-2.6, jenkins-1.4, ruby-1.8, diy-0.1, php-5.3, perl-5.10! 14 ! 15 #####Add a cartridge if needed - start with Postgresql! 16 rhc app cartridge add -a geoserver -c postgresql-8.4 ! 17 ! 18 mongodb-2.0, cron-1.4, mysql-5.1, postgresql-8.4, haproxy-1.4, 10gen-mms-agent-0.1, phpmyadmin-3.4, … metrics-0.1, rockmongo-1.1, jenkins-client-1.4! 19 ! 20 #####SSH into your “server” and look at env variables! 21 ssh! 22 ! 23 ENV! 24 ! 25 ! 26 ######Here are the instructions for getting wordpress up and running! 27 https://github.com/openshift/wordpress-example! 28 ! 29 ! 30 ! 31 ! 32 ! 33 ####################################################! 34 #####SCP the data files we will need for later exercises! 35 scp parkcoord.sql <ssh string>:/geoserver/data! 36 ! 37 ! 38 #####Make our Postgresql db spatial! 39 ssh into the machine! 40 ! 41 psql -d geoserver -c "create language plpgsql;"! 42 psql -d geoserver -f /usr/share/pgsql/contrib/postgis-64.sql! 43 psql -d geoserver -f /usr/share/pgsql/contrib/spatial_ref_sys.sql! 44 ! 45 ! 46 ######create the table! 47 CREATE TABLE parkpoints! 48 (! 49 gid serial NOT NULL,! 50 name text, -- name of the park! 51 the_geom geometry,! 52 CONSTRAINT parkpts_pk PRIMARY KEY (gid ),! 53 CONSTRAINT enforce_dims_the_geom CHECK (st_ndims(the_geom) = 2),! 54 CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'POINT'::text OR the_geom IS … NULL),! 55 CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 4326)! 56 )! 57 WITH (! 58 OIDS=FALSE! 59 );! 60 ! 61 COMMENT ON COLUMN parkpoints.name IS 'name of the park';! 62 ! 63 #####Make the spatial index!
  • 2. 64 CREATE INDEX parkpoints_spatial_idx ON parkpoints USING gist (the_geom );! 65 ! 66 ######back out to the command line to load the data! 67 psql -f geoserver/data/parkcoord.sql parkpoints! 68 ! 69 #####Go in and do a query! 70 psql geoserver! 71 SELECT gid, name FROM parkpoints WHERE ST_DWithin('SRID=4326;POINT(-103.8 44.6)',the_geom, 1);! 72 ! 73 ####################################################! 74 #####On to MongoDB spatial! 75 ! 76 #####create another app - called parks! 77 rhc app create -g medium -t python-2.6 -a parks! 78 ! 79 nodejs-0.6, jbossas-7, python-2.6, jenkins-1.4, ruby-1.8, diy-0.1, php-5.3, perl-5.10! 80 ! 81 #####Add a cartridge of mongodb! 82 rhc app cartridge add -a parks -c mongodb-2.0! 83 ! 84 #####scp our data up to the server! 85 scp parkcoord.json <ssh string>:parks/data/! 86 ! 87 #####ssh into the machine! 88 ssh <ssh string>! 89 ! 90 #####import into mongo! 91 mongoimport -d parks -c parkpoints --type json --file parks/data/parkcoord.json -h … $OPENSHIFT_NOSQL_DB_HOST -u admin -p <your mongo password>! 92 ! 93 #####open the mongo shell! 94 mongo -u admin -p <your password> $OPENSHIFT_NOSQL_DB_HOST/parks! 95 ! 96 #####build the index! 97 db.parkpoints.ensureIndex({"pos":"2d"});! 98 ! 99 #####Now some queries! 100 #####simple spatial! 101 db.parkpoints.find({"pos" : { "$near" : [-37, 41]}});! 102 ! 103 #####spatial and text query using regex! 104 db.parkpoints.find( { Name : /lincoln/i, pos : { $near : [-37,41] }} );! 105 ! 106 #####geonear TODO! 107 db.runCommand({ geoNear : "parkpoints", near : [-37,41], num : 10 });! 108 ! 109 ! 110 ####################################################! 111 #####Now to load geoserver ! 112 #copy the modified war file into the git deployment directory! 113 #need to add the jboss-services.xml into the war file! ! 114 #Make changes in your git repo! 115 git add .! 116 git commit -m "adding geoserver"! 117 git push! 118 ! 119 #wait for it to deploy! 120 #then hit the url and work away! 121 #let's hook up postgis from before! 122 #preview the layer! 123 ! 124 ! 125 ! 126 ! 127 ! 128 !
  • 3. 129 ! 130 #Make changes in your git repo! 131 git add .! 132 git commit -m "my first commit"! 133 git push! 134 ! 135 #SSH into your “server” and look at env variables! 136 ssh! 137 ! 138 ENV! 139 ! 140 #WIN!! 141 ! 142