@alchemy.run/docker 0.0.0 → 2.0.0-beta.84
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/LICENSE +201 -0
- package/README.md +46 -4
- package/lib/Bootstrap.d.ts +7 -0
- package/lib/Bootstrap.d.ts.map +1 -0
- package/lib/Bootstrap.js +25 -0
- package/lib/Bootstrap.js.map +1 -0
- package/lib/BuildHash.d.ts +47 -0
- package/lib/BuildHash.d.ts.map +1 -0
- package/lib/BuildHash.js +165 -0
- package/lib/BuildHash.js.map +1 -0
- package/lib/Container.d.ts +352 -0
- package/lib/Container.d.ts.map +1 -0
- package/lib/Container.js +531 -0
- package/lib/Container.js.map +1 -0
- package/lib/Context.d.ts +86 -0
- package/lib/Context.d.ts.map +1 -0
- package/lib/Context.js +146 -0
- package/lib/Context.js.map +1 -0
- package/lib/Docker.d.ts +448 -0
- package/lib/Docker.d.ts.map +1 -0
- package/lib/Docker.js +416 -0
- package/lib/Docker.js.map +1 -0
- package/lib/Dockerfile.d.ts +72 -0
- package/lib/Dockerfile.d.ts.map +1 -0
- package/lib/Dockerfile.js +12 -0
- package/lib/Dockerfile.js.map +1 -0
- package/lib/HealthcheckCommand.d.ts +17 -0
- package/lib/HealthcheckCommand.d.ts.map +1 -0
- package/lib/HealthcheckCommand.js +33 -0
- package/lib/HealthcheckCommand.js.map +1 -0
- package/lib/Image.d.ts +151 -0
- package/lib/Image.d.ts.map +1 -0
- package/lib/Image.js +192 -0
- package/lib/Image.js.map +1 -0
- package/lib/ImageSource.d.ts +234 -0
- package/lib/ImageSource.d.ts.map +1 -0
- package/lib/ImageSource.js +469 -0
- package/lib/ImageSource.js.map +1 -0
- package/lib/Network.d.ts +70 -0
- package/lib/Network.d.ts.map +1 -0
- package/lib/Network.js +111 -0
- package/lib/Network.js.map +1 -0
- package/lib/Providers.d.ts +21 -0
- package/lib/Providers.d.ts.map +1 -0
- package/lib/Providers.js +26 -0
- package/lib/Providers.js.map +1 -0
- package/lib/Registry.d.ts +47 -0
- package/lib/Registry.d.ts.map +1 -0
- package/lib/Registry.js +67 -0
- package/lib/Registry.js.map +1 -0
- package/lib/RegistryError.d.ts +21 -0
- package/lib/RegistryError.d.ts.map +1 -0
- package/lib/RegistryError.js +28 -0
- package/lib/RegistryError.js.map +1 -0
- package/lib/RemoteImage.d.ts +118 -0
- package/lib/RemoteImage.d.ts.map +1 -0
- package/lib/RemoteImage.js +164 -0
- package/lib/RemoteImage.js.map +1 -0
- package/lib/Service.d.ts +478 -0
- package/lib/Service.d.ts.map +1 -0
- package/lib/Service.js +588 -0
- package/lib/Service.js.map +1 -0
- package/lib/ServiceImage.d.ts +78 -0
- package/lib/ServiceImage.d.ts.map +1 -0
- package/lib/ServiceImage.js +162 -0
- package/lib/ServiceImage.js.map +1 -0
- package/lib/Swarm.d.ts +119 -0
- package/lib/Swarm.d.ts.map +1 -0
- package/lib/Swarm.js +148 -0
- package/lib/Swarm.js.map +1 -0
- package/lib/Volume.d.ts +94 -0
- package/lib/Volume.d.ts.map +1 -0
- package/lib/Volume.js +133 -0
- package/lib/Volume.js.map +1 -0
- package/lib/index.d.ts +14 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +13 -0
- package/lib/index.js.map +1 -0
- package/package.json +58 -3
- package/src/Bootstrap.ts +51 -0
- package/src/BuildHash.ts +255 -0
- package/src/Container.ts +792 -0
- package/src/Context.ts +215 -0
- package/src/Docker.ts +1079 -0
- package/src/Dockerfile.ts +81 -0
- package/src/HealthcheckCommand.ts +35 -0
- package/src/Image.ts +293 -0
- package/src/ImageSource.ts +769 -0
- package/src/Network.ts +169 -0
- package/src/Providers.ts +46 -0
- package/src/Registry.ts +91 -0
- package/src/RegistryError.ts +48 -0
- package/src/RemoteImage.ts +255 -0
- package/src/Service.ts +1080 -0
- package/src/ServiceImage.ts +252 -0
- package/src/Swarm.ts +221 -0
- package/src/Volume.ts +193 -0
- package/src/index.ts +17 -0
|
@@ -0,0 +1 @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lib/Service.d.ts
ADDED
|
@@ -0,0 +1,478 @@
|
|
|
1
|
+
import { Platform, type Main, type PlatformProps } from "alchemy/Platform";
|
|
2
|
+
import * as Provider from "alchemy/Provider";
|
|
3
|
+
import type { Resource } from "alchemy/Resource";
|
|
4
|
+
import { type HostRuntimeContext, type ServerHost } from "alchemy/Runtime/Process";
|
|
5
|
+
import { Stack } from "alchemy/Stack";
|
|
6
|
+
import * as Redacted from "effect/Redacted";
|
|
7
|
+
import type * as rolldown from "rolldown";
|
|
8
|
+
import { Docker } from "./Docker.ts";
|
|
9
|
+
import type { Providers } from "./Providers.ts";
|
|
10
|
+
export interface ServicePropsBase extends PlatformProps {
|
|
11
|
+
/**
|
|
12
|
+
* Service name.
|
|
13
|
+
*
|
|
14
|
+
* @default Generated from stack, stage, logical id, and instance id.
|
|
15
|
+
*/
|
|
16
|
+
name?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The engine the service is deployed to: a Docker context name, a
|
|
19
|
+
* `Docker.Context` resource, or a `Docker.Swarm` — passing the swarm also
|
|
20
|
+
* orders the service after the swarm is initialized.
|
|
21
|
+
*/
|
|
22
|
+
context?: Docker.EngineRef;
|
|
23
|
+
/** Entrypoint command passed after the image. */
|
|
24
|
+
command?: string[];
|
|
25
|
+
/** Additional args appended after `command`. */
|
|
26
|
+
args?: string[];
|
|
27
|
+
/** Environment variables. Use Redacted for secrets. */
|
|
28
|
+
environment?: Record<string, string | Redacted.Redacted<string>>;
|
|
29
|
+
/**
|
|
30
|
+
* Environment variables injected by the platform (bound `Config` values and
|
|
31
|
+
* future bindings). Merged after `environment`; usually not set directly.
|
|
32
|
+
*/
|
|
33
|
+
env?: Record<string, any>;
|
|
34
|
+
/** Overlay networks attached to this service. */
|
|
35
|
+
networks?: Array<string | Service.NetworkAttachment>;
|
|
36
|
+
/** Published port mappings. */
|
|
37
|
+
ports?: Service.PortMapping[];
|
|
38
|
+
/**
|
|
39
|
+
* Service discovery endpoint mode.
|
|
40
|
+
*
|
|
41
|
+
* @default "vip"
|
|
42
|
+
*/
|
|
43
|
+
endpointMode?: "vip" | "dnsrr";
|
|
44
|
+
/**
|
|
45
|
+
* Desired number of service replicas.
|
|
46
|
+
*
|
|
47
|
+
* @default 1
|
|
48
|
+
*/
|
|
49
|
+
replicas?: number;
|
|
50
|
+
/** Placement controls for task scheduling. */
|
|
51
|
+
placement?: Service.Placement;
|
|
52
|
+
/** Deprecated alias for `placement.constraints`. */
|
|
53
|
+
constraints?: string[];
|
|
54
|
+
/** Rolling update strategy for service updates. */
|
|
55
|
+
updateConfig?: Service.RolloutConfig;
|
|
56
|
+
/** Rollback strategy applied when updates fail. */
|
|
57
|
+
rollbackConfig?: Service.RolloutConfig;
|
|
58
|
+
/** Task restart behavior. */
|
|
59
|
+
restartPolicy?: Service.RestartPolicy;
|
|
60
|
+
/** Container healthcheck for service tasks. */
|
|
61
|
+
healthcheck?: Service.Healthcheck;
|
|
62
|
+
/** Grace period before force-killing a task during shutdown, e.g. `"30s"`. */
|
|
63
|
+
stopGracePeriod?: string;
|
|
64
|
+
/** Volume or bind mounts. */
|
|
65
|
+
volumes?: Service.VolumeMapping[];
|
|
66
|
+
/** Swarm secrets mounted into task containers. */
|
|
67
|
+
secrets?: Service.SecretRef[];
|
|
68
|
+
/** Swarm configs mounted into task containers. */
|
|
69
|
+
configs?: Service.ConfigRef[];
|
|
70
|
+
/**
|
|
71
|
+
* Mount task root filesystem read-only.
|
|
72
|
+
*
|
|
73
|
+
* @default false
|
|
74
|
+
*/
|
|
75
|
+
readOnlyRootFs?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Service labels. Alchemy's internal ownership labels are added
|
|
78
|
+
* automatically.
|
|
79
|
+
*/
|
|
80
|
+
labels?: Record<string, string>;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Run a pre-built image: a registry reference or a Docker image resource
|
|
84
|
+
* (`Docker.Image` / `Docker.RemoteImage`).
|
|
85
|
+
*/
|
|
86
|
+
export interface ImageServiceProps extends ServicePropsBase {
|
|
87
|
+
/** Docker image reference or Docker image resource. */
|
|
88
|
+
image: Service.Image;
|
|
89
|
+
main?: undefined;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Bundle an inline Effect program (`main`) into a generated image built
|
|
93
|
+
* against the service's Docker context. The optional `image` is the
|
|
94
|
+
* environment base (`FROM`) and must be able to run the bun runtime.
|
|
95
|
+
*/
|
|
96
|
+
export interface BundledServiceProps extends ServicePropsBase {
|
|
97
|
+
/**
|
|
98
|
+
* Module entrypoint for the bundled program. This should typically be
|
|
99
|
+
* `import.meta.url` (or `import.meta.filename`) from an inline Effect
|
|
100
|
+
* program.
|
|
101
|
+
*/
|
|
102
|
+
main: string;
|
|
103
|
+
/**
|
|
104
|
+
* Environment image used as the generated Dockerfile's `FROM`. Must be
|
|
105
|
+
* able to run the bun runtime.
|
|
106
|
+
*
|
|
107
|
+
* @default "oven/bun:1"
|
|
108
|
+
*/
|
|
109
|
+
image?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Container port the bundled HTTP server listens on. Baked into the image
|
|
112
|
+
* as `ENV PORT` + `EXPOSE`; publish it to the swarm ingress with `ports`.
|
|
113
|
+
*/
|
|
114
|
+
port?: number;
|
|
115
|
+
/**
|
|
116
|
+
* Named export to load from `main`.
|
|
117
|
+
*
|
|
118
|
+
* @default "default"
|
|
119
|
+
*/
|
|
120
|
+
handler?: string;
|
|
121
|
+
/** Bundler configuration for the entrypoint. */
|
|
122
|
+
build?: {
|
|
123
|
+
input?: Partial<rolldown.InputOptions>;
|
|
124
|
+
output?: Partial<rolldown.OutputOptions>;
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Service props — the image comes from exactly one of two sources, flat on
|
|
129
|
+
* the props: `image` (a pre-built reference) or `main` (a bundled Effect
|
|
130
|
+
* program).
|
|
131
|
+
*/
|
|
132
|
+
export type ServiceProps = ImageServiceProps | BundledServiceProps;
|
|
133
|
+
export declare namespace Service {
|
|
134
|
+
type Image = string | {
|
|
135
|
+
imageRef: string;
|
|
136
|
+
};
|
|
137
|
+
interface PortMapping {
|
|
138
|
+
/** Published port on the swarm node. Omit to let Swarm assign one dynamically. */
|
|
139
|
+
external?: number;
|
|
140
|
+
/** Container port receiving traffic. */
|
|
141
|
+
internal: number;
|
|
142
|
+
/**
|
|
143
|
+
* Protocol used for the mapping.
|
|
144
|
+
*
|
|
145
|
+
* @default "tcp"
|
|
146
|
+
*/
|
|
147
|
+
protocol?: "tcp" | "udp";
|
|
148
|
+
/**
|
|
149
|
+
* Publish through the swarm routing mesh (`ingress`) or directly on each
|
|
150
|
+
* node (`host`).
|
|
151
|
+
*
|
|
152
|
+
* @default "ingress"
|
|
153
|
+
*/
|
|
154
|
+
mode?: "ingress" | "host";
|
|
155
|
+
}
|
|
156
|
+
interface VolumeMapping {
|
|
157
|
+
/** Host path or named volume source. */
|
|
158
|
+
hostPath: string;
|
|
159
|
+
/** Container path. */
|
|
160
|
+
containerPath: string;
|
|
161
|
+
/**
|
|
162
|
+
* Mount read-only.
|
|
163
|
+
*
|
|
164
|
+
* @default false
|
|
165
|
+
*/
|
|
166
|
+
readOnly?: boolean;
|
|
167
|
+
}
|
|
168
|
+
interface NetworkAttachment {
|
|
169
|
+
/** Network name. */
|
|
170
|
+
name: string;
|
|
171
|
+
/** Network aliases for the service's tasks. */
|
|
172
|
+
aliases?: string[];
|
|
173
|
+
}
|
|
174
|
+
interface Placement {
|
|
175
|
+
/** Placement constraints, e.g. `"node.role==worker"`. */
|
|
176
|
+
constraints?: string[];
|
|
177
|
+
/** Placement preferences, e.g. `"spread=node.labels.zone"`. */
|
|
178
|
+
preferences?: string[];
|
|
179
|
+
/** Maximum number of replicas per swarm node. */
|
|
180
|
+
maxReplicasPerNode?: number;
|
|
181
|
+
}
|
|
182
|
+
interface RolloutConfig {
|
|
183
|
+
/** Number of tasks updated simultaneously. */
|
|
184
|
+
parallelism?: number;
|
|
185
|
+
/** Delay between task updates, e.g. `"10s"`. */
|
|
186
|
+
delay?: string;
|
|
187
|
+
/** Duration to monitor each updated task for failure, e.g. `"30s"`. */
|
|
188
|
+
monitor?: string;
|
|
189
|
+
/** Action on update failure. */
|
|
190
|
+
failureAction?: "pause" | "continue" | "rollback";
|
|
191
|
+
/** Failure ratio tolerated during an update. */
|
|
192
|
+
maxFailureRatio?: number;
|
|
193
|
+
/** Operation order during updates. */
|
|
194
|
+
order?: "stop-first" | "start-first";
|
|
195
|
+
}
|
|
196
|
+
interface RestartPolicy {
|
|
197
|
+
/** Condition under which tasks restart. */
|
|
198
|
+
condition?: "none" | "on-failure" | "any";
|
|
199
|
+
/** Delay between restart attempts, e.g. `"5s"`. */
|
|
200
|
+
delay?: string;
|
|
201
|
+
/** Maximum restart attempts before giving up. */
|
|
202
|
+
maxAttempts?: number;
|
|
203
|
+
/** Window used to evaluate the restart policy, e.g. `"120s"`. */
|
|
204
|
+
window?: string;
|
|
205
|
+
}
|
|
206
|
+
interface Healthcheck {
|
|
207
|
+
/**
|
|
208
|
+
* Command to run for health checks. A string runs in the container's
|
|
209
|
+
* shell. An array follows Docker's healthcheck `Test` form:
|
|
210
|
+
* `["CMD-SHELL", "pg_isready -U app"]`, `["CMD", "pg_isready", "-U", "app"]`,
|
|
211
|
+
* or `["NONE"]` to disable the image's healthcheck.
|
|
212
|
+
*/
|
|
213
|
+
cmd: string[] | string;
|
|
214
|
+
/** Time between checks, e.g. `"30s"`. */
|
|
215
|
+
interval?: string;
|
|
216
|
+
/** Maximum time a check may run, e.g. `"5s"`. */
|
|
217
|
+
timeout?: string;
|
|
218
|
+
/** Consecutive failures before unhealthy. */
|
|
219
|
+
retries?: number;
|
|
220
|
+
/** Startup grace period, e.g. `"30s"`. */
|
|
221
|
+
startPeriod?: string;
|
|
222
|
+
}
|
|
223
|
+
interface SecretRef {
|
|
224
|
+
/** Swarm secret name. */
|
|
225
|
+
source: string;
|
|
226
|
+
/** Target file name in `/run/secrets/`. Defaults to `source`. */
|
|
227
|
+
target?: string;
|
|
228
|
+
/** File owner uid. */
|
|
229
|
+
uid?: string;
|
|
230
|
+
/** File owner gid. */
|
|
231
|
+
gid?: string;
|
|
232
|
+
/** File mode, e.g. `0o400`. */
|
|
233
|
+
mode?: number | string;
|
|
234
|
+
}
|
|
235
|
+
interface ConfigRef {
|
|
236
|
+
/** Swarm config name. */
|
|
237
|
+
source: string;
|
|
238
|
+
/** Target path in the container. Defaults to `/<source>`. */
|
|
239
|
+
target?: string;
|
|
240
|
+
/** File owner uid. */
|
|
241
|
+
uid?: string;
|
|
242
|
+
/** File owner gid. */
|
|
243
|
+
gid?: string;
|
|
244
|
+
/** File mode, e.g. `0o444`. */
|
|
245
|
+
mode?: number | string;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
export interface Service extends Resource<"Docker.Service", ServiceProps, {
|
|
249
|
+
/** Swarm service id. */
|
|
250
|
+
id: string;
|
|
251
|
+
/** Swarm service name. */
|
|
252
|
+
name: string;
|
|
253
|
+
/** Docker context the service is deployed to. */
|
|
254
|
+
context?: string;
|
|
255
|
+
/** Image reference the service runs. */
|
|
256
|
+
image: string;
|
|
257
|
+
/** Desired number of replicas. */
|
|
258
|
+
replicas: number;
|
|
259
|
+
/** Network ids the service's tasks attach to. */
|
|
260
|
+
networks: string[];
|
|
261
|
+
/** Published port mappings reported by Swarm. */
|
|
262
|
+
ports: Service.PortMapping[];
|
|
263
|
+
/** Service labels reported by Swarm. */
|
|
264
|
+
labels: Record<string, string>;
|
|
265
|
+
/** Service discovery endpoint mode. */
|
|
266
|
+
endpointMode: "vip" | "dnsrr";
|
|
267
|
+
/** Creation timestamp in milliseconds since epoch. */
|
|
268
|
+
createdAt: number;
|
|
269
|
+
/** Last update timestamp in milliseconds since epoch. */
|
|
270
|
+
updatedAt: number;
|
|
271
|
+
/** Content hash of the bundled program's image (`main` form only). */
|
|
272
|
+
code?: {
|
|
273
|
+
/** Content hash of the bundled program's image. */
|
|
274
|
+
hash: string;
|
|
275
|
+
};
|
|
276
|
+
}, never, Providers> {
|
|
277
|
+
}
|
|
278
|
+
/** Services available to an effectful `Service` impl at init time. */
|
|
279
|
+
export type ServiceServices = ServerHost;
|
|
280
|
+
/**
|
|
281
|
+
* The impl shape for an effectful `Service`: a long-running server returning
|
|
282
|
+
* `{ fetch }` (plus optional RPC methods).
|
|
283
|
+
*/
|
|
284
|
+
export type ServiceShape = Main<ServiceServices>;
|
|
285
|
+
export interface ServiceRuntimeContext extends HostRuntimeContext {
|
|
286
|
+
readonly Type: "Docker.Service";
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* A Docker Swarm service: N replicas of a container kept alive by the swarm,
|
|
290
|
+
* deployed through the active (or a named) Docker context.
|
|
291
|
+
*
|
|
292
|
+
* The target engine must be a swarm manager — `Service` wraps
|
|
293
|
+
* `docker service`, swarm mode's orchestration API. Declare the swarm with
|
|
294
|
+
* `Docker.Swarm` and pass it as `context` so the service deploys after the
|
|
295
|
+
* swarm exists; for a plain single container on a non-swarm daemon use
|
|
296
|
+
* `Docker.Container` instead.
|
|
297
|
+
*
|
|
298
|
+
* The service's image comes from one of two sources:
|
|
299
|
+
*
|
|
300
|
+
* - `image` — run a pre-built reference (a registry ref, or a `Docker.Image`
|
|
301
|
+
* / `Docker.RemoteImage` resource).
|
|
302
|
+
* - `main` — bundle an inline Effect program into a generated bun image,
|
|
303
|
+
* built directly against the service's Docker context. The impl returns
|
|
304
|
+
* `{ fetch }` and may register background loops via `ServerHost.run` —
|
|
305
|
+
* the same effectful platform shape as `AWS.ECS.Service`.
|
|
306
|
+
*
|
|
307
|
+
* The bundled image is content-addressed and only rebuilt when the program
|
|
308
|
+
* (or its generated Dockerfile) changes. It is built on the target engine's
|
|
309
|
+
* local store — single-node swarms run it as-is; multi-node swarms need the
|
|
310
|
+
* image on a registry every node can reach (build with `Docker.Image` +
|
|
311
|
+
* `registry` and pass the pushed ref as `image` instead).
|
|
312
|
+
*
|
|
313
|
+
* Only replicated services are supported. Configuration changes replace the
|
|
314
|
+
* service (delete-then-create); swarm tasks are stateless, so replacement is
|
|
315
|
+
* cheap and avoids partially-applied `service update` drift.
|
|
316
|
+
* ### Creating Services
|
|
317
|
+
* **Example:** Replicated Nginx
|
|
318
|
+
* ```typescript
|
|
319
|
+
* const swarm = yield* Docker.Swarm("swarm");
|
|
320
|
+
* const web = yield* Docker.Service("web", {
|
|
321
|
+
* context: swarm,
|
|
322
|
+
* image: "nginx:alpine",
|
|
323
|
+
* replicas: 3,
|
|
324
|
+
* ports: [{ external: 8080, internal: 80 }],
|
|
325
|
+
* });
|
|
326
|
+
* ```
|
|
327
|
+
*
|
|
328
|
+
* **Example:** Run a Built Image
|
|
329
|
+
* ```typescript
|
|
330
|
+
* const image = yield* Docker.Image("app-image", {
|
|
331
|
+
* build: { context: "./app" },
|
|
332
|
+
* });
|
|
333
|
+
* const app = yield* Docker.Service("app", {
|
|
334
|
+
* context: swarm,
|
|
335
|
+
* image,
|
|
336
|
+
* replicas: 2,
|
|
337
|
+
* });
|
|
338
|
+
* ```
|
|
339
|
+
*
|
|
340
|
+
* ### Effectful Services
|
|
341
|
+
* **Example:** Inline Effect Server
|
|
342
|
+
* ```typescript
|
|
343
|
+
* const swarm = yield* Docker.Swarm("swarm");
|
|
344
|
+
* const api = yield* Docker.Service(
|
|
345
|
+
* "Api",
|
|
346
|
+
* {
|
|
347
|
+
* context: swarm,
|
|
348
|
+
* main: import.meta.url,
|
|
349
|
+
* port: 3000,
|
|
350
|
+
* ports: [{ external: 8080, internal: 3000 }],
|
|
351
|
+
* replicas: 2,
|
|
352
|
+
* },
|
|
353
|
+
* Effect.gen(function* () {
|
|
354
|
+
* return {
|
|
355
|
+
* fetch: Effect.gen(function* () {
|
|
356
|
+
* return yield* HttpServerResponse.json({ ok: true });
|
|
357
|
+
* }),
|
|
358
|
+
* };
|
|
359
|
+
* }),
|
|
360
|
+
* );
|
|
361
|
+
* ```
|
|
362
|
+
*
|
|
363
|
+
* **Example:** Background Loops with ServerHost
|
|
364
|
+
* ```typescript
|
|
365
|
+
* // Class props may be an Effect, so the service can yield the swarm it
|
|
366
|
+
* // deploys into (declared once at module level).
|
|
367
|
+
* const Swarm = Docker.Swarm("swarm");
|
|
368
|
+
*
|
|
369
|
+
* export default class Worker extends Docker.Service<Worker>()(
|
|
370
|
+
* "Worker",
|
|
371
|
+
* Effect.gen(function* () {
|
|
372
|
+
* const swarm = yield* Swarm;
|
|
373
|
+
* return { context: swarm, main: import.meta.url, port: 3000 };
|
|
374
|
+
* }),
|
|
375
|
+
* Effect.gen(function* () {
|
|
376
|
+
* const host = yield* ServerHost;
|
|
377
|
+
* yield* host.run(
|
|
378
|
+
* pollQueue.pipe(Effect.repeat(Schedule.spaced("5 seconds")), Effect.asVoid),
|
|
379
|
+
* );
|
|
380
|
+
* return {
|
|
381
|
+
* fetch: Effect.succeed(HttpServerResponse.text("ok")),
|
|
382
|
+
* };
|
|
383
|
+
* }),
|
|
384
|
+
* ) {}
|
|
385
|
+
* ```
|
|
386
|
+
*
|
|
387
|
+
* ### Bundling & Tree-shaking
|
|
388
|
+
* `main` is bundled with rolldown at deploy time. Unused code is
|
|
389
|
+
* tree-shaken. `effect`, alchemy, and `@distilled.cloud` are marked
|
|
390
|
+
* pure so unused parts prune more aggressively. Your app is not
|
|
391
|
+
* marked pure.
|
|
392
|
+
*
|
|
393
|
+
* **Example:** Mark additional packages as pure
|
|
394
|
+
* Only list packages with no top-level side effects.
|
|
395
|
+
* ```typescript
|
|
396
|
+
* {
|
|
397
|
+
* main: import.meta.url,
|
|
398
|
+
* build: {
|
|
399
|
+
* pure: { packages: ["my-lib", "@my-scope/*"] },
|
|
400
|
+
* },
|
|
401
|
+
* }
|
|
402
|
+
* ```
|
|
403
|
+
*
|
|
404
|
+
* **Example:** Turn it off
|
|
405
|
+
* ```typescript
|
|
406
|
+
* {
|
|
407
|
+
* main: import.meta.url,
|
|
408
|
+
* build: { pure: false },
|
|
409
|
+
* }
|
|
410
|
+
* ```
|
|
411
|
+
*
|
|
412
|
+
* ### Docker Contexts
|
|
413
|
+
* **Example:** Deploy to a Remote Swarm over SSH
|
|
414
|
+
* ```typescript
|
|
415
|
+
* const vps = yield* Docker.Context("vps", {
|
|
416
|
+
* docker: "host=ssh://deploy@example.com",
|
|
417
|
+
* });
|
|
418
|
+
* const swarm = yield* Docker.Swarm("swarm", {
|
|
419
|
+
* context: vps,
|
|
420
|
+
* advertiseAddr: "10.0.0.1",
|
|
421
|
+
* });
|
|
422
|
+
* const app = yield* Docker.Service("app", {
|
|
423
|
+
* context: swarm,
|
|
424
|
+
* image: "nginx:alpine",
|
|
425
|
+
* replicas: 3,
|
|
426
|
+
* });
|
|
427
|
+
* ```
|
|
428
|
+
*
|
|
429
|
+
* ### Networks & Volumes
|
|
430
|
+
* **Example:** Overlay Network with Aliases
|
|
431
|
+
* ```typescript
|
|
432
|
+
* const network = yield* Docker.Network("app-net", {
|
|
433
|
+
* context: swarm,
|
|
434
|
+
* driver: "overlay",
|
|
435
|
+
* });
|
|
436
|
+
* const db = yield* Docker.Service("db", {
|
|
437
|
+
* context: swarm,
|
|
438
|
+
* image: "postgres:18-alpine",
|
|
439
|
+
* networks: [{ name: network.name, aliases: ["postgres"] }],
|
|
440
|
+
* volumes: [{ hostPath: "pg-data", containerPath: "/var/lib/postgresql/data" }],
|
|
441
|
+
* });
|
|
442
|
+
* ```
|
|
443
|
+
*
|
|
444
|
+
* ### Rollouts & Placement
|
|
445
|
+
* **Example:** Rolling Update with Rollback
|
|
446
|
+
* ```typescript
|
|
447
|
+
* const app = yield* Docker.Service("app", {
|
|
448
|
+
* image: "ghcr.io/acme/app:latest",
|
|
449
|
+
* replicas: 4,
|
|
450
|
+
* updateConfig: {
|
|
451
|
+
* parallelism: 1,
|
|
452
|
+
* delay: "10s",
|
|
453
|
+
* failureAction: "rollback",
|
|
454
|
+
* order: "start-first",
|
|
455
|
+
* },
|
|
456
|
+
* placement: {
|
|
457
|
+
* constraints: ["node.role==worker"],
|
|
458
|
+
* maxReplicasPerNode: 2,
|
|
459
|
+
* },
|
|
460
|
+
* });
|
|
461
|
+
* ```
|
|
462
|
+
*
|
|
463
|
+
* ### Secrets & Configs
|
|
464
|
+
* **Example:** Mount Swarm Secrets
|
|
465
|
+
* ```typescript
|
|
466
|
+
* const app = yield* Docker.Service("app", {
|
|
467
|
+
* image: "ghcr.io/acme/app:latest",
|
|
468
|
+
* secrets: [{ source: "db-password", target: "db_password", mode: 0o400 }],
|
|
469
|
+
* configs: [{ source: "app-config", target: "/etc/app/config.yaml" }],
|
|
470
|
+
* });
|
|
471
|
+
* ```
|
|
472
|
+
*
|
|
473
|
+
* @resource
|
|
474
|
+
* @product Swarm
|
|
475
|
+
*/
|
|
476
|
+
export declare const Service: Platform<Service, ServiceServices, ServiceShape, ServiceRuntimeContext>;
|
|
477
|
+
export declare const ServiceProvider: () => import("effect/Layer").Layer<Provider.Provider<Service>, never, import("alchemy/AlchemyContext").AlchemyContext | Docker | import("effect/FileSystem").FileSystem | import("effect/Path").Path | Stack | import("alchemy/Stage").Stage>;
|
|
478
|
+
//# sourceMappingURL=Service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Service.d.ts","sourceRoot":"","sources":["../src/Service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,KAAK,IAAI,EAAE,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC3E,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,UAAU,EAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAKtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAE5C,OAAO,KAAK,KAAK,QAAQ,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,MAAM,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