Skip to content

Instantly share code, notes, and snippets.

View ArnauAregall's full-sized avatar

Arnau Aregall ArnauAregall

View GitHub Profile
@sarath-soman
sarath-soman / docker-compose.yml
Last active March 31, 2025 11:20
Keycloak docker compose with health checks
# Keycloak containers doesn't come with curl or wget in it, this forces the users to use alternative mechanisms to realise
# health check for the keycloak standard containers. This example leverages the capability of modern Java to dynamically
# compile a *.java source file and execute it on the fly using the `java` command. The HealthCheck class uses
# java.net.URL to open a connection to the `health/live` endpoint of keycloak and exits the process with a non-zero status
# if the http status is not `Ok`
version: '3'
services:
############################
# Keycloak service
############################
@msailes
msailes / LocalEndToEndTest.java
Created June 14, 2023 11:29
Local end to end testing for Lambda handlers. This is useful to test how your events will be serialized by the managed runtime.
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: MIT-0
package helloworld;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.testcontainers.containers.localstack.LocalStackContainer;
import org.testcontainers.junit.jupiter.Container;
import org.testcontainers.junit.jupiter.Testcontainers;
@TomyJaya
TomyJaya / spring-data-rest-notes.md
Last active February 26, 2025 09:40
Spring Data REST - Useful notes

How To change baseUri:

in application.properties add:

spring.data.rest.basePath=/api
  • or -

in application.yml add: