Test locally with 15.0.2 instead of 11.0.3

This commit is contained in:
garronej 2021-10-07 15:37:35 +02:00
parent d1be21ace3
commit 6cbebf3b13
10 changed files with 19 additions and 11 deletions

View File

@ -1,5 +1,5 @@
export const keycloakVersions = ["11.0.3", "15.0.1"] as const;
export const keycloakVersions = ["11.0.3", "15.0.2"] as const;
export type KeycloakVersion = typeof keycloakVersions[number];

View File

@ -85,7 +85,7 @@ export function main() {
generateDebugFiles({
keycloakThemeBuildingDirPath,
themeName,
"keycloakVersion": "15.0.1"
"keycloakVersion": "15.0.2"
});
console.log([
@ -112,6 +112,13 @@ export function main() {
' extraVolumeMounts: |',
' - name: extensions',
' mountPath: /opt/jboss/keycloak/standalone/deployments',
' extraEnv: |',
' - name: KEYCLOAK_USER',
' value: admin',
' - name: KEYCLOAK_PASSWORD',
' value: xxxxxxxxx',
' - name: JAVA_OPTS',
' value: -Dkeycloak.profile=preview',
'',
'',
'To test your theme locally, with hot reloading, you can spin up a Keycloak container image with the theme loaded by running:',

View File

@ -7,7 +7,7 @@ export const containerLaunchScriptBasename = "start_keycloak_testing_container.s
/** Files for being able to run a hot reload keycloak container */
export function generateDebugFiles(
params: {
keycloakVersion: "11.0.3" | "15.0.1";
keycloakVersion: "11.0.3" | "15.0.2";
themeName: string;
keycloakThemeBuildingDirPath: string;
}
@ -53,6 +53,7 @@ export function generateDebugFiles(
` --name ${containerName} \\`,
" -e KEYCLOAK_USER=admin \\",
" -e KEYCLOAK_PASSWORD=admin \\",
" -e JAVA_OPTS=-Dkeycloak.profile=preview \\",
` -v ${pathJoin(keycloakThemeBuildingDirPath, "src", "main", "resources", "theme", themeName)
}:/opt/jboss/keycloak/themes/${themeName}:rw \\`,
` -it ${dockerImage}:latest`,

View File

@ -23,7 +23,7 @@ export function generateKeycloakThemeResources(
urlOrigin: undefined | string;
extraPagesId: string[];
extraThemeProperties: string[];
keycloakVersion: "11.0.3" | "15.0.1"
keycloakVersion: "11.0.3" | "15.0.2"
}
) {

View File

@ -1,5 +1,5 @@
import { kcMessages } from "../generated_kcMessages/15.0.1/login";
import { kcMessages } from "../generated_kcMessages/15.0.2/login";
import { Evt } from "evt";
import { objectKeys } from "tsafe/objectKeys";