1
Some checks failed
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/build Pipeline failed

1
This commit is contained in:
Stephan Schnabel 2025-05-30 20:53:29 +02:00
parent a119d022f6
commit a7a23e1476
Signed by: stephan.schnabel
SSH key fingerprint: SHA256:99zuzxNGFb5/5P+E/O7ONU2qhUojUe/D8rIPTW+9Xp0
2 changed files with 4 additions and 5 deletions

View file

@ -13,8 +13,8 @@ steps:
build: build:
image: maven:3.9.9-eclipse-temurin-17 image: maven:3.9.9-eclipse-temurin-17
commands: commands:
- env | sort - DOCKER_HOST=tls://$(env|grep DOCKERD_SERVICE_HOST|cut -d= -f2):2375 env | sort
- mvn deploy --settings=.woodpecker/maven/settings.xml - DOCKER_HOST=tls://$(env|grep DOCKERD_SERVICE_HOST|cut -d= -f2):2375 mvn deploy --settings=.woodpecker/maven/settings.xml
environment: environment:
NEXUS_USERNAME: {from_secret: nexus_username} NEXUS_USERNAME: {from_secret: nexus_username}
NEXUS_PASSWORD: {from_secret: nexus_password} NEXUS_PASSWORD: {from_secret: nexus_password}

View file

@ -57,8 +57,7 @@ public class KeycloakExtension implements BeforeAllCallback, ParameterResolver {
if (System.getenv("CI") != null) { if (System.getenv("CI") != null) {
// use fixed port and hostname in ci // use fixed port and hostname in ci
container = new FixedHostPortGenericContainer<>(image) container = new FixedHostPortGenericContainer<>(image)
.withFixedExposedPort(8080, 8080) .withFixedExposedPort(8080, 8080);
.withCreateContainerCmdModifier(c -> c.withName("keycloak"));
} }
container.withEnv("KEYCLOAK_ADMIN", "admin") container.withEnv("KEYCLOAK_ADMIN", "admin")
.withEnv("KEYCLOAK_ADMIN_PASSWORD", "password") .withEnv("KEYCLOAK_ADMIN_PASSWORD", "password")
@ -72,7 +71,7 @@ public class KeycloakExtension implements BeforeAllCallback, ParameterResolver {
.withCopyFileToContainer(MountableFile.forHostPath(jar), "/opt/keycloak/providers/metrics.jar") .withCopyFileToContainer(MountableFile.forHostPath(jar), "/opt/keycloak/providers/metrics.jar")
.withLogConsumer(out -> System.out.print(out.getUtf8String())) .withLogConsumer(out -> System.out.print(out.getUtf8String()))
.withStartupTimeout(Duration.parse(timeout)) .withStartupTimeout(Duration.parse(timeout))
.waitingFor(Wait.forHttp("/health").forPort(8080)) .waitingFor(Wait.forHttp("/health").forPort(8080).withStartupTimeout(Duration.ofMinutes(5)))
.withCommand("start-dev"); .withCommand("start-dev");
try { try {
container.start(); container.start();