add radicle images
This commit is contained in:
36
radicle-explorer/Dockerfile
Normal file
36
radicle-explorer/Dockerfile
Normal 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
22
radicle-explorer/Makefile
Normal 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
|
||||
6
radicle-explorer/kubernetes.repo
Normal file
6
radicle-explorer/kubernetes.repo
Normal 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
|
||||
Reference in New Issue
Block a user