From 3b3c57ed8b8a96c7c8a292de5c81412ec60973fc Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Sun, 12 Feb 2023 16:45:03 +0100 Subject: [PATCH] updated transmission to version 4 --- transmission/Dockerfile | 2 +- transmission/Makefile | 31 +++++++++++++++---------------- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/transmission/Dockerfile b/transmission/Dockerfile index bc6f336..a93b04d 100644 --- a/transmission/Dockerfile +++ b/transmission/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.16 +FROM alpine:edge RUN addgroup \ --gid 10001 \ diff --git a/transmission/Makefile b/transmission/Makefile index 97d6fb6..71e718e 100644 --- a/transmission/Makefile +++ b/transmission/Makefile @@ -1,19 +1,18 @@ -IMG_NAME=transmission -REGISTRY=registry.monotremata.xyz -IMG=$(REGISTRY)/$(IMG_NAME) -PLATFORMS=linux/amd64,linux/arm64 +IMG_NAME =transmission +REGISTRY = registry.monotremata.xyz +IMG = $(REGISTRY)/$(IMG_NAME) +PLATFORM = linux/amd64,linux/arm64 +JOBS = 1 -.PHONY: build push buildx +.PHONY: push -build: Dockerfile - docker build -t $(IMG) . +out/image-name: Dockerfile + mkdir -p $(@D) + buildah build \ + --jobs=$(JOBS) \ + --platform=$(PLATFORM) \ + --manifest=$(IMG) . + @echo $(IMG) > $(@) -push: build - docker image push $(IMG) - -buildx: Dockerfile - docker buildx build \ - --platform $(PLATFORMS) \ - --tag $(IMG) \ - --push \ - . +push: out/image-name + podman manifest push --all $(IMG) docker://$(IMG)