1
1
This commit is contained in:
parent
a119d022f6
commit
a7a23e1476
2 changed files with 4 additions and 5 deletions
|
@ -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}
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue