switches the default msgqueue kind to postgres in hatchet-lite (#1325)

This commit is contained in:
abelanger5
2025-03-12 16:30:46 -04:00
committed by GitHub
parent ac968e94b8
commit d676ef30dc
2 changed files with 9 additions and 4 deletions
+2 -4
View File
@@ -21,14 +21,12 @@ RUN corepack pnpm@9.15.4 install --frozen-lockfile && corepack pnpm@9.15.4 store
COPY ./frontend/app ./
RUN npm run build
# Stage 3: run in rabbitmq alpine image
FROM rabbitmq:alpine as rabbitmq
# Stage 3: deployment image from alpine
FROM alpine AS deployment
# install bash via apk
RUN apk update && apk add --no-cache bash gcc musl-dev openssl bash ca-certificates curl postgresql-client
RUN curl -sSf https://atlasgo.sh | sh
COPY --from=lite-binary-base /hatchet/hatchet-lite ./hatchet-lite
COPY --from=admin-binary-base /hatchet/hatchet-admin ./hatchet-admin
COPY --from=migrate-binary-base /hatchet/hatchet-migrate ./hatchet-migrate
+7
View File
@@ -85,6 +85,13 @@ func start(cf *loader.ConfigLoader, interruptCh <-chan interface{}, version stri
runtimePort = "8082"
}
// we hard code the msg queue kind to postgres
err := os.Setenv("SERVER_MSGQUEUE_KIND", "postgres")
if err != nil {
return fmt.Errorf("error setting SERVER_MSGQUEUE_KIND to postgres: %w", err)
}
feURL, err := url.Parse(fmt.Sprintf("http://localhost:%s", frontendPort))
if err != nil {