keycloakify 10.1.0 → 10.1.1
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/bin/526.index.js
CHANGED
@@ -218,16 +218,16 @@ var downloadAndExtractArchive = __webpack_require__(38367);
|
|
218
218
|
|
219
219
|
|
220
220
|
async function command(params) {
|
221
|
-
var _a, _b, _c, _d;
|
221
|
+
var _a, _b, _c, _d, _e;
|
222
222
|
exit_if_docker_not_installed: {
|
223
223
|
let commandOutput = undefined;
|
224
224
|
try {
|
225
|
-
commandOutput = external_child_process_.execSync("docker --version", {
|
225
|
+
commandOutput = (_a = external_child_process_.execSync("docker --version", {
|
226
226
|
stdio: ["ignore", "pipe", "ignore"]
|
227
|
-
});
|
227
|
+
})) === null || _a === void 0 ? void 0 : _a.toString("utf8");
|
228
228
|
}
|
229
|
-
catch (
|
230
|
-
if (commandOutput === null || commandOutput === void 0 ? void 0 : commandOutput.
|
229
|
+
catch (_f) { }
|
230
|
+
if ((commandOutput === null || commandOutput === void 0 ? void 0 : commandOutput.includes("Docker")) || (commandOutput === null || commandOutput === void 0 ? void 0 : commandOutput.includes("podman"))) {
|
231
231
|
break exit_if_docker_not_installed;
|
232
232
|
}
|
233
233
|
console.log([
|
@@ -243,7 +243,7 @@ async function command(params) {
|
|
243
243
|
external_child_process_.execSync("docker info", { stdio: "ignore" });
|
244
244
|
isDockerRunning = true;
|
245
245
|
}
|
246
|
-
catch (
|
246
|
+
catch (_g) {
|
247
247
|
isDockerRunning = false;
|
248
248
|
}
|
249
249
|
if (isDockerRunning) {
|
@@ -429,9 +429,9 @@ async function command(params) {
|
|
429
429
|
stdio: "ignore"
|
430
430
|
});
|
431
431
|
}
|
432
|
-
catch (
|
432
|
+
catch (_h) { }
|
433
433
|
const DEFAULT_PORT = 8080;
|
434
|
-
const port = (
|
434
|
+
const port = (_c = (_b = cliCommandOptions.port) !== null && _b !== void 0 ? _b : buildContext.startKeycloakOptions.port) !== null && _c !== void 0 ? _c : DEFAULT_PORT;
|
435
435
|
const SPACE_PLACEHOLDER = "SPACE_PLACEHOLDER_xKLmdPd";
|
436
436
|
const dockerRunArgs = [
|
437
437
|
`-p${SPACE_PLACEHOLDER}${port}:8080`,
|
@@ -469,7 +469,7 @@ async function command(params) {
|
|
469
469
|
.map(({ name, envValue }) => envValue === undefined ? undefined : { name, envValue })
|
470
470
|
.filter((0,exclude.exclude)(undefined))
|
471
471
|
.map(({ name, envValue }) => `--env${SPACE_PLACEHOLDER}${name}='${envValue.replace(/'/g, "'\\''")}'`),
|
472
|
-
`${(
|
472
|
+
`${(_e = (_d = buildContext.startKeycloakOptions.dockerImage) === null || _d === void 0 ? void 0 : _d.reference) !== null && _e !== void 0 ? _e : "quay.io/keycloak/keycloak"}:${dockerImageTag}`,
|
473
473
|
"start-dev",
|
474
474
|
...(21 <= keycloakMajorVersionNumber && keycloakMajorVersionNumber < 24
|
475
475
|
? ["--features=declarative-user-profile"]
|
package/package.json
CHANGED
@@ -37,15 +37,17 @@ export type CliCommandOptions = CliCommandOptions_common & {
|
|
37
37
|
|
38
38
|
export async function command(params: { cliCommandOptions: CliCommandOptions }) {
|
39
39
|
exit_if_docker_not_installed: {
|
40
|
-
let commandOutput:
|
40
|
+
let commandOutput: string | undefined = undefined;
|
41
41
|
|
42
42
|
try {
|
43
|
-
commandOutput = child_process
|
44
|
-
|
45
|
-
|
43
|
+
commandOutput = child_process
|
44
|
+
.execSync("docker --version", {
|
45
|
+
stdio: ["ignore", "pipe", "ignore"]
|
46
|
+
})
|
47
|
+
?.toString("utf8");
|
46
48
|
} catch {}
|
47
49
|
|
48
|
-
if (commandOutput?.
|
50
|
+
if (commandOutput?.includes("Docker") || commandOutput?.includes("podman")) {
|
49
51
|
break exit_if_docker_not_installed;
|
50
52
|
}
|
51
53
|
|