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
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 && \
addgroup --gid 10001 mpd && \

View File

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