temporalio / temporalite-archived

An experimental distribution of Temporal that runs as a single process

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Publish Temporalite to a public container registry

jlegrone opened this issue · comments

Is your feature request related to a problem? Please describe.

Users should be able to quickly spin up Temporalite instances in container environments like Kubernetes, docker-compose, and various CI providers.

Describe the solution you'd like

Configure goreleaser to build & push container images for Temporalite to a temporalio owned container repository.

Describe alternatives you've considered

Docker compose users can already leverage Temporalite by building from source, eg.

# docker-compose.yaml
version: '3.9'

services:
  temporalite:
    build: https://github.com/temporalio/temporalite.git#main
    ports:
      - 7233:7233
      - 8233:8233

Additional context

I am building a multi-arch temporalite image here https://github.com/slamdev/temporalite-container-image

Let me know if you are open for contribution of this solution to temporalite repo.

Is there any chance of an official docker image being pushed to Docker Hub please?

In the meantime, until an official temporalite docker image is available for local dev, I use the following Dockerfile as an alternative.

It is fast to build (just download latest temporal CLI, no need to build go modules), and starts temporalite via the new temporal CLI.

FROM curlimages/curl as builder

WORKDIR /
RUN curl -sSf https://temporal.download/cli.sh | sh

FROM gcr.io/distroless/base-debian11

COPY --from=builder /home/curl_user/.temporalio/bin/temporal /bin/temporal
EXPOSE 7233
EXPOSE 8233

ENTRYPOINT ["temporal", "server", "start-dev", "--ip" , "0.0.0.0"]

this would be super helpful!

Also waiting for official image to use in testcontainers library 🙏