mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-04-24 11:18:35 -05:00
switches the default msgqueue kind to postgres in hatchet-lite (#1325)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user