From 0e737090e3468583b44197f81ddd728c8378e6d4 Mon Sep 17 00:00:00 2001 From: "Arnaud G. GIBERT" Date: Thu, 5 Feb 2026 16:04:03 +0100 Subject: [PATCH] - Initial release, - Based on rx3/server-mga9:1.2.7 image, - Node.js V22.22.0. --- .gitignore | 2 ++ Dockerfile | 24 ++++++++++++++++ ReadMe.txt | 18 ++++++++++++ compose.yaml | 30 ++++++++++++++++++++ env.dist | 52 +++++++++++++++++++++++++++++++++++ var/log/init/.gitignore | 4 +++ var/log/supervisor/.gitignore | 4 +++ 7 files changed, 134 insertions(+) create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 ReadMe.txt create mode 100644 compose.yaml create mode 100644 env.dist create mode 100644 var/log/init/.gitignore create mode 100644 var/log/supervisor/.gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..556bc65 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*~ +*.old diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bf3b133 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +# Rx3-Docker/NodeJS Docker Image +#------------------------------------------------------------------------------- + +ARG IMG_FROM_URL="rx3-docker/server:latest" + +FROM ${IMG_FROM_URL} + +ARG IMG_NAME +ARG IMG_NAME_FULL +ARG IMG_VERSION +ARG IMG_MAINTAINER + +LABEL org.rx3.${IMG_NAME}.name=${IMG_NAME_FULL} +LABEL org.rx3.${IMG_NAME}.version=${IMG_VERSION} +LABEL org.rx3.${IMG_NAME}.maintainer=${IMG_MAINTAINER} +LABEL maintainer=${IMG_MAINTAINER} + + + +RUN urpmi.update -a \ + && urpmi --force nodejs + + + diff --git a/ReadMe.txt b/ReadMe.txt new file mode 100644 index 0000000..4b700f7 --- /dev/null +++ b/ReadMe.txt @@ -0,0 +1,18 @@ +Welcome to Rx3-Docker/NodeJS docker image! + + + +This project aims to build a Node.js docker image used by other Rx3 packaging projects. + +Features: + - Curtently based on rx3-docker/server:1.2.7-mga9 image, + - Node.js V22.22.0. + + +Enjoy it! + +Your Rx3 Team. + +-- +arnaud@rx3.net +https://git.rx3.org/gitea/rx3-docker/nodejs diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..59a5eef --- /dev/null +++ b/compose.yaml @@ -0,0 +1,30 @@ +# Rx3-Docker/NodeJS Docker Image +#------------------------------------------------------------------------------- + +name: ${SRV_IMG_NAME} + +services: + + server: + container_name: ${SRV_IMG_NAME} + hostname: ${SRV_IMG_NAME} + + image: ${SRV_IMG_URL} + + build: + context: . + args: + IMG_NAME: ${SRV_IMG_NAME} + IMG_NAME_FULL: ${SRV_IMG_NAME_FULL} + IMG_VERSION: ${SRV_IMG_VERSION} + IMG_MAINTAINER: ${SRV_IMG_MAINTAINER} + IMG_FROM_URL: ${SRV_IMG_FROM_URL} + + restart: unless-stopped + + volumes: + - ./${SRV_LOG_INIT_EXT}:${SRV_LOG_INIT_INT} + - ./${SRV_LOG_SV_EXT}:${SRV_LOG_SV_INT} + + ports: + - "127.0.0.1:${SRV_PORT_SV_EXT}:${SRV_PORT_SV_INT}" diff --git a/env.dist b/env.dist new file mode 100644 index 0000000..e856633 --- /dev/null +++ b/env.dist @@ -0,0 +1,52 @@ +# Rx3-Docker/NodeJS Docker Image +#------------------------------------------------------------------------------- + +#------------------------------------------------------------------------------- +# Global Settings +#------------------------------------------------------------------------------- + +ORG_NAME="rx3-docker" +ORG_REGISTRY="docker.xor.rx3:5000" +ORG_MAINTAINER='"Arnaud G. GIBERT" ' + +ORG_URL_PREFIX="${ORG_REGISTRY}/${ORG_NAME}" + + + +#------------------------------------------------------------------------------- +# Image Settings +#------------------------------------------------------------------------------- + +HOST_NAME_PREFIX="" + +PORT_ENV_OFFSET=0 + +PORT_SV_INT=9001 +PORT_SV_OFFSET=1000 + +NETWORK_NAME=${HOST_NAME_PREFIX} +NETWORK_IF_NAME=br-${APPL_NAME_SHORT}-${APPL_ENV} + +DOCKER_TOOLS_DEBUG=FALSE + +DOCKER_TOOLS_VOLUME=SINGLE +#DOCKER_TOOLS_VOLUME=MIXED +#DOCKER_TOOLS_VOLUME=MERGED +#DOCKER_TOOLS_VOLUME=SPLIT + +#DOCKER_TOOLS_EXEPTION_LIBS="postgres:pgsql" + +#------------------+----------+--------------------------+--------------------+------------------+-------------------------------+----------------------+--------------------+---------------+------------+--------------+------------+-------+-------+-------+-------+--------------+--------------+ +# | Variable | Service | Target Image | From Image | Module | Main Port | Admin Port | User | Group | +# | Prefix | Name | URL Prefix | Name | Name Full | Version | URL Prefix | Name | Version | Name | Version | Ext | Int | Ext | Int | Name / Id | Name / Id | +#------------------+----------+--------------------------+--------------------+------------------+-------------------------------+----------------------+--------------------+---------------+------------+--------------+------------+-------+-------+-------+-------+--------------+--------------+ + +docker_service_add SRV server ${ORG_URL_PREFIX} nodejs "Rx3-Docker/NodeJS" 1.0.0-mga9 ${ORG_URL_PREFIX} server 1.2.7-mga9 - - 8015 8080 - - apache apache + + + +#------------------------------------------------------------------------------- +# User Settings +#------------------------------------------------------------------------------- + +SERVER_CROND_ENABLED="FALSE" diff --git a/var/log/init/.gitignore b/var/log/init/.gitignore new file mode 100644 index 0000000..5e7d273 --- /dev/null +++ b/var/log/init/.gitignore @@ -0,0 +1,4 @@ +# Ignore everything in this directory +* +# Except this file +!.gitignore diff --git a/var/log/supervisor/.gitignore b/var/log/supervisor/.gitignore new file mode 100644 index 0000000..5e7d273 --- /dev/null +++ b/var/log/supervisor/.gitignore @@ -0,0 +1,4 @@ +# Ignore everything in this directory +* +# Except this file +!.gitignore