The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import * as GCP from "@alchemy.run/gcp"; |
| 2 | import * as Effect from "effect/Effect"; |
| 3 | import * as HttpServerResponse from "effect/http/HttpServerResponse"; |
| 4 | |
| 5 | /** |
| 6 | * Second deploy step of {@link ./service-bound-container.ts}: the same |
| 7 | * service with its `Worker` binding removed. The revision must drop the |
| 8 | * sidecars. |
| 9 | */ |
| 10 | export default class BoundContainerService extends GCP.Run.Service<BoundContainerService>()( |
| 11 | "BoundContainerService", |
| 12 | { |
| 13 | main: import.meta.url, |
| 14 | location: "us-central1", |
| 15 | invokerIamDisabled: true, |
| 16 | startupProbe: { httpGet: { path: "/health" }, periodSeconds: 2, failureThreshold: 30 }, |
| 17 | }, |
| 18 | Effect.gen(function* () { |
| 19 | return { fetch: Effect.succeed(HttpServerResponse.text("ok")) }; |
| 20 | }), |
| 21 | ) {} |