Test locally with 15.0.2 instead of 11.0.3
This commit is contained in:
parent
d1be21ace3
commit
6cbebf3b13
@ -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];
|
export type KeycloakVersion = typeof keycloakVersions[number];
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ export function main() {
|
|||||||
generateDebugFiles({
|
generateDebugFiles({
|
||||||
keycloakThemeBuildingDirPath,
|
keycloakThemeBuildingDirPath,
|
||||||
themeName,
|
themeName,
|
||||||
"keycloakVersion": "15.0.1"
|
"keycloakVersion": "15.0.2"
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log([
|
console.log([
|
||||||
@ -112,6 +112,13 @@ export function main() {
|
|||||||
' extraVolumeMounts: |',
|
' extraVolumeMounts: |',
|
||||||
' - name: extensions',
|
' - name: extensions',
|
||||||
' mountPath: /opt/jboss/keycloak/standalone/deployments',
|
' 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:',
|
'To test your theme locally, with hot reloading, you can spin up a Keycloak container image with the theme loaded by running:',
|
||||||
|
@ -7,7 +7,7 @@ export const containerLaunchScriptBasename = "start_keycloak_testing_container.s
|
|||||||
/** Files for being able to run a hot reload keycloak container */
|
/** Files for being able to run a hot reload keycloak container */
|
||||||
export function generateDebugFiles(
|
export function generateDebugFiles(
|
||||||
params: {
|
params: {
|
||||||
keycloakVersion: "11.0.3" | "15.0.1";
|
keycloakVersion: "11.0.3" | "15.0.2";
|
||||||
themeName: string;
|
themeName: string;
|
||||||
keycloakThemeBuildingDirPath: string;
|
keycloakThemeBuildingDirPath: string;
|
||||||
}
|
}
|
||||||
@ -49,13 +49,14 @@ export function generateDebugFiles(
|
|||||||
`docker build . -t ${dockerImage}`,
|
`docker build . -t ${dockerImage}`,
|
||||||
"",
|
"",
|
||||||
"docker run \\",
|
"docker run \\",
|
||||||
" -p 8080:8080 \\",
|
" -p 8080:8080 \\",
|
||||||
` --name ${containerName} \\`,
|
` --name ${containerName} \\`,
|
||||||
" -e KEYCLOAK_USER=admin \\",
|
" -e KEYCLOAK_USER=admin \\",
|
||||||
" -e KEYCLOAK_PASSWORD=admin \\",
|
" -e KEYCLOAK_PASSWORD=admin \\",
|
||||||
` -v ${pathJoin(keycloakThemeBuildingDirPath, "src", "main", "resources", "theme", themeName)
|
" -e JAVA_OPTS=-Dkeycloak.profile=preview \\",
|
||||||
|
` -v ${pathJoin(keycloakThemeBuildingDirPath, "src", "main", "resources", "theme", themeName)
|
||||||
}:/opt/jboss/keycloak/themes/${themeName}:rw \\`,
|
}:/opt/jboss/keycloak/themes/${themeName}:rw \\`,
|
||||||
` -it ${dockerImage}:latest`,
|
` -it ${dockerImage}:latest`,
|
||||||
""
|
""
|
||||||
].join("\n"),
|
].join("\n"),
|
||||||
"utf8"
|
"utf8"
|
||||||
|
@ -23,7 +23,7 @@ export function generateKeycloakThemeResources(
|
|||||||
urlOrigin: undefined | string;
|
urlOrigin: undefined | string;
|
||||||
extraPagesId: string[];
|
extraPagesId: string[];
|
||||||
extraThemeProperties: string[];
|
extraThemeProperties: string[];
|
||||||
keycloakVersion: "11.0.3" | "15.0.1"
|
keycloakVersion: "11.0.3" | "15.0.2"
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
|
|
||||||
|
@ -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 { Evt } from "evt";
|
||||||
import { objectKeys } from "tsafe/objectKeys";
|
import { objectKeys } from "tsafe/objectKeys";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user