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

21
radicle-node/Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
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_NODE_VERSION
RUN curl https://files.radicle.xyz/releases/latest/radicle-$RADICLE_NODE_VERSION-x86_64-unknown-linux-musl.tar.xz | tar -xvJf - --strip-components=1 -C /usr/local/
EXPOSE 9876
ENV RUST_BACKTRACE=1
CMD ["rad", "node", "start", "--foreground"]

22
radicle-node/Makefile Normal file
View File

@@ -0,0 +1,22 @@
VERSION=1.5.0
BUILD=1
IMAGE=radicle-node
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_NODE_VERSION=$(VERSION) \
-t $(REGISTRY)/$(IMAGE):$(VERSION)-$(BUILD) .
push:
$(CMD) push $(REGISTRY)/$(IMAGE):$(VERSION)-$(BUILD)
all: build push