keycloakify 11.15.4 → 11.15.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/bin/375.index.js +8 -6
- package/bin/502.index.js +2 -1
- package/bin/97.index.js +2 -1
- package/package.json +1 -1
- package/src/bin/start-keycloak/appBuild.ts +1 -1
- package/src/bin/start-keycloak/keycloakifyBuild.ts +1 -1
- package/src/bin/start-keycloak/realmConfig/dumpContainerConfig.ts +18 -21
- package/src/bin/start-keycloak/start-keycloak.ts +2 -2
- package/src/bin/start-keycloak/startViteDevServer.ts +1 -1
- package/src/bin/tools/npmInstall.ts +2 -2
package/README.md
CHANGED
|
@@ -147,6 +147,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
147
147
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/LennartMart"><img src="https://avatars.githubusercontent.com/u/1591933?v=4?s=100" width="100px;" alt="LennartMart"/><br /><sub><b>LennartMart</b></sub></a><br /><a href="https://github.com/keycloakify/keycloakify/commits?author=LennartMart" title="Code">💻</a></td>
|
|
148
148
|
<td align="center" valign="top" width="14.28%"><a href="https://federicobartoli.it/"><img src="https://avatars.githubusercontent.com/u/27234034?v=4?s=100" width="100px;" alt="Federico Bartoli"/><br /><sub><b>Federico Bartoli</b></sub></a><br /><a href="https://github.com/keycloakify/keycloakify/commits?author=federicobartoli" title="Code">💻</a></td>
|
|
149
149
|
<td align="center" valign="top" width="14.28%"><a href="https://www.oussemasahbeni.com"><img src="https://avatars.githubusercontent.com/u/104161749?v=4?s=100" width="100px;" alt="Oussema Sahbeni"/><br /><sub><b>Oussema Sahbeni</b></sub></a><br /><a href="https://github.com/keycloakify/keycloakify/commits?author=Oussemasahbeni" title="Code">💻</a></td>
|
|
150
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/githrdw"><img src="https://avatars.githubusercontent.com/u/1455140?v=4?s=100" width="100px;" alt="githrdw"/><br /><sub><b>githrdw</b></sub></a><br /><a href="https://github.com/keycloakify/keycloakify/commits?author=githrdw" title="Code">💻</a></td>
|
|
150
151
|
</tr>
|
|
151
152
|
</tbody>
|
|
152
153
|
</table>
|
package/bin/375.index.js
CHANGED
|
@@ -249,7 +249,7 @@ async function appBuild(params) {
|
|
|
249
249
|
}
|
|
250
250
|
const dIsSuccess = new Deferred.Deferred();
|
|
251
251
|
console.log(source_default().blue("$ npx vite build"));
|
|
252
|
-
const child = external_child_process_.spawn("npx
|
|
252
|
+
const child = external_child_process_.spawn("npx vite build", {
|
|
253
253
|
cwd: buildContext.projectDirPath,
|
|
254
254
|
shell: true
|
|
255
255
|
});
|
|
@@ -311,7 +311,7 @@ async function keycloakifyBuild(params) {
|
|
|
311
311
|
const { buildForKeycloakMajorVersionNumber, buildContext } = params;
|
|
312
312
|
const dResult = new Deferred.Deferred();
|
|
313
313
|
console.log(source_default().blue("$ npx keycloakify build"));
|
|
314
|
-
const child = external_child_process_.spawn("npx
|
|
314
|
+
const child = external_child_process_.spawn("npx keycloakify build", {
|
|
315
315
|
cwd: buildContext.projectDirPath,
|
|
316
316
|
env: Object.assign(Object.assign({}, process.env), { [constants/* BUILD_FOR_KEYCLOAK_MAJOR_VERSION_ENV_NAME */.ac]: `${buildForKeycloakMajorVersionNumber}` }),
|
|
317
317
|
shell: true
|
|
@@ -536,7 +536,7 @@ var SuccessTracker;
|
|
|
536
536
|
function startViteDevServer(params) {
|
|
537
537
|
const { buildContext } = params;
|
|
538
538
|
console.log(source_default().blue(`$ npx vite dev`));
|
|
539
|
-
const child = external_child_process_.spawn("npx
|
|
539
|
+
const child = external_child_process_.spawn("npx vite dev", {
|
|
540
540
|
cwd: buildContext.projectDirPath,
|
|
541
541
|
env: Object.assign(Object.assign({}, process.env), { [constants/* VITE_PLUGIN_SUB_SCRIPTS_ENV_NAMES.READ_KC_CONTEXT_FROM_URL */.TE.READ_KC_CONTEXT_FROM_URL]: "true" }),
|
|
542
542
|
shell: true
|
|
@@ -1327,7 +1327,7 @@ async function dumpContainerConfig(params) {
|
|
|
1327
1327
|
}
|
|
1328
1328
|
{
|
|
1329
1329
|
const dCompleted = new Deferred.Deferred();
|
|
1330
|
-
const
|
|
1330
|
+
const dockerArguments = [
|
|
1331
1331
|
...["exec", constants/* CONTAINER_NAME */.sv],
|
|
1332
1332
|
...["/opt/keycloak/bin/kc.sh", "export"],
|
|
1333
1333
|
...["--dir", "/tmp"],
|
|
@@ -1342,7 +1342,8 @@ async function dumpContainerConfig(params) {
|
|
|
1342
1342
|
'"jdbc:h2:file:/tmp/h2/keycloakdb;NON_KEYWORDS=VALUE"'
|
|
1343
1343
|
]
|
|
1344
1344
|
])
|
|
1345
|
-
]
|
|
1345
|
+
];
|
|
1346
|
+
const child = external_child_process_default().spawn("docker " + dockerArguments.join(" "), { shell: true });
|
|
1346
1347
|
let output = "";
|
|
1347
1348
|
const onExit = (code) => {
|
|
1348
1349
|
dCompleted.reject(new Error(`docker exec kc.sh export command failed with code ${code}`));
|
|
@@ -1909,7 +1910,8 @@ async function command(params) {
|
|
|
1909
1910
|
.map(arg => arg.replace(new RegExp(SPACE_PLACEHOLDER, "g"), " "))
|
|
1910
1911
|
.map((line, i, arr) => ` ${line}${arr.length - 1 === i ? "" : " \\"}`)
|
|
1911
1912
|
].join("\n")));
|
|
1912
|
-
const child = external_child_process_.spawn("docker
|
|
1913
|
+
const child = external_child_process_.spawn("docker run " +
|
|
1914
|
+
dockerRunArgs.map(line => line.split(SPACE_PLACEHOLDER)).flat().join(" "), { shell: true });
|
|
1913
1915
|
child.stdout.on("data", async (data) => {
|
|
1914
1916
|
if (data.toString("utf8").includes("keycloakify-logging: REALM_CONFIG_CHANGED")) {
|
|
1915
1917
|
await onRealmConfigChange();
|
package/bin/502.index.js
CHANGED
|
@@ -301,7 +301,8 @@ async function npmInstall(params) {
|
|
|
301
301
|
async function runPackageManagerInstall(params) {
|
|
302
302
|
const { packageManagerBinName, cwd } = params;
|
|
303
303
|
const dCompleted = new Deferred.Deferred();
|
|
304
|
-
const
|
|
304
|
+
const packageManagerArguments = ["install", ...(packageManagerBinName !== "npm" ? [] : ["--force"])];
|
|
305
|
+
const child = external_child_process_.spawn(packageManagerBinName + " " + packageManagerArguments.join(" "), {
|
|
305
306
|
cwd,
|
|
306
307
|
env: process.env,
|
|
307
308
|
shell: true
|
package/bin/97.index.js
CHANGED
|
@@ -1146,7 +1146,8 @@ async function npmInstall(params) {
|
|
|
1146
1146
|
async function runPackageManagerInstall(params) {
|
|
1147
1147
|
const { packageManagerBinName, cwd } = params;
|
|
1148
1148
|
const dCompleted = new Deferred.Deferred();
|
|
1149
|
-
const
|
|
1149
|
+
const packageManagerArguments = ["install", ...(packageManagerBinName !== "npm" ? [] : ["--force"])];
|
|
1150
|
+
const child = external_child_process_.spawn(packageManagerBinName + " " + packageManagerArguments.join(" "), {
|
|
1150
1151
|
cwd,
|
|
1151
1152
|
env: process.env,
|
|
1152
1153
|
shell: true
|
package/package.json
CHANGED
|
@@ -152,7 +152,7 @@ export async function appBuild(params: {
|
|
|
152
152
|
|
|
153
153
|
console.log(chalk.blue("$ npx vite build"));
|
|
154
154
|
|
|
155
|
-
const child = child_process.spawn("npx
|
|
155
|
+
const child = child_process.spawn("npx vite build", {
|
|
156
156
|
cwd: buildContext.projectDirPath,
|
|
157
157
|
shell: true
|
|
158
158
|
});
|
|
@@ -22,7 +22,7 @@ export async function keycloakifyBuild(params: {
|
|
|
22
22
|
|
|
23
23
|
console.log(chalk.blue("$ npx keycloakify build"));
|
|
24
24
|
|
|
25
|
-
const child = child_process.spawn("npx
|
|
25
|
+
const child = child_process.spawn("npx keycloakify build", {
|
|
26
26
|
cwd: buildContext.projectDirPath,
|
|
27
27
|
env: {
|
|
28
28
|
...process.env,
|
|
@@ -52,27 +52,24 @@ export async function dumpContainerConfig(params: {
|
|
|
52
52
|
|
|
53
53
|
{
|
|
54
54
|
const dCompleted = new Deferred<void>();
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
[
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
],
|
|
74
|
-
{ shell: true }
|
|
75
|
-
);
|
|
55
|
+
const dockerArguments = [
|
|
56
|
+
...["exec", CONTAINER_NAME],
|
|
57
|
+
...["/opt/keycloak/bin/kc.sh", "export"],
|
|
58
|
+
...["--dir", "/tmp"],
|
|
59
|
+
...["--realm", realmName],
|
|
60
|
+
...["--users", "realm_file"],
|
|
61
|
+
...(!doesUseLockedH2Database
|
|
62
|
+
? []
|
|
63
|
+
: [
|
|
64
|
+
...["--db", "dev-file"],
|
|
65
|
+
...[
|
|
66
|
+
"--db-url",
|
|
67
|
+
'"jdbc:h2:file:/tmp/h2/keycloakdb;NON_KEYWORDS=VALUE"'
|
|
68
|
+
]
|
|
69
|
+
])
|
|
70
|
+
];
|
|
71
|
+
|
|
72
|
+
const child = child_process.spawn("docker " + dockerArguments.join(" "), { shell: true });
|
|
76
73
|
|
|
77
74
|
let output = "";
|
|
78
75
|
|
|
@@ -621,8 +621,8 @@ export async function command(params: {
|
|
|
621
621
|
);
|
|
622
622
|
|
|
623
623
|
const child = child_process.spawn(
|
|
624
|
-
"docker"
|
|
625
|
-
|
|
624
|
+
"docker run " +
|
|
625
|
+
dockerRunArgs.map(line => line.split(SPACE_PLACEHOLDER)).flat().join(" "),
|
|
626
626
|
{ shell: true }
|
|
627
627
|
);
|
|
628
628
|
|
|
@@ -18,7 +18,7 @@ export function startViteDevServer(params: {
|
|
|
18
18
|
|
|
19
19
|
console.log(chalk.blue(`$ npx vite dev`));
|
|
20
20
|
|
|
21
|
-
const child = child_process.spawn("npx
|
|
21
|
+
const child = child_process.spawn("npx vite dev", {
|
|
22
22
|
cwd: buildContext.projectDirPath,
|
|
23
23
|
env: {
|
|
24
24
|
...process.env,
|
|
@@ -98,10 +98,10 @@ async function runPackageManagerInstall(params: {
|
|
|
98
98
|
const { packageManagerBinName, cwd } = params;
|
|
99
99
|
|
|
100
100
|
const dCompleted = new Deferred<void>();
|
|
101
|
+
const packageManagerArguments = ["install", ...(packageManagerBinName !== "npm" ? [] : ["--force"])];
|
|
101
102
|
|
|
102
103
|
const child = child_process.spawn(
|
|
103
|
-
packageManagerBinName,
|
|
104
|
-
["install", ...(packageManagerBinName !== "npm" ? [] : ["--force"])],
|
|
104
|
+
packageManagerBinName + " " + packageManagerArguments.join(" "),
|
|
105
105
|
{
|
|
106
106
|
cwd,
|
|
107
107
|
env: process.env,
|