mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-04-20 15:50:12 +08:00
Build multiarch images
This commit is contained in:
parent
f6370dc32d
commit
acda512c0a
@ -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
|
||||
|
10
Makefile
10
Makefile
@ -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) .
|
||||
|
@ -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 | "" |
|
||||
|
Loading…
x
Reference in New Issue
Block a user