Skip to content

Commit 387d6b4

Browse files
authored
Add multi-arch support (#106)
1 parent fcee7a5 commit 387d6b4

File tree

5 files changed

+28
-20
lines changed

5 files changed

+28
-20
lines changed

api/Makefile

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
IMG = ghcr.io/hlesey/phippy-api
22
TAG = $$(cat src/__version__.py | cut -d '=' -f2 | sed 's/[", ]//g')
33

4-
54
# Build
6-
75
build:
8-
docker build -t $(IMG):$(TAG) .
9-
6+
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t $(IMG):$(TAG) .
7+
# Push
108
push:
119
docker push $(IMG):$(TAG)
10+
11+
# Build and Push
12+
build-and-push:
13+
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t $(IMG):$(TAG) --push .

docker-compose.yml

+13-8
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,38 @@ version: "3.7"
22

33
services:
44
ui:
5-
image: ghcr.io/hlesey/phippy-ui:1.0
5+
image: phippy-ui:v1.0
66
environment:
7-
API_HOST: api
8-
API_PORT: 5000
7+
# API_HOST: api
8+
# API_PORT: 5000
9+
API_HOST: host.docker.internal
10+
API_PORT: 8000
911
ports:
1012
- "8080:5000"
1113
networks:
1214
- phippy-net
1315
depends_on:
1416
- api
1517
api:
16-
image: ghcr.io/hlesey/phippy-api:1.0
18+
image: phippy-api:v1.0
1719
environment:
18-
DB_HOST: redis
20+
# DB_HOST: redis
21+
DB_HOST: host.docker.internal
1922
DB_PORT: 6379
2023
ports:
21-
- "5000:5000"
24+
- "8081:5000"
2225
networks:
2326
- phippy-net
2427
depends_on:
2528
- redis
2629
redis:
27-
image: ghcr.io/hlesey/redis:6.2.6
30+
image: ghcr.io/hlesey/redis:7.4
2831
networks:
2932
- phippy-net
33+
ports:
34+
- "6379:6379"
3035
redis-exporter:
31-
image: bitnami/redis-exporter:1.36.0
36+
image: ghcr.io/hlesey/bitnami/redis-exporter:1.62.0
3237
environment:
3338
REDIS_ADDR: redis:6379
3439
ports:

kubernetes/app/db.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ spec:
1818
spec:
1919
containers:
2020
- name: redis
21-
image: ghcr.io/hlesey/redis:7.2.3
21+
image: ghcr.io/hlesey/redis:7.4
2222
resources:
2323
limits:
2424
memory: "100Mi"

kubernetes/observability/redis-exporter.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ spec:
2020
spec:
2121
containers:
2222
- name: redis-exporter
23-
image: bitnami/redis-exporter:1.56.0
23+
image: bitnami/redis-exporter:1.62.0
2424
resources:
2525
requests:
2626
cpu: 100m

ui/Makefile

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
21
IMG = ghcr.io/hlesey/phippy-ui
32
TAG = $$(cat src/__version__.py | cut -d '=' -f2 | sed 's/[", ]//g')
43

5-
64
# Build
7-
85
build:
9-
docker build -t $(IMG):$(TAG) .
10-
11-
push:
6+
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t $(IMG):$(TAG) .
7+
# Push
8+
push:
129
docker push $(IMG):$(TAG)
10+
11+
# Build and Push
12+
build-and-push:
13+
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t $(IMG):$(TAG) --push .

0 commit comments

Comments
 (0)