started migration to podman

main
Ricard Illa 2023-01-08 17:40:17 +01:00
parent aa4c2429e3
commit 069a9cd05d
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
3 changed files with 30 additions and 15 deletions

View File

@ -35,3 +35,9 @@ docker buildx create --use
```sh ```sh
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
``` ```
or
```sh
sudo podman run --rm --privileged multiarch/qemu-user-static --reset -p yes
```

View File

@ -1,4 +1,4 @@
FROM alpine:3.16 FROM alpine:3.17
RUN mkdir -p /var/lib/mpd && \ RUN mkdir -p /var/lib/mpd && \
addgroup --gid 10001 mpd && \ addgroup --gid 10001 mpd && \

View File

@ -1,19 +1,28 @@
IMG_NAME = mpd IMG_NAME = mpd
REGISTRY=registry.monotremata.xyz REGISTRY = registry.monotremata.xyz
IMG=$(REGISTRY)/$(IMG_NAME) IMG = $(REGISTRY)/$(IMG_NAME)
PLATFORMS=linux/arm64 PLATFORM = linux/amd64,linux/arm64
JOBS = 1
.PHONY: build push buildx .PHONY: build push
build: Dockerfile
docker build -t $(IMG) .
push: build out/image-name: Dockerfile
docker image push $(IMG) mkdir -p $(@D)
buildah build \
--jobs=$(JOBS) \
--platform=$(PLATFORM) \
--manifest=$(IMG) .
@echo $(IMG) > $(@)
buildx: Dockerfile #out/image-name: Dockerfile
docker buildx build \ # mkdir -p $(@D)
--platform $(PLATFORMS) \ # podman build \
--tag $(IMG) \ # --manifest $(ING) \
--push \ # --platform linux/amd64 \
. # --platform linux/arm64 \
# .
# @echo $(IMG) > $(@)
push: out/image-name
podman manifest push --all $(IMG) docker://$(IMG)