Build multiarch images

This commit is contained in:
Igor Zibarev 2023-12-08 12:57:44 +02:00
parent f6370dc32d
commit acda512c0a
3 changed files with 9 additions and 5 deletions

View File

@ -25,7 +25,7 @@ RUN yarn install && yarn build
# Building a backend.
#
FROM golang:1.21-alpine AS backend
FROM --platform=linux/amd64 golang:1.21-alpine AS backend
# Move to a working directory (/build).
WORKDIR /build

View File

@ -23,7 +23,11 @@ docker:
asynqmon --redis-addr=host.docker.internal:6379
build-image:
docker build -t docker.io/platacard/asynqmon:$(or $(TAG),latest) .
docker build \
-t docker.io/platacard/asynqmon:$(or $(TAG),latest) .
push-image: build-image
docker push docker.io/platacard/asynqmon:$(or $(TAG),latest)
push-image:
docker buildx build \
--platform linux/amd64,linux/arm64 \
--push \
-t docker.io/platacard/asynqmon:$(or $(TAG),latest) .

View File

@ -101,7 +101,7 @@ _Note_: Use `--redis-url` to specify address, db-number, and password with one f
| Flag | Env | Description | Default |
| --------------------------------- | ------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------- |
| `--port`(int) | `PORT` | port number to use for web ui server | 8080 |
| `---redis-url`(string) | `REDIS_URL` | URL to redis or sentinel server. See [godoc](https://pkg.go.dev/github.com/platacard/asynq#ParseRedisURI) for supported format | "" |
| `--redis-url`(string) | `REDIS_URL` | URL to redis or sentinel server. See [godoc](https://pkg.go.dev/github.com/platacard/asynq#ParseRedisURI) for supported format | "" |
| `--redis-addr`(string) | `REDIS_ADDR` | address of redis server to connect to | "127.0.0.1:6379" |
| `--redis-db`(int) | `REDIS_DB` | redis database number | 0 |
| `--redis-password`(string) | `REDIS_PASSWORD` | password to use when connecting to redis server | "" |