keycloakify 11.8.9 → 11.8.11
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 +16 -10
- package/package.json +1 -1
- package/src/bin/start-keycloak/start-keycloak.ts +10 -4
package/bin/97.index.js
CHANGED
@@ -1544,17 +1544,23 @@ 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");
|
1554
1555
|
}
|
1555
|
-
catch (
|
1556
|
-
|
1557
|
-
|
1556
|
+
catch (_e) {
|
1557
|
+
commandOutput = "";
|
1558
|
+
}
|
1559
|
+
commandOutput = commandOutput.trim().toLowerCase();
|
1560
|
+
for (const term of ["docker", "podman"]) {
|
1561
|
+
if (commandOutput.includes(term)) {
|
1562
|
+
break exit_if_docker_not_installed;
|
1563
|
+
}
|
1558
1564
|
}
|
1559
1565
|
console.log([
|
1560
1566
|
`${source_default().red("Docker required.")}`,
|
@@ -1569,7 +1575,7 @@ async function command(params) {
|
|
1569
1575
|
external_child_process_.execSync("docker info", { stdio: "ignore" });
|
1570
1576
|
isDockerRunning = true;
|
1571
1577
|
}
|
1572
|
-
catch (
|
1578
|
+
catch (_f) {
|
1573
1579
|
isDockerRunning = false;
|
1574
1580
|
}
|
1575
1581
|
if (isDockerRunning) {
|
@@ -1786,8 +1792,8 @@ async function command(params) {
|
|
1786
1792
|
stdio: "ignore"
|
1787
1793
|
});
|
1788
1794
|
}
|
1789
|
-
catch (
|
1790
|
-
const port = (
|
1795
|
+
catch (_g) { }
|
1796
|
+
const port = (_b = (_a = cliCommandOptions.port) !== null && _a !== void 0 ? _a : buildContext.startKeycloakOptions.port) !== null && _b !== void 0 ? _b : 8080;
|
1791
1797
|
const doStartDevServer = (() => {
|
1792
1798
|
const hasSpaUi = buildContext.implementedThemeTypes.admin.isImplemented ||
|
1793
1799
|
(buildContext.implementedThemeTypes.account.isImplemented &&
|
@@ -1867,7 +1873,7 @@ async function command(params) {
|
|
1867
1873
|
.map(({ name, envValue }) => envValue === undefined ? undefined : { name, envValue })
|
1868
1874
|
.filter((0,exclude/* exclude */.D)(undefined))
|
1869
1875
|
.map(({ name, envValue }) => `--env${SPACE_PLACEHOLDER}${name}='${envValue.replace(/'/g, "'\\''")}'`),
|
1870
|
-
`${(
|
1876
|
+
`${(_d = (_c = buildContext.startKeycloakOptions.dockerImage) === null || _c === void 0 ? void 0 : _c.reference) !== null && _d !== void 0 ? _d : "quay.io/keycloak/keycloak"}:${dockerImageTag}`,
|
1871
1877
|
"start-dev",
|
1872
1878
|
...(21 <= keycloakMajorVersionNumber && keycloakMajorVersionNumber < 24
|
1873
1879
|
? ["--features=declarative-user-profile"]
|
package/package.json
CHANGED
@@ -53,11 +53,17 @@ 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
|
-
|
60
|
-
|
61
|
+
commandOutput = commandOutput.trim().toLowerCase();
|
62
|
+
|
63
|
+
for (const term of ["docker", "podman"]) {
|
64
|
+
if (commandOutput.includes(term)) {
|
65
|
+
break exit_if_docker_not_installed;
|
66
|
+
}
|
61
67
|
}
|
62
68
|
|
63
69
|
console.log(
|