added aliases for pmls / pmlsa

added basic rtl container (not configured yet)
This commit is contained in:
b0xxer
2024-02-15 07:56:39 -06:00
parent eb66313924
commit 36a67e91c0
10 changed files with 91 additions and 12 deletions
@@ -1,5 +1,6 @@
[Unit]
Description=Bitcoin Node
Before=electrs-node.service clightning-node.service rtl-node.service
[Container]
# Use the centos image
@@ -2,19 +2,18 @@
# ---------------
FROM docker.io/almalinux/9-base as builder
RUN dnf update -y && dnf module -y enable nodejs:18 && dnf install -y nodejs
WORKDIR /RTL
COPY package.json /RTL/package.json
COPY package-lock.json /RTL/package-lock.json
RUN npm install
RUN dnf update -y \
&& dnf module -y enable nodejs:18 \
&& dnf install -y nodejs git \
&& git clone https://github.com/Ride-The-Lightning/RTL.git . \
&& git checkout tags/v0.15.0 \
&& npm install
# ---------------
# Build App
# ---------------
COPY . .
# Build the Angular application
RUN npm run buildfrontend
@@ -28,9 +27,13 @@ RUN npm prune --production
# ---------------
# Release App
# ---------------
FROM docker.io/almalinux/9-init as runner
FROM docker.io/almalinux/9-init
RUN dnf update -y && dnf module -y enable nodejs:18 && dnf install -y nodejs && dnf clean all && rm -fr /tmp/*
RUN dnf update -y \
&& dnf module -y enable nodejs:18 \
&& dnf install -y nodejs \
&& dnf clean all \
&& rm -fr /tmp/*
WORKDIR /RTL
@@ -42,6 +45,4 @@ COPY --from=builder /RTL/node_modules/ ./node_modules
EXPOSE 3000
#ENTRYPOINT ["/sbin/init", "-g", "--"]
CMD ["node", "rtl"]
+6
View File
@@ -0,0 +1,6 @@
#!/bin/sh
#Build command to make container
VER={{rtl_version}}
buildah build -t rtl:$VER -f Containerfile
@@ -0,0 +1,20 @@
[Unit]
Description=RTL Web App
[Container]
Image={{ registry_url }}/rtl:{{ rtl_version }}
PodmanArgs=--pod bitcoin-pod
# Use volume
[Service]
# Restart service when sleep finishes
Restart=always
# Extend Timeout to allow time to pull the image
TimeoutStartSec=900
# ExecStartPre flag and other systemd commands can go here, see systemd.unit(5) man page.
# ExecStartPre=/usr/share/mincontainer/setup.sh
[Install]
# Start by default on boot
WantedBy=multi-user.target default.target