Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/maven.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ jobs:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Build with Maven root project
- name: Build root project with Maven
run: mvn -B package --file pom.xml
- name: Build with Maven boot project
- name: Build boot-examples with Maven
run: cd boot-examples && mvn -B package --file pom.xml
- name: Build with Maven kafka project
- name: Build kafka project with Maven
run: cd kafka && mvn -B package --file pom.xml
- name: Build with Maven auth-server project
- name: Build auth-server project with Maven
run: cd authz-server && mvn -B package --file pom.xml
- name: Build keycloak project with Maven
run: cd keycloak && mvn -B package --file pom.xml
54 changes: 54 additions & 0 deletions keycloak/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.4.2</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.ftm.vcp</groupId>
<artifactId>keycloak</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>keycloak</name>
<description>keycloak</description>
<url/>
<licenses>
<license/>
</licenses>
<developers>
<developer/>
</developers>
<scm>
<connection/>
<developerConnection/>
<tag/>
<url/>
</scm>
<properties>
<java.version>21</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.ftm.vcp.keycloak;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class KeycloakApplication {

public static void main(String[] args) {
SpringApplication.run(KeycloakApplication.class, args);
}

}
2 changes: 2 additions & 0 deletions keycloak/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
server:
port: 8889
22 changes: 22 additions & 0 deletions keycloak/src/main/resources/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: local-keycloak

services:
postgresql:
image: docker.io/bitnami/postgresql:17.2.0
environment:
- ALLOW_EMPTY_PASSWORD=yes
- POSTGRESQL_USERNAME=bn_keycloak
- POSTGRESQL_DATABASE=bitnami_keycloak
volumes:
- 'postgresql_data:/bitnami/postgresql'
keycloak:
image: docker.io/bitnami/keycloak:26.1.1
ports:
- "80:8080"
environment:
- KEYCLOAK_CREATE_ADMIN_USER=true
depends_on:
- postgresql
volumes:
postgresql_data:
driver: local
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.ftm.vcp.keycloak;

import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
class KeycloakApplicationTests {

@Test
void contextLoads() {
}

}