started migration to podman
parent
aa4c2429e3
commit
069a9cd05d
|
@ -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
|
||||
```
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM alpine:3.16
|
||||
FROM alpine:3.17
|
||||
|
||||
RUN mkdir -p /var/lib/mpd && \
|
||||
addgroup --gid 10001 mpd && \
|
||||
|
|
37
mpd/Makefile
37
mpd/Makefile
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue