@alchemy.run/docker 0.0.0-stage → 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.
Files changed (98) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +50 -2
  3. package/lib/Bootstrap.d.ts +7 -0
  4. package/lib/Bootstrap.d.ts.map +1 -0
  5. package/lib/Bootstrap.js +25 -0
  6. package/lib/Bootstrap.js.map +1 -0
  7. package/lib/BuildHash.d.ts +47 -0
  8. package/lib/BuildHash.d.ts.map +1 -0
  9. package/lib/BuildHash.js +165 -0
  10. package/lib/BuildHash.js.map +1 -0
  11. package/lib/Container.d.ts +352 -0
  12. package/lib/Container.d.ts.map +1 -0
  13. package/lib/Container.js +531 -0
  14. package/lib/Container.js.map +1 -0
  15. package/lib/Context.d.ts +86 -0
  16. package/lib/Context.d.ts.map +1 -0
  17. package/lib/Context.js +146 -0
  18. package/lib/Context.js.map +1 -0
  19. package/lib/Docker.d.ts +448 -0
  20. package/lib/Docker.d.ts.map +1 -0
  21. package/lib/Docker.js +416 -0
  22. package/lib/Docker.js.map +1 -0
  23. package/lib/Dockerfile.d.ts +72 -0
  24. package/lib/Dockerfile.d.ts.map +1 -0
  25. package/lib/Dockerfile.js +12 -0
  26. package/lib/Dockerfile.js.map +1 -0
  27. package/lib/HealthcheckCommand.d.ts +17 -0
  28. package/lib/HealthcheckCommand.d.ts.map +1 -0
  29. package/lib/HealthcheckCommand.js +33 -0
  30. package/lib/HealthcheckCommand.js.map +1 -0
  31. package/lib/Image.d.ts +151 -0
  32. package/lib/Image.d.ts.map +1 -0
  33. package/lib/Image.js +192 -0
  34. package/lib/Image.js.map +1 -0
  35. package/lib/ImageSource.d.ts +234 -0
  36. package/lib/ImageSource.d.ts.map +1 -0
  37. package/lib/ImageSource.js +469 -0
  38. package/lib/ImageSource.js.map +1 -0
  39. package/lib/Network.d.ts +70 -0
  40. package/lib/Network.d.ts.map +1 -0
  41. package/lib/Network.js +111 -0
  42. package/lib/Network.js.map +1 -0
  43. package/lib/Providers.d.ts +21 -0
  44. package/lib/Providers.d.ts.map +1 -0
  45. package/lib/Providers.js +26 -0
  46. package/lib/Providers.js.map +1 -0
  47. package/lib/Registry.d.ts +47 -0
  48. package/lib/Registry.d.ts.map +1 -0
  49. package/lib/Registry.js +67 -0
  50. package/lib/Registry.js.map +1 -0
  51. package/lib/RegistryError.d.ts +21 -0
  52. package/lib/RegistryError.d.ts.map +1 -0
  53. package/lib/RegistryError.js +28 -0
  54. package/lib/RegistryError.js.map +1 -0
  55. package/lib/RemoteImage.d.ts +118 -0
  56. package/lib/RemoteImage.d.ts.map +1 -0
  57. package/lib/RemoteImage.js +164 -0
  58. package/lib/RemoteImage.js.map +1 -0
  59. package/lib/Service.d.ts +478 -0
  60. package/lib/Service.d.ts.map +1 -0
  61. package/lib/Service.js +588 -0
  62. package/lib/Service.js.map +1 -0
  63. package/lib/ServiceImage.d.ts +78 -0
  64. package/lib/ServiceImage.d.ts.map +1 -0
  65. package/lib/ServiceImage.js +162 -0
  66. package/lib/ServiceImage.js.map +1 -0
  67. package/lib/Swarm.d.ts +119 -0
  68. package/lib/Swarm.d.ts.map +1 -0
  69. package/lib/Swarm.js +148 -0
  70. package/lib/Swarm.js.map +1 -0
  71. package/lib/Volume.d.ts +94 -0
  72. package/lib/Volume.d.ts.map +1 -0
  73. package/lib/Volume.js +133 -0
  74. package/lib/Volume.js.map +1 -0
  75. package/lib/index.d.ts +14 -0
  76. package/lib/index.d.ts.map +1 -0
  77. package/lib/index.js +13 -0
  78. package/lib/index.js.map +1 -0
  79. package/package.json +72 -3
  80. package/src/Bootstrap.ts +51 -0
  81. package/src/BuildHash.ts +255 -0
  82. package/src/Container.ts +792 -0
  83. package/src/Context.ts +215 -0
  84. package/src/Docker.ts +1079 -0
  85. package/src/Dockerfile.ts +81 -0
  86. package/src/HealthcheckCommand.ts +35 -0
  87. package/src/Image.ts +293 -0
  88. package/src/ImageSource.ts +769 -0
  89. package/src/Network.ts +169 -0
  90. package/src/Providers.ts +46 -0
  91. package/src/Registry.ts +91 -0
  92. package/src/RegistryError.ts +48 -0
  93. package/src/RemoteImage.ts +255 -0
  94. package/src/Service.ts +1080 -0
  95. package/src/ServiceImage.ts +252 -0
  96. package/src/Swarm.ts +221 -0
  97. package/src/Volume.ts +193 -0
  98. package/src/index.ts +17 -0
