add radicle images

This commit is contained in:
ace
2026-01-09 22:15:58 +03:00
parent 49881ed2e0
commit 45d0642fb9
7 changed files with 152 additions and 0 deletions

23
radicle-httpd/Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
FROM almalinux:10
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 git npm \
&& dnf clean all \
&& rm -rf /var/cache/yum
ARG RADICLE_HTTPD_VERSION
RUN curl https://files.radicle.xyz/releases/radicle-httpd/latest/radicle-httpd-${RADICLE_HTTPD_VERSION}-x86_64-unknown-linux-musl.tar.xz | tar -xvJf - --strip-components=1 -C /usr/local/
EXPOSE 8080
ENV RAD_HOME=/root/.radicle
ENV RUST_BACKTRACE=1
ENV RUST_LOG=info
CMD ["radicle-httpd"]

22
radicle-httpd/Makefile Normal file
View File

@@ -0,0 +1,22 @@
VERSION=0.22.0
BUILD=1
IMAGE=radicle-httpd
REGISTRY=gitea.geekhome.org/ghp
.PHONY: build push all
ifeq ($(shell command -v podman 2> /dev/null),)
CMD=docker
else
CMD=podman
endif
build:
$(CMD) build $(NO_CACHE) \
--build-arg RADICLE_HTTPD_VERSION=$(VERSION) \
-t $(REGISTRY)/$(IMAGE):$(VERSION)-$(BUILD) .
push:
$(CMD) push $(REGISTRY)/$(IMAGE):$(VERSION)-$(BUILD)
all: build push