Extracting memory usage from docker stats using bash tricks
docker stats is a docker cli command that provides resource usage statistics for the current running containers. docker stats provides only the current time data, and...
Golang tale: why cgo may not be your friend?
cgo is a set of packages and syntactic conventions that allow to call c or c++ code from Golang code. While this may be useful for wrapping c/c++ librairies, it...
Extending Keycloak (continued): using a custom email sender
Introduction In the last post Extending Keycloak: adding API key authentication, I took a glimpse at how to extend Keycloak with a custom authentication method. I would like...
Extending Keycloak: adding API key authentication
Background API key authentication is one of the simplest ways for securing access to resources and APIs. The principle is simple: you are provided with a static key that...
Setting up AWS SQS as a Lambda event source from AWS CLI
AWS was one of the first movers into the serveless world with Lambda. Lambda functions can be a great complement to applications for integrating different components or loosening the load...
Testing a Spring Data Mongo repository with embedded Mongo on a custom port
Background: Since version 1.4, Spring Boot introduced the concept of test slices. Spring context can be costly to bootstrap with every test, especially in large applications. Test slices allows...
Good reasons to use Karate for integration testing
In the previous post, I talked briefly about Karate DSL testing framework and its usage. In this post, I would like to share my opinion about why Karate...
Open source contribution note: overview of my latest contribution to Karate (testing framework)
Karate is a testing framework that borrows concepts from behavior based developement testing and applies them to the context of Rest APIs. While getting familiar with the framework recently, I...
Creating a private docker registry without a DNS domain (Ip address only)
Background If you are developping applications with multiple teams involved or using tools like Kubernetes, then making use of a docker registry is a must. If you have enough...
Using Guice with Jersey 2 (Part 2): guice-bridge library
Introduction The previous post “Using Guice with Jersey 2, without external librairies” proposed a trick to integrate Guice into Jersey2 dependency injection system (HK2) without helpers or libraries....