added aliases for pmls / pmlsa
added basic rtl container (not configured yet)
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
# Install Dependencies
|
||||
# ---------------
|
||||
FROM docker.io/almalinux/9-base as builder
|
||||
|
||||
WORKDIR /RTL
|
||||
|
||||
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
|
||||
# ---------------
|
||||
|
||||
# Build the Angular application
|
||||
RUN npm run buildfrontend
|
||||
|
||||
# Build the Backend from typescript server
|
||||
RUN npm run buildbackend
|
||||
|
||||
# Remove non production necessary modules
|
||||
RUN npm prune --production
|
||||
|
||||
# ---------------
|
||||
# Release App
|
||||
# ---------------
|
||||
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/*
|
||||
|
||||
WORKDIR /RTL
|
||||
|
||||
COPY --from=builder /RTL/rtl.js ./rtl.js
|
||||
COPY --from=builder /RTL/package.json ./package.json
|
||||
COPY --from=builder /RTL/frontend ./frontend
|
||||
COPY --from=builder /RTL/backend ./backend
|
||||
COPY --from=builder /RTL/node_modules/ ./node_modules
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["node", "rtl"]
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user