keycloakify 11.8.9 → 11.8.10
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/97.index.js
CHANGED
@@ -1544,16 +1544,19 @@ async function getRealmConfig(params) {
|
|
1544
1544
|
|
1545
1545
|
|
1546
1546
|
async function command(params) {
|
1547
|
-
var _a, _b, _c, _d
|
1547
|
+
var _a, _b, _c, _d;
|
1548
1548
|
exit_if_docker_not_installed: {
|
1549
1549
|
let commandOutput = undefined;
|
1550
1550
|
try {
|
1551
|
-
commandOutput =
|
1551
|
+
commandOutput = external_child_process_.execSync("docker --version", {
|
1552
1552
|
stdio: ["ignore", "pipe", "ignore"]
|
1553
|
-
})
|
1553
|
+
})
|
1554
|
+
.toString("utf8");
|
1555
|
+
}
|
1556
|
+
catch (_e) {
|
1557
|
+
commandOutput = "";
|
1554
1558
|
}
|
1555
|
-
|
1556
|
-
if ((commandOutput === null || commandOutput === void 0 ? void 0 : commandOutput.includes("Docker")) || (commandOutput === null || commandOutput === void 0 ? void 0 : commandOutput.includes("podman"))) {
|
1559
|
+
if (["docker", "podman"].includes(commandOutput.toLowerCase())) {
|
1557
1560
|
break exit_if_docker_not_installed;
|
1558
1561
|
}
|
1559
1562
|
console.log([
|
@@ -1569,7 +1572,7 @@ async function command(params) {
|
|
1569
1572
|
external_child_process_.execSync("docker info", { stdio: "ignore" });
|
1570
1573
|
isDockerRunning = true;
|
1571
1574
|
}
|
1572
|
-
catch (
|
1575
|
+
catch (_f) {
|
1573
1576
|
isDockerRunning = false;
|
1574
1577
|
}
|
1575
1578
|
if (isDockerRunning) {
|
@@ -1786,8 +1789,8 @@ async function command(params) {
|
|
1786
1789
|
stdio: "ignore"
|
1787
1790
|
});
|
1788
1791
|
}
|
1789
|
-
catch (
|
1790
|
-
const port = (
|
1792
|
+
catch (_g) { }
|
1793
|
+
const port = (_b = (_a = cliCommandOptions.port) !== null && _a !== void 0 ? _a : buildContext.startKeycloakOptions.port) !== null && _b !== void 0 ? _b : 8080;
|
1791
1794
|
const doStartDevServer = (() => {
|
1792
1795
|
const hasSpaUi = buildContext.implementedThemeTypes.admin.isImplemented ||
|
1793
1796
|
(buildContext.implementedThemeTypes.account.isImplemented &&
|
@@ -1867,7 +1870,7 @@ async function command(params) {
|
|
1867
1870
|
.map(({ name, envValue }) => envValue === undefined ? undefined : { name, envValue })
|
1868
1871
|
.filter((0,exclude/* exclude */.D)(undefined))
|
1869
1872
|
.map(({ name, envValue }) => `--env${SPACE_PLACEHOLDER}${name}='${envValue.replace(/'/g, "'\\''")}'`),
|
1870
|
-
`${(
|
1873
|
+
`${(_d = (_c = buildContext.startKeycloakOptions.dockerImage) === null || _c === void 0 ? void 0 : _c.reference) !== null && _d !== void 0 ? _d : "quay.io/keycloak/keycloak"}:${dockerImageTag}`,
|
1871
1874
|
"start-dev",
|
1872
1875
|
...(21 <= keycloakMajorVersionNumber && keycloakMajorVersionNumber < 24
|
1873
1876
|
? ["--features=declarative-user-profile"]
|
package/package.json
CHANGED
@@ -53,10 +53,12 @@ export async function command(params: {
|
|
53
53
|
.execSync("docker --version", {
|
54
54
|
stdio: ["ignore", "pipe", "ignore"]
|
55
55
|
})
|
56
|
-
|
57
|
-
} catch {
|
56
|
+
.toString("utf8");
|
57
|
+
} catch {
|
58
|
+
commandOutput = "";
|
59
|
+
}
|
58
60
|
|
59
|
-
if (
|
61
|
+
if (["docker", "podman"].includes(commandOutput.toLowerCase())) {
|
60
62
|
break exit_if_docker_not_installed;
|
61
63
|
}
|
62
64
|
|