@geekmidas/cli 10.0.0-alpha.175 → 10.0.0-alpha.177
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-BtnO8_pk.mjs → GoDaddyProvider-B5Vp3PFa.mjs} +2 -2
- package/dist/{GoDaddyProvider-BtnO8_pk.mjs.map → GoDaddyProvider-B5Vp3PFa.mjs.map} +1 -1
- package/dist/{GoDaddyProvider-BHNFin4Y.cjs → GoDaddyProvider-Bos-4m3b.cjs} +2 -2
- package/dist/{GoDaddyProvider-BHNFin4Y.cjs.map → GoDaddyProvider-Bos-4m3b.cjs.map} +1 -1
- package/dist/{HostingerProvider-Cq7QeLKO.mjs → HostingerProvider-DCg0rGXq.mjs} +2 -2
- package/dist/{HostingerProvider-Cq7QeLKO.mjs.map → HostingerProvider-DCg0rGXq.mjs.map} +1 -1
- package/dist/{HostingerProvider-Bbb1_aKS.cjs → HostingerProvider-jar5l8ck.cjs} +2 -2
- package/dist/{HostingerProvider-Bbb1_aKS.cjs.map → HostingerProvider-jar5l8ck.cjs.map} +1 -1
- package/dist/{LegacyStateStore-r8xgq8Vv.mjs → LegacyStateStore-mUqUP71P.mjs} +2 -2
- package/dist/{LegacyStateStore-r8xgq8Vv.mjs.map → LegacyStateStore-mUqUP71P.mjs.map} +1 -1
- package/dist/{LegacyStateStore-CbuqTCMX.cjs → LegacyStateStore-qUlI9q4J.cjs} +2 -2
- package/dist/{LegacyStateStore-CbuqTCMX.cjs.map → LegacyStateStore-qUlI9q4J.cjs.map} +1 -1
- package/dist/{LocalStateStore-BMnidUp_.mjs → LocalStateStore-B3BGSP9X.mjs} +2 -2
- package/dist/{LocalStateStore-BMnidUp_.mjs.map → LocalStateStore-B3BGSP9X.mjs.map} +1 -1
- package/dist/{LocalStateStore-B6_1oDJ_.cjs → LocalStateStore-C8KQoWQ4.cjs} +2 -2
- package/dist/{LocalStateStore-B6_1oDJ_.cjs.map → LocalStateStore-C8KQoWQ4.cjs.map} +1 -1
- package/dist/{S3StateStore-Dq12263A.cjs → S3StateStore-Bb_pR9qR.cjs} +4 -4
- package/dist/{S3StateStore-Dq12263A.cjs.map → S3StateStore-Bb_pR9qR.cjs.map} +1 -1
- package/dist/{S3StateStore-CHXicp6D.mjs → S3StateStore-BrXQgGqq.mjs} +4 -4
- package/dist/{S3StateStore-CHXicp6D.mjs.map → S3StateStore-BrXQgGqq.mjs.map} +1 -1
- package/dist/{SSMStateStore-BAMceTz-.mjs → SSMStateStore-B8Opl_On.mjs} +2 -2
- package/dist/{SSMStateStore-BAMceTz-.mjs.map → SSMStateStore-B8Opl_On.mjs.map} +1 -1
- package/dist/{SSMStateStore-D8HJ3FU9.cjs → SSMStateStore-BY_I0tyB.cjs} +2 -2
- package/dist/{SSMStateStore-D8HJ3FU9.cjs.map → SSMStateStore-BY_I0tyB.cjs.map} +1 -1
- package/dist/{add-QkB0jIec.cjs → add-DGmk0dXQ.cjs} +4 -4
- package/dist/{add-QkB0jIec.cjs.map → add-DGmk0dXQ.cjs.map} +1 -1
- package/dist/{add-BK_Mb6D_.mjs → add-DLOigaYm.mjs} +4 -4
- package/dist/{add-BK_Mb6D_.mjs.map → add-DLOigaYm.mjs.map} +1 -1
- package/dist/{apps-D83caHjP.cjs → apps-CyfjJh6v.cjs} +9 -3
- package/dist/apps-CyfjJh6v.cjs.map +1 -0
- package/dist/{apps-DpyJvU00.mjs → apps-G1Q2j-fs.mjs} +4 -4
- package/dist/apps-G1Q2j-fs.mjs.map +1 -0
- package/dist/{bundler-CgCVGuji.mjs → bundler-8pVRVXVZ.mjs} +6 -6
- package/dist/{bundler-CgCVGuji.mjs.map → bundler-8pVRVXVZ.mjs.map} +1 -1
- package/dist/{bundler-DTHUOAAV.cjs → bundler-y6p6zWLI.cjs} +6 -6
- package/dist/{bundler-DTHUOAAV.cjs.map → bundler-y6p6zWLI.cjs.map} +1 -1
- package/dist/{cli-B2XyVbUz.mjs → cli-SNWyT6q5.mjs} +4 -4
- package/dist/{cli-B2XyVbUz.mjs.map → cli-SNWyT6q5.mjs.map} +1 -1
- package/dist/{cli-Cx1tIFan.cjs → cli-_yRVgYDB.cjs} +4 -4
- package/dist/{cli-Cx1tIFan.cjs.map → cli-_yRVgYDB.cjs.map} +1 -1
- package/dist/{compose-DVr47TbA.cjs → compose-CNDZELiP.cjs} +4 -4
- package/dist/{compose-DVr47TbA.cjs.map → compose-CNDZELiP.cjs.map} +1 -1
- package/dist/{compose-B9uSqCxY.cjs → compose-CNEv5lGg.cjs} +221 -16
- package/dist/compose-CNEv5lGg.cjs.map +1 -0
- package/dist/{compose-j0SE-0EG.mjs → compose-D_shZ1mI.mjs} +4 -4
- package/dist/{compose-j0SE-0EG.mjs.map → compose-D_shZ1mI.mjs.map} +1 -1
- package/dist/{compose-CbXGx1_z.mjs → compose-X-ZypRKX.mjs} +207 -14
- package/dist/compose-X-ZypRKX.mjs.map +1 -0
- package/dist/dbTunnel-B3TEZuFY.mjs +154 -0
- package/dist/dbTunnel-B3TEZuFY.mjs.map +1 -0
- package/dist/dbTunnel-Cw8zODrt.cjs +154 -0
- package/dist/dbTunnel-Cw8zODrt.cjs.map +1 -0
- package/dist/deploy/public.cjs +10 -10
- package/dist/deploy/public.d.cts.map +1 -1
- package/dist/deploy/public.d.mts.map +1 -1
- package/dist/deploy/public.mjs +10 -10
- package/dist/{deploy-DDWnWXnA.mjs → deploy-DFul9UAF.mjs} +16 -15
- package/dist/{deploy-DDWnWXnA.mjs.map → deploy-DFul9UAF.mjs.map} +1 -1
- package/dist/{deploy-qdWn2-m9.cjs → deploy-OPNZJCUm.cjs} +16 -15
- package/dist/{deploy-qdWn2-m9.cjs.map → deploy-OPNZJCUm.cjs.map} +1 -1
- package/dist/{destroy-DvJEbs9P.mjs → destroy-C9c6S9oI.mjs} +7 -7
- package/dist/{destroy-DvJEbs9P.mjs.map → destroy-C9c6S9oI.mjs.map} +1 -1
- package/dist/{destroy-B28Zwbzr.cjs → destroy-DbOw1hTz.cjs} +7 -7
- package/dist/{destroy-B28Zwbzr.cjs.map → destroy-DbOw1hTz.cjs.map} +1 -1
- package/dist/{dns-BxgfpQWO.mjs → dns-BM2DE6jt.mjs} +21 -7
- package/dist/dns-BM2DE6jt.mjs.map +1 -0
- package/dist/{dns-CiUCbOXH.cjs → dns-_WH7kO9x.cjs} +26 -6
- package/dist/dns-_WH7kO9x.cjs.map +1 -0
- package/dist/{docker-Dcsqf_NA.mjs → docker-DCtw3rjP.mjs} +4 -4
- package/dist/{docker-Dcsqf_NA.mjs.map → docker-DCtw3rjP.mjs.map} +1 -1
- package/dist/{docker-Coy1O-IN.cjs → docker-wE0zDnhu.cjs} +4 -4
- package/dist/{docker-Coy1O-IN.cjs.map → docker-wE0zDnhu.cjs.map} +1 -1
- package/dist/{dokploy-Df4oDdAu.cjs → dokploy-CCDXCzTa.cjs} +2 -2
- package/dist/{dokploy-Df4oDdAu.cjs.map → dokploy-CCDXCzTa.cjs.map} +1 -1
- package/dist/{dokploy-Dohi7fuh.mjs → dokploy-DeXtesSz.mjs} +2 -2
- package/dist/{dokploy-Dohi7fuh.mjs.map → dokploy-DeXtesSz.mjs.map} +1 -1
- package/dist/{eas-B8t0Ipgt.cjs → eas-Ct9AE935.cjs} +2 -2
- package/dist/{eas-B8t0Ipgt.cjs.map → eas-Ct9AE935.cjs.map} +1 -1
- package/dist/{eas-FLjCtoiB.mjs → eas-DfJbfJOE.mjs} +2 -2
- package/dist/{eas-FLjCtoiB.mjs.map → eas-DfJbfJOE.mjs.map} +1 -1
- package/dist/{encryption-DlID0xqU.mjs → encryption-BgLW4Tb2.mjs} +2 -2
- package/dist/{encryption-DlID0xqU.mjs.map → encryption-BgLW4Tb2.mjs.map} +1 -1
- package/dist/{encryption-CEiJrhOd.cjs → encryption-DDkv3EFD.cjs} +2 -2
- package/dist/{encryption-CEiJrhOd.cjs.map → encryption-DDkv3EFD.cjs.map} +1 -1
- package/dist/{engine-Ci62MZrE.cjs → engine-CINx5LA_.cjs} +10 -9
- package/dist/engine-CINx5LA_.cjs.map +1 -0
- package/dist/{engine-zE2sQUNS.mjs → engine-CKkCaRAd.mjs} +10 -9
- package/dist/engine-CKkCaRAd.mjs.map +1 -0
- package/dist/{github-Di-u6VhX.mjs → github-BORbm5Kn.mjs} +19 -10
- package/dist/github-BORbm5Kn.mjs.map +1 -0
- package/dist/{github-DXBTTGl3.cjs → github-DsmDwi7a.cjs} +19 -10
- package/dist/github-DsmDwi7a.cjs.map +1 -0
- package/dist/{googlePlay-Crx8XG3Z.mjs → googlePlay-Dk53obw3.mjs} +4 -4
- package/dist/{googlePlay-Crx8XG3Z.mjs.map → googlePlay-Dk53obw3.mjs.map} +1 -1
- package/dist/{googlePlay-C3ubCMrO.cjs → googlePlay-bh7gEiz4.cjs} +4 -4
- package/dist/{googlePlay-C3ubCMrO.cjs.map → googlePlay-bh7gEiz4.cjs.map} +1 -1
- package/dist/index.cjs +184 -83
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +185 -84
- package/dist/index.mjs.map +1 -1
- package/dist/{local-DyOeF-qR.cjs → local-BObpR_rL.cjs} +2 -2
- package/dist/{local-DyOeF-qR.cjs.map → local-BObpR_rL.cjs.map} +1 -1
- package/dist/{local-pYpQVNII.mjs → local-CpSldDSi.mjs} +2 -2
- package/dist/{local-pYpQVNII.mjs.map → local-CpSldDSi.mjs.map} +1 -1
- package/dist/{migrate-DXW9w2DK.cjs → migrate-B-O5VhwA.cjs} +4 -4
- package/dist/{migrate-DXW9w2DK.cjs.map → migrate-B-O5VhwA.cjs.map} +1 -1
- package/dist/{migrate-vXdW9TR3.cjs → migrate-BClTCUdZ.cjs} +2 -2
- package/dist/{migrate-vXdW9TR3.cjs.map → migrate-BClTCUdZ.cjs.map} +1 -1
- package/dist/{migrate-BHvFlwDQ.mjs → migrate-ChURsPXl.mjs} +2 -2
- package/dist/{migrate-BHvFlwDQ.mjs.map → migrate-ChURsPXl.mjs.map} +1 -1
- package/dist/{migrate-CnH3PLzA.mjs → migrate-FatDUatE.mjs} +4 -4
- package/dist/{migrate-CnH3PLzA.mjs.map → migrate-FatDUatE.mjs.map} +1 -1
- package/dist/{notes-DuPsUdr4.mjs → notes-BwBGVMYR.mjs} +2 -2
- package/dist/{notes-DuPsUdr4.mjs.map → notes-BwBGVMYR.mjs.map} +1 -1
- package/dist/{notes-BOQGsAVb.cjs → notes-jaDD8Vda.cjs} +2 -2
- package/dist/{notes-BOQGsAVb.cjs.map → notes-jaDD8Vda.cjs.map} +1 -1
- package/dist/{projectBucket-CP6rkXdo.cjs → projectBucket-CEDRY3N2.cjs} +2 -2
- package/dist/{projectBucket-CP6rkXdo.cjs.map → projectBucket-CEDRY3N2.cjs.map} +1 -1
- package/dist/{projectBucket-o-_7Hgxt.mjs → projectBucket-CgGk1Nd_.mjs} +2 -2
- package/dist/{projectBucket-o-_7Hgxt.mjs.map → projectBucket-CgGk1Nd_.mjs.map} +1 -1
- package/dist/{publish-C9_gTOGU.mjs → publish-CG9ooEnS.mjs} +2 -2
- package/dist/{publish-C9_gTOGU.mjs.map → publish-CG9ooEnS.mjs.map} +1 -1
- package/dist/{publish-DbJ7hMQ_.cjs → publish-oCdqimOZ.cjs} +2 -2
- package/dist/{publish-DbJ7hMQ_.cjs.map → publish-oCdqimOZ.cjs.map} +1 -1
- package/dist/{resolve-nTuLxira.mjs → resolve-DGSN4f-J.mjs} +4 -4
- package/dist/{resolve-nTuLxira.mjs.map → resolve-DGSN4f-J.mjs.map} +1 -1
- package/dist/{resolve-4ME0CRVM.cjs → resolve-XaHTbLJ0.cjs} +4 -4
- package/dist/{resolve-4ME0CRVM.cjs.map → resolve-XaHTbLJ0.cjs.map} +1 -1
- package/dist/{rollback-CAfhleLK.cjs → rollback-DQl_hh1s.cjs} +5 -5
- package/dist/{rollback-CAfhleLK.cjs.map → rollback-DQl_hh1s.cjs.map} +1 -1
- package/dist/{rollback-CXy-4gxa.mjs → rollback-xiYg-iz_.mjs} +5 -5
- package/dist/{rollback-CXy-4gxa.mjs.map → rollback-xiYg-iz_.mjs.map} +1 -1
- package/dist/{s3-C90gsHUn.cjs → s3-CB4ekfza.cjs} +2 -2
- package/dist/{s3-C90gsHUn.cjs.map → s3-CB4ekfza.cjs.map} +1 -1
- package/dist/{s3-DcIf5bPO.mjs → s3-CQqDhnF-.mjs} +2 -2
- package/dist/{s3-DcIf5bPO.mjs.map → s3-CQqDhnF-.mjs.map} +1 -1
- package/dist/{serverSetup-4oc_a1T5.cjs → serverSetup-B0ZqkKcY.cjs} +5 -5
- package/dist/{serverSetup-4oc_a1T5.cjs.map → serverSetup-B0ZqkKcY.cjs.map} +1 -1
- package/dist/{serverSetup-BmmkcyBv.mjs → serverSetup-DWUQ_sQR.mjs} +5 -5
- package/dist/{serverSetup-BmmkcyBv.mjs.map → serverSetup-DWUQ_sQR.mjs.map} +1 -1
- package/dist/{sniffer-FdJ9urOA.cjs → sniffer-BVmzTN9C.cjs} +6 -6
- package/dist/{sniffer-FdJ9urOA.cjs.map → sniffer-BVmzTN9C.cjs.map} +1 -1
- package/dist/{sniffer-Cawd1GeY.mjs → sniffer-CkSC8MZ9.mjs} +6 -6
- package/dist/{sniffer-Cawd1GeY.mjs.map → sniffer-CkSC8MZ9.mjs.map} +1 -1
- package/dist/{snsSubscriptions-Cm-pdWyW.mjs → snsSubscriptions-CdbBWvzg.mjs} +3 -3
- package/dist/{snsSubscriptions-Cm-pdWyW.mjs.map → snsSubscriptions-CdbBWvzg.mjs.map} +1 -1
- package/dist/{snsSubscriptions-DclU57O7.cjs → snsSubscriptions-DOUaur2w.cjs} +3 -3
- package/dist/{snsSubscriptions-DclU57O7.cjs.map → snsSubscriptions-DOUaur2w.cjs.map} +1 -1
- package/dist/{sst-D6Kt9gDS.cjs → sst-3iKqe9vk.cjs} +4 -4
- package/dist/{sst-D6Kt9gDS.cjs.map → sst-3iKqe9vk.cjs.map} +1 -1
- package/dist/{sst-BiOWTOUg.mjs → sst-r4pOOAkf.mjs} +4 -4
- package/dist/{sst-BiOWTOUg.mjs.map → sst-r4pOOAkf.mjs.map} +1 -1
- package/dist/{stack-BmjNDZiJ.cjs → stack-DUADq62v.cjs} +20 -190
- package/dist/stack-DUADq62v.cjs.map +1 -0
- package/dist/{stack-DZn7Yr8z.mjs → stack-LelP4jv7.mjs} +21 -161
- package/dist/stack-LelP4jv7.mjs.map +1 -0
- package/dist/{stage-tdH9m6Wf.cjs → stage-BwY2DLIb.cjs} +24 -5
- package/dist/{stage-tdH9m6Wf.cjs.map → stage-BwY2DLIb.cjs.map} +1 -1
- package/dist/{stage-CoUrlN-W.mjs → stage-DQuJRU3S.mjs} +7 -6
- package/dist/{stage-CoUrlN-W.mjs.map → stage-DQuJRU3S.mjs.map} +1 -1
- package/dist/target/public.cjs +1 -1
- package/dist/target/public.mjs +1 -1
- package/dist/{terminal-BI7b8BdH.mjs → terminal-BTX6f2XO.mjs} +2 -2
- package/dist/{terminal-BI7b8BdH.mjs.map → terminal-BTX6f2XO.mjs.map} +1 -1
- package/dist/{terminal-iL0e-c9K.cjs → terminal-EeBAmc7P.cjs} +2 -2
- package/dist/{terminal-iL0e-c9K.cjs.map → terminal-EeBAmc7P.cjs.map} +1 -1
- package/package.json +15 -15
- package/dist/apps-D83caHjP.cjs.map +0 -1
- package/dist/apps-DpyJvU00.mjs.map +0 -1
- package/dist/compose-B9uSqCxY.cjs.map +0 -1
- package/dist/compose-CbXGx1_z.mjs.map +0 -1
- package/dist/dns-BxgfpQWO.mjs.map +0 -1
- package/dist/dns-CiUCbOXH.cjs.map +0 -1
- package/dist/engine-Ci62MZrE.cjs.map +0 -1
- package/dist/engine-zE2sQUNS.mjs.map +0 -1
- package/dist/github-DXBTTGl3.cjs.map +0 -1
- package/dist/github-Di-u6VhX.mjs.map +0 -1
- package/dist/stack-BmjNDZiJ.cjs.map +0 -1
- package/dist/stack-DZn7Yr8z.mjs.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as GkmError } from "./errors-D8Gwp5kU.mjs";
|
|
2
|
-
import { C as storedCredentials, Q as imageRef, n as findRootDomain, r as normalizeDnsConfig } from "./dns-
|
|
2
|
+
import { C as storedCredentials, Q as imageRef, n as findRootDomain, r as normalizeDnsConfig, rt as stageTag } from "./dns-BM2DE6jt.mjs";
|
|
3
3
|
import { B as LOGS_PORT, I as otlpTelemetryEnv, L as resolveStageTelemetry, Ot as certificateFor, Rt as isReservedStageKey, U as stageProvider, ht as servesOnCdn, kt as proxyFor, mt as s3Region, nt as bucketName, ot as appKey, ut as fileServerHost, z as telemetryEnv } from "./workspace-BBa1Ck5j.mjs";
|
|
4
|
-
import { A as originSecretKey,
|
|
5
|
-
import { $ as clientIpRule, C as redisService, Et as NoDomainForStage, F as stackTelemetry, G as EMULATOR_ACCESS_KEY_ID, H as minioWebhookEnv, L as telemetryOf, M as isTelemetryKey, N as scopeTelemetryEnv, Ot as isMainFrontendApp, R as usesTelemetry, S as STACK_CACHE, St as logsService, T as stackRedis, W as watchedBuckets, Z as LOCAL_TLD, _t as LOGS_SERVICE, at as DEFAULT_IMAGES, bt as logsOnPort, ct as portKeys, et as hostFor, g as postgresSuperuser, k as planFor, kt as resolveHost, n as composeFor, p as LOCAL_RABBITMQ_USER, tt as hostsFor, wt as stackLogs, x as REDIS_SERVICE, xt as logsPorts } from "./compose-
|
|
4
|
+
import { A as originSecretKey, B as WORKER_PORT, D as ORIGIN_VERIFY_HEADER, I as LOCAL_CA_BUILD_SECRET, L as PRERENDER_RUN_ARG, Lt as stageBackups, N as composeBuildPaths, R as PROCESSOR_PORT, St as bucketPolicies, a as networkEnv, ct as processorUnits, ht as stackBackups, it as runsServer, j as processorOriginHost, jt as signedOrigins, kt as localRolePassword, lt as workerUnits, mt as backupsService, nt as offlineBuildHosts, rt as publicBuildValues, s as processEnvKeys, tt as OFFLINE_BUILD_ADDRESS, ut as BACKUPS_SERVICE, w as localAuthorityPaths, xt as bucketLifecycles, z as TURBO_VERSION } from "./apps-G1Q2j-fs.mjs";
|
|
5
|
+
import { $ as clientIpRule, C as redisService, Et as NoDomainForStage, F as stackTelemetry, G as EMULATOR_ACCESS_KEY_ID, H as minioWebhookEnv, L as telemetryOf, M as isTelemetryKey, N as scopeTelemetryEnv, Ot as isMainFrontendApp, R as usesTelemetry, S as STACK_CACHE, St as logsService, T as stackRedis, W as watchedBuckets, Z as LOCAL_TLD, _t as LOGS_SERVICE, at as DEFAULT_IMAGES, bt as logsOnPort, ct as portKeys, et as hostFor, g as postgresSuperuser, k as planFor, kt as resolveHost, n as composeFor, p as LOCAL_RABBITMQ_USER, tt as hostsFor, wt as stackLogs, x as REDIS_SERVICE, xt as logsPorts } from "./compose-D_shZ1mI.mjs";
|
|
6
6
|
import { a as SNS_SUBSCRIPTIONS_KEY, c as INBOX_RELAY_TOKEN_KEY, d as inboxWebhookUrl, o as objectsRoute, s as subscriberRoute, u as inboxRelayWorker } from "./SubscriberGenerator-NxcLNeDJ.mjs";
|
|
7
7
|
import { d as DEFAULT_EVENTS } from "./drivers-BQRb3KsL.mjs";
|
|
8
|
-
import { _ as suppliedOnly, f as devServicesUsed, g as stageServiceDeclarations, i as stageProviderNotes, p as externalServices } from "./notes-
|
|
9
|
-
import { T as validateImageRef, o as processorDockerfile, r as appDockerfile, s as workerDockerfile } from "./docker-
|
|
8
|
+
import { _ as suppliedOnly, f as devServicesUsed, g as stageServiceDeclarations, i as stageProviderNotes, p as externalServices } from "./notes-BwBGVMYR.mjs";
|
|
9
|
+
import { T as validateImageRef, o as processorDockerfile, r as appDockerfile, s as workerDockerfile } from "./docker-DCtw3rjP.mjs";
|
|
10
10
|
import { join } from "node:path";
|
|
11
11
|
import { createHash } from "node:crypto";
|
|
12
12
|
import { CLIENT_IP_HEADER, EDGE_TOKEN_HEADER, EDGE_TOKEN_KEY, WILDCARD_SUBDOMAIN, isWildcardSite, providedKeyFor, provisionOrder } from "@geekmidas/manifest";
|
|
@@ -302,154 +302,6 @@ const HEADER = `# Generated by gkm compose from the construct manifest — do no
|
|
|
302
302
|
# stage puts behind a password asks for its login first.
|
|
303
303
|
`;
|
|
304
304
|
//#endregion
|
|
305
|
-
//#region src/compose/images.ts
|
|
306
|
-
/**
|
|
307
|
-
* Which image each app runs — and, for a tag, whether every one exists.
|
|
308
|
-
*
|
|
309
|
-
* A tag is a release's identity: `--tag=v1.4.0` means the images CI pushed as
|
|
310
|
-
* v1.4.0, and nothing else. So a stack is never half rolled out: every app's
|
|
311
|
-
* image is asked of the registry before anything is pulled or the running
|
|
312
|
-
* stack is touched, and one missing image stops the whole run naming every
|
|
313
|
-
* one that is missing. Nor is a missing image quietly built instead — a build
|
|
314
|
-
* of whatever is checked out here is not the release the tag names.
|
|
315
|
-
*/
|
|
316
|
-
/**
|
|
317
|
-
* The tag a site's image carries for a release.
|
|
318
|
-
*
|
|
319
|
-
* A site's public URLs are inlined when it is built, so one bundle serves one
|
|
320
|
-
* stage: `v1.4.0-production` and `v1.4.0-staging` are two images of the same
|
|
321
|
-
* commit. A backend reads its URLs at runtime, so one image serves every stage
|
|
322
|
-
* and its tag is the release's alone.
|
|
323
|
-
*/
|
|
324
|
-
function siteTag(tag, stage) {
|
|
325
|
-
return `${tag}-${stage}`;
|
|
326
|
-
}
|
|
327
|
-
/** Images a tag names that the registry does not have. */
|
|
328
|
-
var ImageTagNotFound = class extends GkmError {
|
|
329
|
-
tag;
|
|
330
|
-
refs;
|
|
331
|
-
constructor(tag, refs) {
|
|
332
|
-
super(`The registry has no image for ${refs.length === 1 ? "this app" : `${refs.length} apps`} at '${tag}':\n` + refs.map((ref) => ` - ${ref}`).join("\n") + `\nNothing was pulled or started. Push '${tag}' for every app from CI, pick a tag that exists, or run without --tag to build from this checkout.`);
|
|
333
|
-
this.tag = tag;
|
|
334
|
-
this.refs = refs;
|
|
335
|
-
this.name = "ImageTagNotFound";
|
|
336
|
-
}
|
|
337
|
-
};
|
|
338
|
-
/** The registry did not answer, or did not let this machine in. */
|
|
339
|
-
var RegistryUnreachable = class extends GkmError {
|
|
340
|
-
ref;
|
|
341
|
-
detail;
|
|
342
|
-
constructor(ref, detail) {
|
|
343
|
-
super(`Could not ask the registry about ${ref}: ${detail || "no answer"}\nNothing was pulled or started. Check the registry is reachable and that this machine is logged in to it (\`docker login <registry>\`).`);
|
|
344
|
-
this.ref = ref;
|
|
345
|
-
this.detail = detail;
|
|
346
|
-
this.name = "RegistryUnreachable";
|
|
347
|
-
}
|
|
348
|
-
};
|
|
349
|
-
/**
|
|
350
|
-
* Assert every image exists, before anything else happens.
|
|
351
|
-
*
|
|
352
|
-
* Asked all at once and reported all at once: a release missing two images is
|
|
353
|
-
* one problem with two names, and finding the second only after fixing the
|
|
354
|
-
* first is a slower way to learn the same thing.
|
|
355
|
-
*
|
|
356
|
-
* @throws {RegistryUnreachable} when the registry cannot say
|
|
357
|
-
* @throws {ImageTagNotFound} listing every missing image
|
|
358
|
-
*/
|
|
359
|
-
async function assertImagesExist(docker, tag, images) {
|
|
360
|
-
const lookups = await Promise.all(images.map((image) => docker.lookup(image.ref)));
|
|
361
|
-
const unreachable = lookups.find((lookup) => lookup.status === "unreachable");
|
|
362
|
-
if (unreachable?.status === "unreachable") throw new RegistryUnreachable(unreachable.ref, unreachable.detail);
|
|
363
|
-
const missing = lookups.filter((lookup) => lookup.status === "missing").map((lookup) => lookup.ref);
|
|
364
|
-
if (missing.length > 0) throw new ImageTagNotFound(tag, missing);
|
|
365
|
-
}
|
|
366
|
-
/**
|
|
367
|
-
* A push or a pull with no `deploy.registry` to push to or pull from.
|
|
368
|
-
*
|
|
369
|
-
* Without one an image is named `<namespace>/<project>-<app>:<tag>`, which
|
|
370
|
-
* Docker resolves to Docker Hub — so a release would be pushed to, or pulled
|
|
371
|
-
* from, somebody else's account. It is never a fallback.
|
|
372
|
-
*/
|
|
373
|
-
var RegistryRequired = class extends GkmError {
|
|
374
|
-
operation;
|
|
375
|
-
ref;
|
|
376
|
-
constructor(operation, ref) {
|
|
377
|
-
super(`${operation === "push" ? "Pushing" : "Pulling"} images needs a registry, and gkm.config.ts sets no deploy.registry: '${ref}' would be ${operation === "push" ? "pushed to" : "pulled from"} Docker Hub. Set deploy.registry (e.g. registry: 'ghcr.io/acme') in gkm.config.ts.` + (operation === "pull" ? " To run images built here instead, pass --build." : ""));
|
|
378
|
-
this.operation = operation;
|
|
379
|
-
this.ref = ref;
|
|
380
|
-
this.name = "RegistryRequired";
|
|
381
|
-
}
|
|
382
|
-
};
|
|
383
|
-
/** An image pinned to its digest: `<ref>@sha256:…`. */
|
|
384
|
-
function pinnedRef(ref, digest) {
|
|
385
|
-
return `${ref.split("@")[0]}@${digest}`;
|
|
386
|
-
}
|
|
387
|
-
/** A digests file with no entry for an app the stack runs. */
|
|
388
|
-
var ImageDigestMissing = class extends GkmError {
|
|
389
|
-
file;
|
|
390
|
-
apps;
|
|
391
|
-
constructor(file, apps) {
|
|
392
|
-
super(`${file} pins no digest for ${apps.join(", ")}. Use the file the same release's \`gkm compose --build --push --digests-file\` wrote, or run without --digests-file to pull by tag.`);
|
|
393
|
-
this.file = file;
|
|
394
|
-
this.apps = apps;
|
|
395
|
-
this.name = "ImageDigestMissing";
|
|
396
|
-
}
|
|
397
|
-
};
|
|
398
|
-
/** A digests file entry that is not this app's image. */
|
|
399
|
-
var ImageDigestMismatch = class extends GkmError {
|
|
400
|
-
app;
|
|
401
|
-
expected;
|
|
402
|
-
found;
|
|
403
|
-
constructor(app, expected, found) {
|
|
404
|
-
super(`The digests file pins '${app}' to ${found}, but this release runs ${expected}. It was written for another registry, project, stage or tag; use the file this stage's push of this tag wrote.`);
|
|
405
|
-
this.app = app;
|
|
406
|
-
this.expected = expected;
|
|
407
|
-
this.found = found;
|
|
408
|
-
this.name = "ImageDigestMismatch";
|
|
409
|
-
}
|
|
410
|
-
};
|
|
411
|
-
/** A digests file that is not a JSON object of app to pinned ref. */
|
|
412
|
-
var ImageDigestsInvalid = class extends GkmError {
|
|
413
|
-
file;
|
|
414
|
-
detail;
|
|
415
|
-
constructor(file, detail) {
|
|
416
|
-
super(`${file} is not a digests file (${detail}). It should be the JSON object \`gkm compose --build --push --digests-file\` writes: { "api": "<registry>/<image>:<tag>@sha256:…" }.`);
|
|
417
|
-
this.file = file;
|
|
418
|
-
this.detail = detail;
|
|
419
|
-
this.name = "ImageDigestsInvalid";
|
|
420
|
-
}
|
|
421
|
-
};
|
|
422
|
-
/** Parse a digests file's content, checking its shape. */
|
|
423
|
-
function parseDigests(file, content) {
|
|
424
|
-
let parsed;
|
|
425
|
-
try {
|
|
426
|
-
parsed = JSON.parse(content);
|
|
427
|
-
} catch (error) {
|
|
428
|
-
throw new ImageDigestsInvalid(file, error instanceof Error ? error.message : String(error));
|
|
429
|
-
}
|
|
430
|
-
if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) throw new ImageDigestsInvalid(file, "not a JSON object");
|
|
431
|
-
for (const [app, value] of Object.entries(parsed)) if (typeof value !== "string" || !/@sha256:[0-9a-f]{64}$/.test(value)) throw new ImageDigestsInvalid(file, `'${app}' is not an <image>:<tag>@sha256:… ref`);
|
|
432
|
-
return parsed;
|
|
433
|
-
}
|
|
434
|
-
/**
|
|
435
|
-
* Each image pinned to the digest the file names for it.
|
|
436
|
-
*
|
|
437
|
-
* @throws {ImageDigestMissing} naming every app the file has no entry for
|
|
438
|
-
* @throws {ImageDigestMismatch} when an entry is another image or tag
|
|
439
|
-
*/
|
|
440
|
-
function pinImages(file, digests, images) {
|
|
441
|
-
const missing = images.filter((image) => !digests[image.app]).map((image) => image.app);
|
|
442
|
-
if (missing.length > 0) throw new ImageDigestMissing(file, missing);
|
|
443
|
-
return images.map((image) => {
|
|
444
|
-
const pinned = digests[image.app];
|
|
445
|
-
if (pinned.split("@")[0] !== image.ref) throw new ImageDigestMismatch(image.app, image.ref, pinned);
|
|
446
|
-
return {
|
|
447
|
-
...image,
|
|
448
|
-
ref: pinned
|
|
449
|
-
};
|
|
450
|
-
});
|
|
451
|
-
}
|
|
452
|
-
//#endregion
|
|
453
305
|
//#region src/compose/sitePassword.ts
|
|
454
306
|
/**
|
|
455
307
|
* A site served behind a password on some deployed stages — a `StaticSite`'s
|
|
@@ -1999,8 +1851,7 @@ function stackApps(workspace, manifest, plan, options) {
|
|
|
1999
1851
|
if (!app || !resource || !app.port) continue;
|
|
2000
1852
|
const { host, aliases, redirects } = appHosts(name, app, workspace, resource, options);
|
|
2001
1853
|
const site = declaration.kind === "site";
|
|
2002
|
-
const tag =
|
|
2003
|
-
const ref = validateImageRef(imageRef(options.identity, name, options.images.registry, tag));
|
|
1854
|
+
const { ref, tag } = stackImage(name, options);
|
|
2004
1855
|
apps.push({
|
|
2005
1856
|
app: name,
|
|
2006
1857
|
name,
|
|
@@ -2190,6 +2041,17 @@ function assertHostsUnique(routes) {
|
|
|
2190
2041
|
claimed.set(host, route.name);
|
|
2191
2042
|
}
|
|
2192
2043
|
}
|
|
2044
|
+
/**
|
|
2045
|
+
* The image an app, worker or processor runs on the stage: the release's tag
|
|
2046
|
+
* with the stage on it (`stageTag`), as every target names its images.
|
|
2047
|
+
*/
|
|
2048
|
+
function stackImage(name, options) {
|
|
2049
|
+
const tag = stageTag(options.images.tag, options.stage);
|
|
2050
|
+
return {
|
|
2051
|
+
ref: validateImageRef(imageRef(options.identity, name, options.images.registry, tag)),
|
|
2052
|
+
tag
|
|
2053
|
+
};
|
|
2054
|
+
}
|
|
2193
2055
|
/** Each processor unit's image, and where it is built from. */
|
|
2194
2056
|
function stackProcessors(units, options) {
|
|
2195
2057
|
return units.map((unit) => {
|
|
@@ -2202,8 +2064,7 @@ function stackProcessors(units, options) {
|
|
|
2202
2064
|
host: unit.app,
|
|
2203
2065
|
port: PROCESSOR_PORT,
|
|
2204
2066
|
prefixes: [...new Set(processors.map((p) => p.prefix))].sort(),
|
|
2205
|
-
|
|
2206
|
-
tag: options.images.tag,
|
|
2067
|
+
...stackImage(unit.name, options),
|
|
2207
2068
|
...options.images.mode === "build" ? { build: { dockerfile: `${stackDir(options.stage)}/Dockerfile.${unit.name}` } } : {}
|
|
2208
2069
|
};
|
|
2209
2070
|
});
|
|
@@ -2216,8 +2077,7 @@ function stackWorkers(units, options) {
|
|
|
2216
2077
|
id: unit.id,
|
|
2217
2078
|
host: unit.app,
|
|
2218
2079
|
port: WORKER_PORT,
|
|
2219
|
-
|
|
2220
|
-
tag: options.images.tag,
|
|
2080
|
+
...stackImage(unit.name, options),
|
|
2221
2081
|
...options.images.mode === "build" ? { build: { dockerfile: `${stackDir(options.stage)}/Dockerfile.${unit.name}` } } : {}
|
|
2222
2082
|
}));
|
|
2223
2083
|
}
|
|
@@ -2505,6 +2365,6 @@ function withLogsPort(stack, port) {
|
|
|
2505
2365
|
};
|
|
2506
2366
|
}
|
|
2507
2367
|
//#endregion
|
|
2508
|
-
export {
|
|
2368
|
+
export { readEdgeClaims as C, awsClientConfig as D, routeHosts as E, awsEndpoint as O, edgeComposeFile as S, assertSitePasswords as T, EDGE_DYNAMIC_DIR as _, composeProject as a, EDGE_SERVICE as b, derivedCredentials as c, stackDir as d, stackPlan as f, EDGE_CERTS_DIR as g, EDGE_AWS_CREDENTIALS as h, LOOPBACK_SERVICES as i, awsProvisioningCredentials as k, envFile as l, withLogsPort as m, LOGS_PORT_ENV as n, composeStack as o, withCaddyConfigs as p, LOG_ROTATION as r, deployedInboxEnv as s, EDGE_PORT_ENV as t, replicaNames as u, EDGE_NETWORK as v, traefikStaticFile as w, claimsOverlap as x, EDGE_PROJECT as y };
|
|
2509
2369
|
|
|
2510
|
-
//# sourceMappingURL=stack-
|
|
2370
|
+
//# sourceMappingURL=stack-LelP4jv7.mjs.map
|