1. 1. Introduction
    1. 1.1 OGC Standards
      1. Introduction to OGC
      1. 1.1.1 Web Mapping Service
        1. Introduction to WMS
        2. WMS Examples
      1. 1.1.2 Web Feature Service
        1. Introduction to WFS
        2. WFS Examples
      1. 1.1.3 Web Coverage Service
        1. Introduction to WCS
        2. WCS Examples
      1. 1.1.4 Web Processing Service
        1. Introduction to WPS
        2. WPS Examples
    1. 1.2 CAAML
      1. Introduction to CAAML
    1. 1.3 INSPIRE
      1. Introduction to INSPIRE
  1. 2. Standards in action
    1. 2.1 Prepare data and toolkit
      1. Data and geospatial tools
      2. Start the environment
      1. 2.1.1 Manage the data
        1. Load Data
        2. Clean Data
      1. 2.1.2 Design the CAAML schema
        1. CAAML model design
        2. Populate Region
    1. 2.2 Build CAAML with GeoAvalanche
      1. Configure the application schema for CAAML
      2. Push the configuration to GeoAvalanche
      3. Query our Region features
  1. 3. Main Chapter
    1. Lesson Six

Start the environment

Start components

For running through the steps of the tutorial It is supposed to have a working Kubernetes cluster which serves web applications from an IP address of your host machine.

At the moment the only component that needs to be deployed outside of the cluster is the GeoAvalanche server which is not yet Docker-ready. We can compile it and deploy into an application container like Tomcat.

Preliminary checks

If you are running minikube for a local instance of kubernetes cluster then following these steps:

  1. Start minikube
minikube start
  1. Check the status
minikube status

the result is something like

minikube: Running
cluster: Running
kubectl: Correctly Configured: pointing to minikube-vm at

our host IP address will be

  1. Configure the shell for Docker
eval $(minikube docker-env)


At this point starting an instance of PostGIS is quite simple with a docker command and some configuration parameters for it:

docker run -p 5432:5432 --name caaml-db -e POSTGRES_PASSWORD=geonode -e GEONODE_DATABASE=geonode -e GEONODE_DATABASE_PASSWORD=geonode -e GEONODE_GEODATABASE=caaml_data -e GEONODE_GEODATABASE_PASSWORD=geonode -d geonode/postgis

Important notes are:

  • The server will be available on port 5432 of the host
  • The master use will be postgres with password geonode
  • Our spatial database for CAAML is named caaml_data


Let's start also an utility to work with the previously created database caaml_data:

docker run -p 54321:80 --name caaml-pgadmin4 -e PGADMIN_DEFAULT_PASSWORD=geonode -e PGADMIN_DEFAULT_EMAIL=admin@caaml.org -d dpage/pgadmin4

Important notes:

  • The PGAdmin4 application will be available on port 54321 of the host
  • Login to the console can be done with username admin@caaml.org and password geonode

Check the connection

Login to the console:

login pgadmin4

You can then add a new connection by right-clicking on Servers, then choicing Create and Server:

connection pgadmin

Fill the connection form with the values for accessing the database and give it a name i.e. caaml_tutorial then click the Save button.

# connection parameters
Port: 5432
Username: postgres
Password: geonode

We should see something similar to this dashboard:

database pgadmin