Files
tasks/docker/docker-bake.hcl
zeekay aa83a0a1d2 rip: delete temporal fork — native ZAP-only tasksd
Goes from 135 MB binary with 1153 files importing go.temporal.io and 224
importing google.golang.org/grpc to a 10 MB native binary with ZERO of
either.

Deleted:
- tasks/, tasktests/, service/, chasm/, client/, api/, proto/, tools/
- cmd/tools/, components/, docker/
- schema/{cassandra,elasticsearch,mysql,postgresql,sqlite}/
- 40 tainted common/ subdirs + 7 top-level common files
- tests/testutils (no longer referenced after surviving deps drop common)

New cmd/tasksd (~100 lines) boots tasks.Embed (zap.Node) + http.Server.
New pkg/tasks/embed.go registers ZAP handlers for the SDK opcode surface
(0x0060-0x00A5). Workflow handlers return a 501 "not yet implemented"
envelope; native engine lands behind this contract.

Build:  go build ./cmd/tasksd → 10 MB
Vet:    go vet ./... → clean
Boot:   tasksd --zap-port 9999 --http :7243
Probes: /healthz, /v1/tasks/health → 200
UI:     /_/tasks/, / → 200 (embedded Vite bundle)
ZAP:    _tasks._tcp on :9999 (mDNS disabled; direct connect)

go.mod: tidy. No go.temporal.io. No google.golang.org/grpc.
2026-04-26 14:06:21 -07:00

95 lines
2.7 KiB
HCL

variable "SERVER_VERSION" {
default = "unknown"
}
variable "CLI_VERSION" {
default = "unknown"
}
variable "IMAGE_REPO" {
default = "temporaliotest"
}
variable "IMAGE_SHA_SHORT_TAG" {
default = ""
}
variable "IMAGE_SHA_FULL_TAG" {
default = ""
}
variable "IMAGE_BRANCH_TAG" {
default = ""
}
variable "SAFE_IMAGE_BRANCH_TAG" {
default = join("-", [for c in regexall("[a-z0-9]+", lower(IMAGE_BRANCH_TAG)) : c])
}
variable "TEMPORAL_SHA" {
default = ""
}
variable "TAG_LATEST" {
default = false
}
# ALPINE_TAG is the single source of truth for the Alpine base image version.
# NOTE: We use just the tag without a digest pin because digest-pinned manifest lists
# cause platform resolution issues in multi-arch buildx builds (InvalidBaseImagePlatform warnings).
variable "ALPINE_TAG" {
default = "3.23.4"
}
target "admin-tools" {
context = "docker"
dockerfile = "targets/admin-tools.Dockerfile"
args = {
ALPINE_TAG = "${ALPINE_TAG}"
}
tags = compact([
"${IMAGE_REPO}/admin-tools:${IMAGE_SHA_SHORT_TAG}",
"${IMAGE_REPO}/admin-tools:${IMAGE_SHA_FULL_TAG}",
"${IMAGE_REPO}/admin-tools:${SAFE_IMAGE_BRANCH_TAG}",
TAG_LATEST ? "${IMAGE_REPO}/admin-tools:latest" : "",
])
platforms = ["linux/amd64", "linux/arm64"]
labels = {
"org.opencontainers.image.title" = "admin-tools"
"org.opencontainers.image.description" = "Temporal admin tools"
"org.opencontainers.image.url" = "https://github.com/temporalio/temporal"
"org.opencontainers.image.source" = "https://github.com/temporalio/temporal"
"org.opencontainers.image.licenses" = "MIT"
"org.opencontainers.image.revision" = "${TEMPORAL_SHA}"
"org.opencontainers.image.created" = timestamp()
"com.temporal.server.version" = "${SERVER_VERSION}"
"com.temporal.cli.version" = "${CLI_VERSION}"
}
}
target "server" {
context = "docker"
dockerfile = "targets/server.Dockerfile"
args = {
ALPINE_TAG = "${ALPINE_TAG}"
}
tags = compact([
"${IMAGE_REPO}/server:${IMAGE_SHA_SHORT_TAG}",
"${IMAGE_REPO}/server:${IMAGE_SHA_FULL_TAG}",
"${IMAGE_REPO}/server:${SAFE_IMAGE_BRANCH_TAG}",
TAG_LATEST ? "${IMAGE_REPO}/server:latest" : "",
])
platforms = ["linux/amd64", "linux/arm64"]
labels = {
"org.opencontainers.image.title" = "server"
"org.opencontainers.image.description" = "Temporal Server"
"org.opencontainers.image.url" = "https://github.com/temporalio/temporal"
"org.opencontainers.image.source" = "https://github.com/temporalio/temporal"
"org.opencontainers.image.licenses" = "MIT"
"org.opencontainers.image.version" = "${SERVER_VERSION}"
"org.opencontainers.image.revision" = "${TEMPORAL_SHA}"
"org.opencontainers.image.created" = timestamp()
"com.temporal.server.version" = "${SERVER_VERSION}"
}
}