From bf1db33bf9a286ef334fce873e05a2f0ca4656b0 Mon Sep 17 00:00:00 2001 From: ace Date: Tue, 13 May 2025 00:13:23 +0300 Subject: [PATCH] i2pd: add initial image --- i2pd/Dockerfile | 12 ++++++++++++ i2pd/Makefile | 17 +++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 i2pd/Dockerfile create mode 100644 i2pd/Makefile diff --git a/i2pd/Dockerfile b/i2pd/Dockerfile new file mode 100644 index 0000000..f9ede9f --- /dev/null +++ b/i2pd/Dockerfile @@ -0,0 +1,12 @@ +FROM almalinux:9 + +ARG I2PD_VERSION +ARG I2PD_BUILD + +RUN dnf install -y epel-release dnf-plugins-core \ + && dnf update -y \ + && dnf config-manager --enable crb \ + && dnf clean all \ + && rm -rf /var/cache/yum + +RUN dnf install -y https://github.com/PurpleI2P/i2pd/releases/download/${I2PD_VERSION}/i2pd-${I2PD_VERSION}-${I2PD_BUILD}.el9.x86_64.rpm diff --git a/i2pd/Makefile b/i2pd/Makefile new file mode 100644 index 0000000..f37e823 --- /dev/null +++ b/i2pd/Makefile @@ -0,0 +1,17 @@ +VERSION=2.56.0 +BUILD=1 +IMAGE=i2pd +REGISTRY=gitea.geekhome.org/ghp + +.PHONY: build push all + +build: + docker build $(NO_CACHE) \ + --build-arg I2PD_VERSION=$(VERSION) \ + --build-arg I2PD_BUILD=$(BUILD) \ + -t $(REGISTRY)/$(IMAGE):$(VERSION)-$(BUILD) . + +push: + docker push $(REGISTRY)/$(IMAGE):$(VERSION)-$(BUILD) + +all: build push