@geekmidas/cli 10.0.0-alpha.150 → 10.0.0-alpha.152
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/dist/{GoDaddyProvider-W0Dxd5v9.mjs → GoDaddyProvider-DHDuEgOS.mjs} +2 -2
- package/dist/{GoDaddyProvider-W0Dxd5v9.mjs.map → GoDaddyProvider-DHDuEgOS.mjs.map} +1 -1
- package/dist/{GoDaddyProvider-CytuBrRm.cjs → GoDaddyProvider-F9XB8Od5.cjs} +2 -2
- package/dist/{GoDaddyProvider-CytuBrRm.cjs.map → GoDaddyProvider-F9XB8Od5.cjs.map} +1 -1
- package/dist/{HostingerProvider-DaQr2ueR.mjs → HostingerProvider-C0ZbaQBj.mjs} +2 -2
- package/dist/{HostingerProvider-DaQr2ueR.mjs.map → HostingerProvider-C0ZbaQBj.mjs.map} +1 -1
- package/dist/{HostingerProvider-CCc9xoBN.cjs → HostingerProvider-Cf8JZHII.cjs} +2 -2
- package/dist/{HostingerProvider-CCc9xoBN.cjs.map → HostingerProvider-Cf8JZHII.cjs.map} +1 -1
- package/dist/{LegacyStateStore-BTcTbCGk.mjs → LegacyStateStore-CL8pSB1w.mjs} +2 -2
- package/dist/{LegacyStateStore-BTcTbCGk.mjs.map → LegacyStateStore-CL8pSB1w.mjs.map} +1 -1
- package/dist/{LegacyStateStore-BDA0rx3b.cjs → LegacyStateStore-CgNi3XJ_.cjs} +2 -2
- package/dist/{LegacyStateStore-BDA0rx3b.cjs.map → LegacyStateStore-CgNi3XJ_.cjs.map} +1 -1
- package/dist/{LocalStateStore-CqpCKVvi.mjs → LocalStateStore-CY_Bry1E.mjs} +2 -2
- package/dist/{LocalStateStore-CqpCKVvi.mjs.map → LocalStateStore-CY_Bry1E.mjs.map} +1 -1
- package/dist/{LocalStateStore-BNuQoZYe.cjs → LocalStateStore-rtHfw0BF.cjs} +2 -2
- package/dist/{LocalStateStore-BNuQoZYe.cjs.map → LocalStateStore-rtHfw0BF.cjs.map} +1 -1
- package/dist/{S3StateStore-BpsGWDMK.mjs → S3StateStore-CQcXWoxu.mjs} +4 -4
- package/dist/{S3StateStore-BpsGWDMK.mjs.map → S3StateStore-CQcXWoxu.mjs.map} +1 -1
- package/dist/{S3StateStore-nrmSClXN.cjs → S3StateStore-DSL1gtik.cjs} +4 -4
- package/dist/{S3StateStore-nrmSClXN.cjs.map → S3StateStore-DSL1gtik.cjs.map} +1 -1
- package/dist/{SSMStateStore-DrPCC_VN.mjs → SSMStateStore-BqbVN9Xg.mjs} +2 -2
- package/dist/{SSMStateStore-DrPCC_VN.mjs.map → SSMStateStore-BqbVN9Xg.mjs.map} +1 -1
- package/dist/{SSMStateStore-hexM8C7n.cjs → SSMStateStore-bzGNUN8_.cjs} +2 -2
- package/dist/{SSMStateStore-hexM8C7n.cjs.map → SSMStateStore-bzGNUN8_.cjs.map} +1 -1
- package/dist/{add-DXMYV5ak.mjs → add-CCtY1DrL.mjs} +4 -4
- package/dist/{add-DXMYV5ak.mjs.map → add-CCtY1DrL.mjs.map} +1 -1
- package/dist/{add-DgAeo6ht.cjs → add-UREEeMOa.cjs} +4 -4
- package/dist/{add-DgAeo6ht.cjs.map → add-UREEeMOa.cjs.map} +1 -1
- package/dist/{apps-Bb05wCBm.mjs → apps-BBo5-LK0.mjs} +3 -3
- package/dist/{apps-Bb05wCBm.mjs.map → apps-BBo5-LK0.mjs.map} +1 -1
- package/dist/{apps-CMLyyVGQ.cjs → apps-CbIWhlye.cjs} +3 -3
- package/dist/{apps-CMLyyVGQ.cjs.map → apps-CbIWhlye.cjs.map} +1 -1
- package/dist/{bundler-CD9Ug2uu.cjs → bundler-Bn2HX4nE.cjs} +6 -6
- package/dist/{bundler-CD9Ug2uu.cjs.map → bundler-Bn2HX4nE.cjs.map} +1 -1
- package/dist/{bundler-C1kDZyQ-.mjs → bundler-CffmpkV3.mjs} +6 -6
- package/dist/{bundler-C1kDZyQ-.mjs.map → bundler-CffmpkV3.mjs.map} +1 -1
- package/dist/{cli-BAcJaRG7.mjs → cli-BLfIYaB3.mjs} +4 -4
- package/dist/{cli-BAcJaRG7.mjs.map → cli-BLfIYaB3.mjs.map} +1 -1
- package/dist/{cli-35yoGg9o.cjs → cli-DvtRusay.cjs} +4 -4
- package/dist/{cli-35yoGg9o.cjs.map → cli-DvtRusay.cjs.map} +1 -1
- package/dist/{compose-DF08HNJE.cjs → compose-CGP0Nw2v.cjs} +89 -9
- package/dist/compose-CGP0Nw2v.cjs.map +1 -0
- package/dist/{compose-KV6q3cEz.cjs → compose-Cdx-M3-g.cjs} +4 -4
- package/dist/{compose-KV6q3cEz.cjs.map → compose-Cdx-M3-g.cjs.map} +1 -1
- package/dist/{compose-BZTh5HR3.mjs → compose-DDJhIyfw.mjs} +4 -4
- package/dist/{compose-BZTh5HR3.mjs.map → compose-DDJhIyfw.mjs.map} +1 -1
- package/dist/{compose-CAhGIfG8.mjs → compose-DSBTDhk5.mjs} +89 -9
- package/dist/compose-DSBTDhk5.mjs.map +1 -0
- package/dist/{credentials-Dmhuj3FX.cjs → credentials-BryyjZPs.cjs} +28 -11
- package/dist/credentials-BryyjZPs.cjs.map +1 -0
- package/dist/{credentials-B72Jrk66.mjs → credentials-wid61zD2.mjs} +30 -13
- package/dist/credentials-wid61zD2.mjs.map +1 -0
- package/dist/deploy/public.cjs +10 -10
- package/dist/deploy/public.mjs +10 -10
- package/dist/{deploy-C4XjPy-a.mjs → deploy-CDNFAKqC.mjs} +11 -11
- package/dist/{deploy-C4XjPy-a.mjs.map → deploy-CDNFAKqC.mjs.map} +1 -1
- package/dist/{deploy-BV6Tw73K.cjs → deploy-DCFfSmMK.cjs} +11 -11
- package/dist/{deploy-BV6Tw73K.cjs.map → deploy-DCFfSmMK.cjs.map} +1 -1
- package/dist/{docker-B0di7_Ub.cjs → docker-D_cDbA9A.cjs} +4 -4
- package/dist/{docker-B0di7_Ub.cjs.map → docker-D_cDbA9A.cjs.map} +1 -1
- package/dist/{docker-D_NN2Z6W.mjs → docker-MENEje7d.mjs} +4 -4
- package/dist/{docker-D_NN2Z6W.mjs.map → docker-MENEje7d.mjs.map} +1 -1
- package/dist/{dokploy-FFNHKz37.cjs → dokploy-Ds9KMB6j.cjs} +2 -2
- package/dist/{dokploy-FFNHKz37.cjs.map → dokploy-Ds9KMB6j.cjs.map} +1 -1
- package/dist/{dokploy-DDyZ0o4M.mjs → dokploy-iUWcPZvQ.mjs} +2 -2
- package/dist/{dokploy-DDyZ0o4M.mjs.map → dokploy-iUWcPZvQ.mjs.map} +1 -1
- package/dist/{eas-6_Z1ImVg.mjs → eas-Bv7SZlrg.mjs} +2 -2
- package/dist/{eas-6_Z1ImVg.mjs.map → eas-Bv7SZlrg.mjs.map} +1 -1
- package/dist/{eas-BetrZzjq.cjs → eas-C5jrsZeF.cjs} +2 -2
- package/dist/{eas-BetrZzjq.cjs.map → eas-C5jrsZeF.cjs.map} +1 -1
- package/dist/{encryption-DGnfdO68.mjs → encryption-Bagl9knS.mjs} +2 -2
- package/dist/{encryption-DGnfdO68.mjs.map → encryption-Bagl9knS.mjs.map} +1 -1
- package/dist/{encryption-BrRVjItb.cjs → encryption-Bug_342m.cjs} +2 -2
- package/dist/{encryption-BrRVjItb.cjs.map → encryption-Bug_342m.cjs.map} +1 -1
- package/dist/{engine-C36N8por.cjs → engine-B7Hm6yHL.cjs} +8 -8
- package/dist/{engine-C36N8por.cjs.map → engine-B7Hm6yHL.cjs.map} +1 -1
- package/dist/{engine-8TjM26dd.mjs → engine-CkJFeGuu.mjs} +8 -8
- package/dist/{engine-8TjM26dd.mjs.map → engine-CkJFeGuu.mjs.map} +1 -1
- package/dist/{github-BOu0bETi.cjs → github--cBRadD-.cjs} +6 -6
- package/dist/{github-BOu0bETi.cjs.map → github--cBRadD-.cjs.map} +1 -1
- package/dist/{github-Ct6XDkzE.mjs → github-COo0o_dI.mjs} +6 -6
- package/dist/{github-Ct6XDkzE.mjs.map → github-COo0o_dI.mjs.map} +1 -1
- package/dist/{googlePlay-BaRsxlJo.mjs → googlePlay-CkE6OZml.mjs} +4 -4
- package/dist/{googlePlay-BaRsxlJo.mjs.map → googlePlay-CkE6OZml.mjs.map} +1 -1
- package/dist/{googlePlay-JAxXMaGu.cjs → googlePlay-CmSg_6bz.cjs} +4 -4
- package/dist/{googlePlay-JAxXMaGu.cjs.map → googlePlay-CmSg_6bz.cjs.map} +1 -1
- package/dist/index.cjs +59 -59
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +59 -59
- package/dist/index.mjs.map +1 -1
- package/dist/{local-DFPeCIJi.cjs → local-BjSgGOpF.cjs} +2 -2
- package/dist/{local-DFPeCIJi.cjs.map → local-BjSgGOpF.cjs.map} +1 -1
- package/dist/{local-D7WVQcJJ.mjs → local-D4YcMzMd.mjs} +2 -2
- package/dist/{local-D7WVQcJJ.mjs.map → local-D4YcMzMd.mjs.map} +1 -1
- package/dist/{migrate-CnE-X40v.mjs → migrate-Bgw27ucL.mjs} +2 -2
- package/dist/{migrate-CnE-X40v.mjs.map → migrate-Bgw27ucL.mjs.map} +1 -1
- package/dist/{migrate-CvuWFjos.cjs → migrate-C6PbVtPI.cjs} +2 -2
- package/dist/{migrate-CvuWFjos.cjs.map → migrate-C6PbVtPI.cjs.map} +1 -1
- package/dist/{migrate-DdE8kF0j.cjs → migrate-C8FXW2vU.cjs} +4 -4
- package/dist/{migrate-DdE8kF0j.cjs.map → migrate-C8FXW2vU.cjs.map} +1 -1
- package/dist/{migrate-BMIUYmpM.mjs → migrate-DaxK8mbZ.mjs} +4 -4
- package/dist/{migrate-BMIUYmpM.mjs.map → migrate-DaxK8mbZ.mjs.map} +1 -1
- package/dist/{notes-C_4SO0x4.mjs → notes-B05dtIdF.mjs} +2 -2
- package/dist/{notes-C_4SO0x4.mjs.map → notes-B05dtIdF.mjs.map} +1 -1
- package/dist/{notes-ORze6zXA.cjs → notes-D2fjIErC.cjs} +2 -2
- package/dist/{notes-ORze6zXA.cjs.map → notes-D2fjIErC.cjs.map} +1 -1
- package/dist/{projectBucket-C9x0gzEO.cjs → projectBucket-BkdKxCQ9.cjs} +2 -2
- package/dist/{projectBucket-C9x0gzEO.cjs.map → projectBucket-BkdKxCQ9.cjs.map} +1 -1
- package/dist/{projectBucket-CdRj4IyR.mjs → projectBucket-DW1QMOLF.mjs} +2 -2
- package/dist/{projectBucket-CdRj4IyR.mjs.map → projectBucket-DW1QMOLF.mjs.map} +1 -1
- package/dist/{publish-CL376jrq.cjs → publish-De0WIoeb.cjs} +2 -2
- package/dist/{publish-CL376jrq.cjs.map → publish-De0WIoeb.cjs.map} +1 -1
- package/dist/{publish-DkkWS3Pj.mjs → publish-p23AqJV9.mjs} +2 -2
- package/dist/{publish-DkkWS3Pj.mjs.map → publish-p23AqJV9.mjs.map} +1 -1
- package/dist/{resolve-CZ_Wel7j.mjs → resolve-CLAv6ugd.mjs} +4 -4
- package/dist/{resolve-CZ_Wel7j.mjs.map → resolve-CLAv6ugd.mjs.map} +1 -1
- package/dist/{resolve-BXzDwYUS.cjs → resolve-cgPmnYYs.cjs} +4 -4
- package/dist/{resolve-BXzDwYUS.cjs.map → resolve-cgPmnYYs.cjs.map} +1 -1
- package/dist/{rollback-p1y0KlED.cjs → rollback-BSwqHG7-.cjs} +5 -5
- package/dist/{rollback-p1y0KlED.cjs.map → rollback-BSwqHG7-.cjs.map} +1 -1
- package/dist/{rollback-D_FXI_K5.mjs → rollback-Kfu-u1Ja.mjs} +5 -5
- package/dist/{rollback-D_FXI_K5.mjs.map → rollback-Kfu-u1Ja.mjs.map} +1 -1
- package/dist/{s3-CV5baYeq.mjs → s3-B_Y8YIBy.mjs} +2 -2
- package/dist/{s3-CV5baYeq.mjs.map → s3-B_Y8YIBy.mjs.map} +1 -1
- package/dist/{s3-DTX4Kkmn.cjs → s3-SZo3_eJV.cjs} +2 -2
- package/dist/{s3-DTX4Kkmn.cjs.map → s3-SZo3_eJV.cjs.map} +1 -1
- package/dist/{serverSetup-CkuvIoej.mjs → serverSetup-B1Vh7ZtI.mjs} +5 -5
- package/dist/{serverSetup-CkuvIoej.mjs.map → serverSetup-B1Vh7ZtI.mjs.map} +1 -1
- package/dist/{serverSetup-BykJrnYe.cjs → serverSetup-Cqg1RFGl.cjs} +5 -5
- package/dist/{serverSetup-BykJrnYe.cjs.map → serverSetup-Cqg1RFGl.cjs.map} +1 -1
- package/dist/{sniffer-BIpoMNGz.mjs → sniffer-CZAwpkah.mjs} +6 -6
- package/dist/{sniffer-BIpoMNGz.mjs.map → sniffer-CZAwpkah.mjs.map} +1 -1
- package/dist/{sniffer-DiBMi93N.cjs → sniffer-DK40zMnG.cjs} +6 -6
- package/dist/{sniffer-DiBMi93N.cjs.map → sniffer-DK40zMnG.cjs.map} +1 -1
- package/dist/{snsSubscriptions-CrmfcJfv.mjs → snsSubscriptions-Cp7doA_C.mjs} +2 -2
- package/dist/{snsSubscriptions-CrmfcJfv.mjs.map → snsSubscriptions-Cp7doA_C.mjs.map} +1 -1
- package/dist/{snsSubscriptions-CkO_zk0j.cjs → snsSubscriptions-D8YYmNcf.cjs} +2 -2
- package/dist/{snsSubscriptions-CkO_zk0j.cjs.map → snsSubscriptions-D8YYmNcf.cjs.map} +1 -1
- package/dist/{sst-BZ9sTG8H.mjs → sst-Bf5FZC12.mjs} +4 -4
- package/dist/{sst-BZ9sTG8H.mjs.map → sst-Bf5FZC12.mjs.map} +1 -1
- package/dist/{sst-D233GoQY.cjs → sst-Bj5x4qtW.cjs} +4 -4
- package/dist/{sst-D233GoQY.cjs.map → sst-Bj5x4qtW.cjs.map} +1 -1
- package/dist/{stack-1yXKqI83.cjs → stack-C0V1Jm57.cjs} +101 -7
- package/dist/stack-C0V1Jm57.cjs.map +1 -0
- package/dist/{stack-pUz70Rmw.mjs → stack-DyKwnVrO.mjs} +91 -9
- package/dist/stack-DyKwnVrO.mjs.map +1 -0
- package/dist/{stage-D6E_TlvR.mjs → stage-4jY7016s.mjs} +5 -5
- package/dist/{stage-D6E_TlvR.mjs.map → stage-4jY7016s.mjs.map} +1 -1
- package/dist/{stage-DAhomyUk.cjs → stage-jweO7ZpZ.cjs} +5 -5
- package/dist/{stage-DAhomyUk.cjs.map → stage-jweO7ZpZ.cjs.map} +1 -1
- package/dist/target/public.cjs +1 -1
- package/dist/target/public.mjs +1 -1
- package/dist/{terminal-CKBLsg6b.cjs → terminal-CKfjtEyy.cjs} +2 -2
- package/dist/{terminal-CKBLsg6b.cjs.map → terminal-CKfjtEyy.cjs.map} +1 -1
- package/dist/{terminal-CRinpE1t.mjs → terminal-CKuv6CB4.mjs} +2 -2
- package/dist/{terminal-CRinpE1t.mjs.map → terminal-CKuv6CB4.mjs.map} +1 -1
- package/package.json +15 -15
- package/dist/compose-CAhGIfG8.mjs.map +0 -1
- package/dist/compose-DF08HNJE.cjs.map +0 -1
- package/dist/credentials-B72Jrk66.mjs.map +0 -1
- package/dist/credentials-Dmhuj3FX.cjs.map +0 -1
- package/dist/stack-1yXKqI83.cjs.map +0 -1
- package/dist/stack-pUz70Rmw.mjs.map +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BhDjJH2R.mjs";
|
|
2
2
|
import { t as GkmError } from "./errors-D8Gwp5kU.mjs";
|
|
3
|
-
import { F as toEmbeddableSecrets, M as initStageSecrets, Q as imageRef, a as findRootDomain, m as createComposeState, o as normalizeDnsConfig, ot as run, st as runOutput, v as recordRelease } from "./credentials-
|
|
3
|
+
import { F as toEmbeddableSecrets, M as initStageSecrets, Q as imageRef, a as findRootDomain, m as createComposeState, o as normalizeDnsConfig, ot as run, st as runOutput, v as recordRelease } from "./credentials-wid61zD2.mjs";
|
|
4
4
|
import { L as resolveStageTelemetry, ct as ComposeTlsFileMissing, gt as SERVER_IPV4_KEY, yt as isReservedStageKey } from "./workspace-DFGsrjGD.mjs";
|
|
5
|
-
import { B as findBuildRoot, C as ensureLocalCertificate, Dt as stageEnv, E as readLocalAuthority, F as imageLayout, Lt as usesTelemetry, P as fromBuildRoot, S as ensureLocalAuthority, St as postgresStatements, T as localCertificateNames, Tt as envFor, Y as nextPrerenderManifest, _t as applyPolicies, b as bucketClient, ct as BACKUPS_SERVICE, d as backendsOf, dt as backupsRoleStatements, f as constructGlobs, gt as applyNotifications, ht as applyLifecycles, l as workerEnvKeys, mt as applyBuckets, t as appEnvKeys, v as LEGACY_LOCAL_LOGIN, vt as applyPostgres, x as pgClient, y as ensurePostgresLogin } from "./apps-
|
|
5
|
+
import { B as findBuildRoot, C as ensureLocalCertificate, Dt as stageEnv, E as readLocalAuthority, F as imageLayout, Lt as usesTelemetry, P as fromBuildRoot, S as ensureLocalAuthority, St as postgresStatements, T as localCertificateNames, Tt as envFor, Y as nextPrerenderManifest, _t as applyPolicies, b as bucketClient, ct as BACKUPS_SERVICE, d as backendsOf, dt as backupsRoleStatements, f as constructGlobs, gt as applyNotifications, ht as applyLifecycles, l as workerEnvKeys, mt as applyBuckets, t as appEnvKeys, v as LEGACY_LOCAL_LOGIN, vt as applyPostgres, x as pgClient, y as ensurePostgresLogin } from "./apps-BBo5-LK0.mjs";
|
|
6
6
|
import { t as defineTarget } from "./define-6poNqm5O.mjs";
|
|
7
|
-
import { E as withRedisPassword, W as primaryPortKey, X as LOGS_SERVICE, Z as logsAccess, m as loadLocalCredentials, tt as withLogsPassword, w as runsRedis, x as REDIS_SERVICE, y as withGeneratedSecrets } from "./compose-
|
|
7
|
+
import { E as withRedisPassword, W as primaryPortKey, X as LOGS_SERVICE, Z as logsAccess, m as loadLocalCredentials, tt as withLogsPassword, w as runsRedis, x as REDIS_SERVICE, y as withGeneratedSecrets } from "./compose-DDJhIyfw.mjs";
|
|
8
8
|
import { i as discover } from "./discover-DbDrCQ8h.mjs";
|
|
9
|
-
import { C as
|
|
10
|
-
import { a as ensureDockerignore } from "./docker-
|
|
11
|
-
import { a as subscriptionKey, c as HostNotPointingAtServer, f as requiredServerAddress, g as stageDns, h as stackHosts, i as recordedPushSubscriptions, n as SUBSCRIPTION_TYPE, o as subscriptionResource, p as serverAddressHint, r as confirmPendingSubscriptions, s as topicConnection, t as PushSubscriptionsUnconfirmed, u as isLocalHost, v as systemLookup } from "./snsSubscriptions-
|
|
9
|
+
import { C as traefikStaticFile, E as assertImagesExist, O as pinImages, S as readEdgeClaims, T as RegistryRequired, _ as EDGE_NETWORK, a as composeProject, b as claimsOverlap, d as stackDir, g as EDGE_DYNAMIC_DIR, h as EDGE_CERTS_DIR, i as LOOPBACK_SERVICES, l as envFile, m as EDGE_AWS_CREDENTIALS, n as LOGS_PORT_ENV, o as composeStack, p as withCaddyConfigs, r as LOG_ROTATION, t as EDGE_PORT_ENV, u as replicaNames, v as EDGE_PROJECT, x as edgeComposeFile, y as EDGE_SERVICE } from "./stack-DyKwnVrO.mjs";
|
|
10
|
+
import { a as ensureDockerignore } from "./docker-MENEje7d.mjs";
|
|
11
|
+
import { a as subscriptionKey, c as HostNotPointingAtServer, f as requiredServerAddress, g as stageDns, h as stackHosts, i as recordedPushSubscriptions, n as SUBSCRIPTION_TYPE, o as subscriptionResource, p as serverAddressHint, r as confirmPendingSubscriptions, s as topicConnection, t as PushSubscriptionsUnconfirmed, u as isLocalHost, v as systemLookup } from "./snsSubscriptions-Cp7doA_C.mjs";
|
|
12
12
|
import { i as installedFrom } from "./drivers-uxLBq3e3.mjs";
|
|
13
13
|
import { a as dnsResources, c as currentActor, d as DeployJournal, n as reportDatabaseRuns, o as forgetDnsResource, r as reportPlannedSeeds, s as recordDnsChanges, t as DeploySeedsFailed } from "./seeds-BCC8vAXR.mjs";
|
|
14
14
|
import { f as plannedSeeds, o as SeedFailed, p as seedDatabases, u as migrateDatabases } from "./databases-mzSUFBTw.mjs";
|
|
@@ -785,17 +785,77 @@ async function restartEdge(docker, edge) {
|
|
|
785
785
|
function routesPath(project) {
|
|
786
786
|
return `${EDGE_DYNAMIC_DIR}/${project}.yml`;
|
|
787
787
|
}
|
|
788
|
+
/**
|
|
789
|
+
* A host this stack routes is already routed through the shared edge by
|
|
790
|
+
* another project: two routers for one host, and which stack serves it — and
|
|
791
|
+
* which gets its certificate — would be the edge's choice.
|
|
792
|
+
*/
|
|
793
|
+
var EdgeHostClaimed = class extends GkmError {
|
|
794
|
+
host;
|
|
795
|
+
owner;
|
|
796
|
+
project;
|
|
797
|
+
edge;
|
|
798
|
+
constructor(host, owner, project, edge = EDGE_PROJECT) {
|
|
799
|
+
super(`${project} routes ${host}, and ${owner} already routes it through the shared edge (${edge}) on this server. A host is served by one stack only. Give ${project} another domain, or take ${owner} off the edge first: gkm compose --stage <stage> --down in its workspace (or remove ${routesPath(owner)} from the edge).`);
|
|
800
|
+
this.host = host;
|
|
801
|
+
this.owner = owner;
|
|
802
|
+
this.project = project;
|
|
803
|
+
this.edge = edge;
|
|
804
|
+
this.name = "EdgeHostClaimed";
|
|
805
|
+
}
|
|
806
|
+
};
|
|
807
|
+
/**
|
|
808
|
+
* Every other stack's claims on the edge, by project: each `dynamic/*.yml`
|
|
809
|
+
* but this project's, read through the engine. None where the edge is not
|
|
810
|
+
* running — nothing is routed through it.
|
|
811
|
+
*/
|
|
812
|
+
async function edgeClaimsByProject(docker, edge, project) {
|
|
813
|
+
const claimed = /* @__PURE__ */ new Map();
|
|
814
|
+
const listed = await docker.exec(edge, EDGE_SERVICE, [
|
|
815
|
+
"ls",
|
|
816
|
+
"-1",
|
|
817
|
+
EDGE_DYNAMIC_DIR
|
|
818
|
+
]);
|
|
819
|
+
if (listed.code !== 0) return claimed;
|
|
820
|
+
for (const name of listed.stdout.split("\n").map((line) => line.trim())) {
|
|
821
|
+
if (!name.endsWith(".yml")) continue;
|
|
822
|
+
const owner = name.slice(0, -4);
|
|
823
|
+
if (!owner || owner === project) continue;
|
|
824
|
+
const file = await readEdgeFile(docker, edge, routesPath(owner));
|
|
825
|
+
if (file === void 0) continue;
|
|
826
|
+
const claims = readEdgeClaims(file);
|
|
827
|
+
if (claims.length > 0) claimed.set(owner, claims);
|
|
828
|
+
}
|
|
829
|
+
return claimed;
|
|
830
|
+
}
|
|
831
|
+
/**
|
|
832
|
+
* Refuse a stack's routes when a host in them is routed through the edge by
|
|
833
|
+
* another project — checked before a deploy changes anything, and again
|
|
834
|
+
* before its routes are written. Its own file, from its last deploy, is
|
|
835
|
+
* replaced, never a clash.
|
|
836
|
+
*/
|
|
837
|
+
async function assertEdgeHostsFree(docker, edge, project, routes) {
|
|
838
|
+
const mine = readEdgeClaims(routes);
|
|
839
|
+
if (mine.length === 0) return;
|
|
840
|
+
const others = await edgeClaimsByProject(docker, edge, project);
|
|
841
|
+
for (const [owner, theirs] of [...others].sort(([a], [b]) => a.localeCompare(b))) for (const claim of mine) for (const other of theirs) {
|
|
842
|
+
const host = claimsOverlap(claim, other);
|
|
843
|
+
if (host !== void 0) throw new EdgeHostClaimed(host, owner, project, edge.project);
|
|
844
|
+
}
|
|
845
|
+
}
|
|
788
846
|
function certificatePaths(project) {
|
|
789
847
|
return [`${EDGE_CERTS_DIR}/${project}.crt`, `${EDGE_CERTS_DIR}/${project}.key`];
|
|
790
848
|
}
|
|
791
849
|
/**
|
|
792
|
-
* Register a stack with the edge
|
|
850
|
+
* Register a stack with the edge — refused, before anything is written, when
|
|
851
|
+
* another project routes one of its hosts: its certificate first, where it has one,
|
|
793
852
|
* so the routes that need it never load without it — then its routes, in one
|
|
794
853
|
* rename the edge picks up whole. The certificate — the stage's own, or the
|
|
795
854
|
* one gkm's local CA issued the local stage — is PEM read on this machine and
|
|
796
855
|
* written through the engine. The paths written, inside the edge.
|
|
797
856
|
*/
|
|
798
857
|
async function writeEdgeRoutes(docker, edge, project, routes, certificate) {
|
|
858
|
+
await assertEdgeHostsFree(docker, edge, project, routes);
|
|
799
859
|
const written = [];
|
|
800
860
|
const [crt, key] = certificatePaths(project);
|
|
801
861
|
if (certificate) {
|
|
@@ -1719,11 +1779,31 @@ async function readyCompose(ctx, run, deps) {
|
|
|
1719
1779
|
...caFile ? [caFile] : []
|
|
1720
1780
|
]) if (!existsSync(file)) throw new ComposeTlsFileMissing(ctx.stage, file);
|
|
1721
1781
|
}
|
|
1722
|
-
if (stack.local)
|
|
1782
|
+
if (stack.local) {
|
|
1783
|
+
await edgeHostsFree(ctx, run, deps);
|
|
1784
|
+
return;
|
|
1785
|
+
}
|
|
1723
1786
|
if (run.server && !ctx.dryRun && !run.push) await deps.server.check(run.server);
|
|
1787
|
+
await edgeHostsFree(ctx, run, deps);
|
|
1724
1788
|
const prune = await stageHostsDns(ctx, deps, stackHosts(stack).filter((host) => !isLocalHost(host)), run.secrets?.custom, stack.wildcard?.host);
|
|
1725
1789
|
if (prune) run.pruneDns = prune;
|
|
1726
1790
|
}
|
|
1791
|
+
/**
|
|
1792
|
+
* No host the stack routes through the shared edge is routed there by another
|
|
1793
|
+
* project — asked of the edge on the stage's engine before a record, a
|
|
1794
|
+
* secret, an image or a container is touched, so a clash fails the deploy
|
|
1795
|
+
* with nothing changed. Asked again as the routes are written
|
|
1796
|
+
* (`writeEdgeRoutes`), for an edge that was not running yet.
|
|
1797
|
+
*/
|
|
1798
|
+
async function edgeHostsFree(ctx, run, deps) {
|
|
1799
|
+
const { stack, ref } = run;
|
|
1800
|
+
if (ctx.dryRun || run.push) return;
|
|
1801
|
+
if (stack.proxy !== "traefik" || !stack.traefik) return;
|
|
1802
|
+
await assertEdgeHostsFree(deps.docker, edgeRef(edgeFile(run), {
|
|
1803
|
+
...ref.host ? { host: ref.host } : {},
|
|
1804
|
+
...ref.output ? { output: ref.output } : {}
|
|
1805
|
+
}), stack.project, stack.traefik);
|
|
1806
|
+
}
|
|
1727
1807
|
/** A stack whose caches are in Redis, built for an app that has no client. */
|
|
1728
1808
|
var RedisClientMissing = class extends GkmError {
|
|
1729
1809
|
apps;
|
|
@@ -2874,4 +2954,4 @@ function composeTarget(options = {}) {
|
|
|
2874
2954
|
//#endregion
|
|
2875
2955
|
export { edgePorts as a, edgeRef as c, dockerHost as d, sshAccess as f, projectNetwork as h, ComposePushNeedsBuild as i, removeEdgeRoutes as l, dockerCompose as m, compose_exports as n, stackOverrideFile as o, sshTarget as p, ComposePinNeedsPull as r, deployedStackSecrets as s, composeTarget as t, composeServer as u };
|
|
2876
2956
|
|
|
2877
|
-
//# sourceMappingURL=compose-
|
|
2957
|
+
//# sourceMappingURL=compose-DSBTDhk5.mjs.map
|