@@ -0,0 +1,352 @@
1
+ import * as Provider from "alchemy/Provider";
2
+ import { Resource } from "alchemy/Resource";
3
+ import * as Duration from "effect/Duration";
4
+ import * as Effect from "effect/Effect";
5
+ import * as FileSystem from "effect/FileSystem";
6
+ import * as Path from "effect/Path";
7
+ import type { PlatformError } from "effect/PlatformError";
8
+ import * as Redacted from "effect/Redacted";
9
+ import { Docker } from "./Docker.ts";
10
+ import type { Providers } from "./Providers.ts";
11
+ export interface ContainerProps {
12
+ /** Image reference or Docker image resource. */
13
+ image: Container.Image;
14
+ /** Docker context name or context resource. */
15
+ context?: Docker.ContextRef;
16
+ /**
17
+ * Container name.
18
+ *
19
+ * @default Generated from stack, stage, logical id, and instance id.
20
+ */
21
+ name?: string;
22
+ /** Command to run in the container. */
23
+ command?: string[];
24
+ /** Container environment variables. Use Redacted for secrets. */
25
+ environment?: Record<string, string | Redacted.Redacted<string>>;
26
+ /**
27
+ * Paths to Docker env files, forwarded in the declared order as repeated
28
+ * `--env-file` options. Explicit `environment` values are forwarded after
29
+ * these files and take precedence in Docker. Editing a file's contents
30
+ * replaces the container on the next deploy. Only a digest of the contents
31
+ * is kept, on the container's own label; neither contents nor digest are
32
+ * written to Alchemy state. Docker itself exposes the resolved values
33
+ * through `docker inspect`, so treat env files as secrets.
34
+ */
35
+ envFiles?: string[];
36
+ /** Host/container port mappings. */
37
+ ports?: Container.PortMapping[];
38
+ /** Volume or bind mounts. */
39
+ volumes?: Container.VolumeMapping[];
40
+ /** Restart policy. */
41
+ restart?: "no" | "always" | "on-failure" | "unless-stopped";
42
+ /**
43
+ * Container labels. Alchemy's internal ownership labels are added
44
+ * automatically.
45
+ */
46
+ labels?: Record<string, string>;
47
+ /**
48
+ * Grace period before Docker forcefully kills the container after stopping
49
+ * it.
50
+ */
51
+ stopTimeout?: Duration.Input;
52
+ /** Networks to connect after create. */
53
+ networks?: Container.NetworkMapping[];
54
+ /** Network namespace. Use `{ container: id }` to share another container's namespace. */
55
+ networkMode?: Container.NetworkMode;
56
+ /** Linux capabilities to add, for example `SYS_ADMIN`. */
57
+ capAdd?: string[];
58
+ /** Host devices to expose to the container. */
59
+ devices?: Container.DeviceMapping[];
60
+ /**
61
+ * Extra `/etc/hosts` entries, each `hostname:address`. Docker's
62
+ * `host-gateway` alias resolves to the host machine, so
63
+ * `"host.docker.internal:host-gateway"` reaches services listening on the
64
+ * developer's machine from inside the container.
65
+ *
66
+ * On Linux `host-gateway` is the bridge gateway address, so those packets
67
+ * traverse the host's `INPUT` chain — under a default-deny firewall the
68
+ * name resolves and the connection then times out. See the Host Access
69
+ * examples.
70
+ */
71
+ extraHosts?: string[];
72
+ /** Remove the container when it exits. @default false */
73
+ removeOnExit?: boolean;
74
+ /** Start the container after creation/reconciliation. @default false */
75
+ start?: boolean;
76
+ /** Docker healthcheck configuration. */
77
+ healthcheck?: Container.Healthcheck;
78
+ }
79
+ export declare namespace Container {
80
+ type Status = "created" | "running" | "paused" | "restarting" | "removing" | "exited" | "dead";
81
+ type Image = string | {
82
+ imageRef: string;
83
+ imageId?: string;
84
+ };
85
+ interface PortMapping {
86
+ /** External port on the host. */
87
+ external: number | string;
88
+ /** Internal port inside the container. */
89
+ internal: number | string;
90
+ /** Protocol used for the mapping. @default "tcp" */
91
+ protocol?: "tcp" | "udp";
92
+ }
93
+ interface VolumeMapping {
94
+ /** Host path or named volume source. */
95
+ hostPath: string;
96
+ /** Container path. */
97
+ containerPath: string;
98
+ /** Mount read-only. @default false */
99
+ readOnly?: boolean;
100
+ }
101
+ interface NetworkMapping {
102
+ /** Network name or ID. */
103
+ name: string;
104
+ /** Network aliases for the container. */
105
+ aliases?: string[];
106
+ }
107
+ type NetworkMode = string | {
108
+ container: string;
109
+ };
110
+ interface DeviceMapping {
111
+ /** Host device path. */
112
+ hostPath: string;
113
+ /** Container device path. */
114
+ containerPath: string;
115
+ /** Cgroup permissions. @default "rwm" */
116
+ permissions?: string;
117
+ }
118
+ interface Healthcheck {
119
+ /**
120
+ * Command to run for health checks. A string runs in the container's
121
+ * shell. An array follows Docker's healthcheck `Test` form:
122
+ * `["CMD-SHELL", "pg_isready -U app"]`, `["CMD", "pg_isready", "-U", "app"]`,
123
+ * or `["NONE"]` to disable the image's healthcheck.
124
+ */
125
+ cmd: string[] | string;
126
+ /** Time between checks. */
127
+ interval?: Duration.Input;
128
+ /** Maximum time a check may run. */
129
+ timeout?: Duration.Input;
130
+ /** Consecutive failures before unhealthy. */
131
+ retries?: number;
132
+ /** Startup grace period. */
133
+ startPeriod?: Duration.Input;
134
+ /** Check interval during startup. Requires Docker API 1.44+. */
135
+ startInterval?: Duration.Input;
136
+ }
137
+ }
138
+ export interface Container extends Resource<"Docker.Container", ContainerProps, {
139
+ /** Docker container id. */
140
+ id: string;
141
+ /** Docker container name. */
142
+ name: string;
143
+ /** Docker container state. */
144
+ status: Container.Status;
145
+ /** Creation timestamp in milliseconds since epoch. */
146
+ createdAt: number;
147
+ /** Image reference used to create the container. */
148
+ imageRef: string;
149
+ /**
150
+ * Map of internal container ports to their bound host ports.
151
+ * Format: `"80/tcp" -> 8080`.
152
+ */
153
+ ports: Record<string, number>;
154
+ /** Configured network namespace, when reported by Docker. */
155
+ networkMode?: string;
156
+ /** Added Linux capabilities, when reported by Docker. */
157
+ capAdd?: string[];
158
+ /** Configured host devices, when reported by Docker. */
159
+ devices?: Container.DeviceMapping[];
160
+ }, never, Providers> {
161
+ }
162
+ /**
163
+ * A Docker container managed through the active Docker context.
164
+ *
165
+ * This resource creates, starts, stops, inspects, and removes containers through
166
+ * the Docker CLI. It is not interchangeable with `Cloudflare.Container`, which
167
+ * manages Cloudflare's container platform; use pushed image references to bridge
168
+ * Docker-built images into cloud container runtimes.
169
+ *
170
+ *
171
+ * ### Running Containers
172
+ * **Example:** Nginx with a published port
173
+ * ```typescript
174
+ * const nginx = yield* Docker.Container("nginx", {
175
+ * image: "nginx:alpine",
176
+ * ports: [{ external: 8080, internal: 80 }],
177
+ * start: true,
178
+ * });
179
+ * ```
180
+ *
181
+ * ### Secret Environment
182
+ * **Example:** Redacted env var
183
+ * ```typescript
184
+ * const password = yield* Config.Redacted("POSTGRES_PASSWORD");
185
+ * const db = yield* Docker.Container("postgres", {
186
+ * image: "postgres:18-alpine",
187
+ * environment: {
188
+ * POSTGRES_PASSWORD: password,
189
+ * },
190
+ * start: true,
191
+ * });
192
+ * ```
193
+ *
194
+ * ### Environment Files
195
+ * **Example:** Layered Docker env files
196
+ * ```typescript
197
+ * const app = yield* Docker.Container("app", {
198
+ * image: "ghcr.io/acme/app:latest",
199
+ * envFiles: ["./config/base.env", "./config/production.env"],
200
+ * // Explicit values are passed after env files and take precedence.
201
+ * environment: { LOG_LEVEL: "info" },
202
+ * });
203
+ * ```
204
+ *
205
+ * Editing an env file replaces the container on the next deploy, as does
206
+ * adopting a container that uses env files (once, so later edits are tracked).
207
+ * Alchemy reads
208
+ * the files at plan time but keeps only a digest of their contents, on the
209
+ * container's own label; neither the values nor the digest are written to
210
+ * Alchemy state. Docker exposes the resolved values through `docker inspect`,
211
+ * so treat env files as secrets.
212
+ *
213
+ * ### Networks and Volumes
214
+ * **Example:** PostgreSQL with persistent storage
215
+ * ```typescript
216
+ * const network = yield* Docker.Network("app-network");
217
+ * const data = yield* Docker.Volume("postgres-data");
218
+ * const postgresName = "app-postgres";
219
+ * yield* Docker.Container("postgres", {
220
+ * name: postgresName,
221
+ * image: "postgres:18-alpine",
222
+ * ports: [{ external: 15432, internal: 5432 }],
223
+ * volumes: [{ hostPath: data.name, containerPath: "/var/lib/postgresql/data" }],
224
+ * networks: [{ name: network.name, aliases: ["postgres"] }],
225
+ * start: true,
226
+ * });
227
+ * const runtime = yield* Docker.inspectContainer(postgresName);
228
+ * ```
229
+ *
230
+ * ### Host Access
231
+ * `extraHosts` writes lines into the container's `/etc/hosts`; it changes name
232
+ * resolution and nothing else. Docker's `host-gateway` alias resolves to the
233
+ * host machine, which is how a container reaches a service on the developer's
234
+ * loopback.
235
+ *
236
+ * On Linux `host-gateway` is the Docker bridge gateway (typically
237
+ * `172.17.0.1`), so a container's packets to it arrive on the host's `INPUT`
238
+ * chain. Under a default-deny firewall — ufw ships
239
+ * `DEFAULT_INPUT_POLICY="DROP"` — the hostname resolves correctly and the
240
+ * connection then times out, which reads like an application bug rather than a
241
+ * firewall one. Allow the bridge subnet to fix it:
242
+ * `sudo ufw allow from 172.16.0.0/12`.
243
+ *
244
+ * **Example:** Reach a service on the developer's machine
245
+ * ```typescript
246
+ * const api = yield* Docker.Container("api", {
247
+ * image: "ghcr.io/acme/api:latest",
248
+ * // `host-gateway` resolves to the host machine, so a database listening
249
+ * // on the developer's loopback is reachable from inside the container.
250
+ * extraHosts: ["host.docker.internal:host-gateway"],
251
+ * environment: {
252
+ * DATABASE_URL: "postgres://postgres@host.docker.internal:5432/app",
253
+ * },
254
+ * start: true,
255
+ * });
256
+ * ```
257
+ *
258
+ * **Example:** Pin a hostname to a fixed address
259
+ * ```typescript
260
+ * const api = yield* Docker.Container("api", {
261
+ * image: "ghcr.io/acme/api:latest",
262
+ * // Any `hostname:address` pair — host access is just the common case.
263
+ * extraHosts: ["service.example:192.0.2.10"],
264
+ * start: true,
265
+ * });
266
+ * ```
267
+ *
268
+ * ### Runtime Options
269
+ * **Example:** Share a donor container's network namespace
270
+ * ```typescript
271
+ * const donor = yield* Docker.Container("donor", { image: "redis:alpine" });
272
+ * const sidecar = yield* Docker.Container("sidecar", {
273
+ * image: "busybox:latest",
274
+ * networkMode: { container: donor.id },
275
+ * });
276
+ * ```
277
+ *
278
+ * **Example:** Add capabilities and devices
279
+ * ```typescript
280
+ * const worker = yield* Docker.Container("worker", {
281
+ * image: "ubuntu:latest",
282
+ * capAdd: ["SYS_ADMIN"],
283
+ * devices: [{ hostPath: "/dev/fuse", containerPath: "/dev/fuse" }],
284
+ * });
285
+ * ```
286
+ *
287
+ * **Example:** Publish on any free host port
288
+ * ```typescript
289
+ * const api = yield* Docker.Container("api", {
290
+ * image: "ghcr.io/acme/api:latest",
291
+ * // `external: 0` lets Docker choose; the assigned port is reported back.
292
+ * ports: [{ external: 0, internal: 3000 }],
293
+ * start: true,
294
+ * });
295
+ * const hostPort = api.ports["3000/tcp"];
296
+ * ```
297
+ *
298
+ * ### Traefik
299
+ * **Example:** Route a container through Traefik
300
+ * ```typescript
301
+ * const api = yield* Docker.Container("api", {
302
+ * image: "ghcr.io/acme/api:latest",
303
+ * networks: [{ name: "traefik" }],
304
+ * labels: {
305
+ * "traefik.enable": "true",
306
+ * "traefik.http.routers.api.rule": "Host(`api.example.com`)",
307
+ * "traefik.http.services.api.loadbalancer.server.port": "3000",
308
+ * },
309
+ * stopTimeout: "30 seconds",
310
+ * start: true,
311
+ * });
312
+ * ```
313
+ *
314
+ * **Example:** Use a Docker.Context resource
315
+ * ```typescript
316
+ * const remote = yield* Docker.Context("remote", {
317
+ * name: "remote-build",
318
+ * docker: "host=ssh://docker@example.com",
319
+ * });
320
+ *
321
+ * const api = yield* Docker.Container("api", {
322
+ * image: "nginx:alpine",
323
+ * context: remote,
324
+ * });
325
+ * ```
326
+ *
327
+ * @resource
328
+ * @product Container
329
+ */
330
+ export declare const Container: import("alchemy/Resource").ResourceClass<Container>;
331
+ /**
332
+ * Inspect a Docker container by name and return normalized runtime details.
333
+ *
334
+ * This is a small public wrapper around Docker's raw inspect output. It returns
335
+ * the stable data Alchemy callers typically need, including bound host ports.
336
+ */
337
+ export declare const inspectContainer: (name: string, context?: Docker.ContextRef) => Effect.Effect<Container["Attributes"], PlatformError, Docker>;
338
+ export declare const ContainerProvider: () => import("effect/Layer").Layer<Provider.Provider<Container>, never, Docker | FileSystem.FileSystem | Path.Path | import("alchemy/Stack").Stack | import("alchemy/Stage").Stage>;
339
+ declare const InvalidContainerOptions_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
340
+ readonly _tag: "InvalidContainerOptions";
341
+ } & Readonly<A>;
342
+ /**
343
+ * Raised before Docker is called when a container's options cannot be
344
+ * combined, e.g. sharing another container's network namespace while
345
+ * publishing ports.
346
+ */
347
+ export declare class InvalidContainerOptions extends InvalidContainerOptions_base<{
348
+ readonly message: string;
349
+ }> {
350
+ }
351
+ export {};
352
+ //# sourceMappingURL=Container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../src/Container.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAK5C,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAyC,MAAM,aAAa,CAAC;AAE5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAIhD,MAAM,WAAW,cAAc;IAC7B,gDAAgD;IAChD,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC;IACvB,+CAA+C;IAC/C,OAAO,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IAC5B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,OAAO,CAAC,EAAE,MAA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