Posts

Using WireMock to mock your api's very fast.

 When working in a large integration environment with the need to deliver application modules that communicate with other web apis. WireMock is an excellent tool to quickly mock up those external dependencies with their expected responses and use it as mock service that the main component can integrate with. For example if there is team A and team B and the develop 2 separate service parallel WireMock is a great solution to simulate those nine existing services for each other.  Packaged into a docker image it is very easy to create and deploy to Kubernetes and setup as microservice. Links: https://github.com/wiremock/wiremock https://github.com/wiremock/wiremock-docker

Vault sidekick for Kubernetes

Vault sidekick is a very useful open source container that allows vault users to use this side-car add-on to retrieve secrets from their vault service. It is usually used as an init container to start first and provide the relevant values to the main service that starts later. It was release by the Home Office and being used by many enterprises that using HashiCorp Vault as their secret store. Project location:  https://github.com/UKHomeOffice/vault-sidekick

Terrafrom and Infrastructure as Code

With the availability of cloud APIs that allow users to provision infrastructure via web calls. The concept of infrastructure as code was created and allows cloud users to handle any cloud infrastructure operation as they would with source code for  their applications, This has many great advantages an implementation of this is Terraform an open-source infrastructure as code command line tool, that allows creating of large cloud architectures via declarative configuration files. It also allows those configuration files to be versioned using standard version control means like git. Via its simplicity lets us setup and tear down cloud architectures on demand. Terraform supports all 3 (AWS, Azure, Google cloud) big cloud providers. To get started follow these guides:  https://learn.hashicorp.com/terraform?utm_source=terraform_io&utm_content=terraform_io_hero  

From Esri GeoDatabases to PostGIS and GeoServer

Image
How to migrate from Esri GeoDatabases to PostGIS and GeoServer a webinar from Geosolutions.  

GeoServer 2.18.1 Released

  The latest version of geoserver was released with GeoTools 24.1 and GeoWebCache 1.18.1. Link to the announcement:   http://geoserver.org/announcements/2020/11/23/geoserver-2-18-1-released.html

No output from elasticsearch curator!

I installed Elasticsearch Curator 5.6   to help manage Elasticsearch indexes. I used the RPM  to install on a CentOS 6 docker container and although the yum install was successful. I found that there was no output from curator when executed in command line. After some googling found this ticket: https://github.com/elastic/curator/issues/1243  In summary you need to set the LC_ALL environment variable to a valid value to fix it. #ELK, #curator

OGC CSW query examples

Image
Sometimes you need to talk machine talk to find out what data is available in a public OGC CSW compliant service. First you need to examine the GetCapabilities request response. After that you may want to know how many records are in a particular CSW catalogue. You can do that by using this query: <?xml version="1.0" encoding="UTF-8"?> <csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" service="CSW" version="2.0.2"  resultType=" hits ">   <csw:Query typeNames="csw:Record">   </csw:Query> </csw:GetRecords> NOTE: I highlighted the resultType because that is what determines the type of the response that you get from the service. It tells the service that you want to know the number of the results that match your query and because the query is empty it will be all records. In SQL this would look something like select count(*) from table. Then you may want to d...