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

View File

@@ -0,0 +1,36 @@
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_EXPLORER_VERSION
WORKDIR /
RUN git clone https://rosa.radicle.xyz/z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git radicle-explorer
WORKDIR /radicle-explorer
RUN git checkout ${RADICLE_EXPLORER_VERSION} && rm -rf .git
ENV VITE_RUNTIME_CONFIG=true
RUN npm install
RUN npm run build
RUN sed -i s/localhost/0.0.0.0/g /radicle-explorer/vite.config.ts
EXPOSE 3000
#ENV RUST_BACKTRACE=1
#
#HEALTHCHECK \
# --interval=60s \
# --timeout=10s \
# --start-period=60s \
# --start-interval=5s \
# --retries=3 \
# CMD [ "/sbin/kanidmd", "healthcheck", "-c", "/data/server.toml"]
#
CMD [ "npm", "run", "start"]

22
radicle-explorer/Makefile Normal file
View File

@@ -0,0 +1,22 @@
VERSION=fadd61463660187bb4bbd88ba6864e6d62113b0b
BUILD=1
IMAGE=radicle-explorer
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_EXPLORER_VERSION=$(VERSION) \
-t $(REGISTRY)/$(IMAGE):$(shell _VERSION=$(VERSION); echo $${_VERSION::6})-$(BUILD) .
push:
$(CMD) push $(REGISTRY)/$(IMAGE):$(shell _VERSION=$(VERSION); echo $${_VERSION::6})-$(BUILD)
all: build push

View File

@@ -0,0 +1,6 @@
[kubernetes]
name=Kubernetes
baseurl=https://pkgs.k8s.io/core:/stable:/v1.32/rpm/
enabled=1
gpgcheck=1
gpgkey=https://pkgs.k8s.io/core:/stable:/v1.32/rpm/repodata/repomd.xml.key

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

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