13 Commits

Author SHA1 Message Date
258b6f3041 - In the ISL popup:
- Add line shading,
  - Remove table border,
- Add Rx3 in the superviosr HTML footer.
2026-02-16 08:52:55 +01:00
73ef6b46d5 - Add header to supervisor ISL popup,
- Minor font and color fixes to ISL popup.
2026-02-14 12:20:17 +01:00
448c084b2f - Add ISL support,
- Add ISL display to supervisor HTTPD status page,
- Add SERVER_SV_HTTPD_ENABLED env variable,
- Use now supervisor 4.3.0,
- Use now rx3-docker/base:1.4.0-mga9 image,
- Rebuild for updates.
2026-02-13 19:23:39 +01:00
dbb5451c01 - Use now rx3-docker/base:1.3.6-mga9 image,
- Rebuild for updates.
2025-11-28 10:41:36 +01:00
d277b03f14 - Update myip to 1.2.0,
- Use now rx3-docker/base:1.3.4-mga9 image,
- Remove stupid /var/log/README broken link,
- Rebuild for updates.
2025-09-19 19:00:00 +02:00
9a6237864a - Update myip to 1.0.1. 2025-07-26 18:43:47 +02:00
3ec4170d67 - Use now rx3-docker/base:1.3.4-mga9 image,
- Fix re-run config bug on a already created container.
2025-06-26 18:06:22 +02:00
373a9488f1 - Use now rx3-docker/base:1.3.3-mga9 image,
- Add dnsmasq to perform optional DNS forwarding,
- Add "urpmi.update -a" to force mirror sync.
2025-05-28 18:41:36 +02:00
c924a727e4 - Use now rx3-docker/base:1.3.2-mga9 image,
- Add "urpmi.update -a" to force mirror sync.
2025-04-13 11:06:03 +02:00
ff200ab4b8 - Use now rx3-docker/base:1.3.1-mga9 image. 2025-03-08 11:51:12 +01:00
1ac4e60906 - Move all supervisor logs from /tmp to /var/log/supivisor,
- Add /var/log/init & var/log/supervisor volumes.
2024-11-11 23:12:42 +01:00
28e24b2bd9 - Move & Rename repo from Rx3/Server-MGA9 to Rx3-Docker/Server,
- New version naming standard,
- Now use docker_tools for .env building,
- Use now rx3-docker/base:1.3.0-mga9 image,
- Add crond enabling via SERVER_CROND_ENABLE environement variable.
2024-11-10 23:58:19 +01:00
eade80234e - Use now rx3/base-mga9:1.2.6 image,
- Variabilization of external server ports in env & compose file,
- Use now docker_tools for .env building.
2024-10-05 12:29:19 +02:00
8 changed files with 501 additions and 103 deletions

28
.env
View File

@@ -1,28 +0,0 @@
# Rx3 Server Mageia-9 Docker Image
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# Global Settings
#-------------------------------------------------------------------------------
IMG_ORG="rx3"
IMG_REGISTRY="docker.xor.rx3:5000"
IMG_URL_PREFIX="${IMG_REGISTRY}/${IMG_ORG}"
#-------------------------------------------------------------------------------
# Image Settings
#-------------------------------------------------------------------------------
IMG_NAME="server-mga9"
IMG_FULL_NAME="Rx3 Server Mageia-9 Docker Image"
IMG_VERSION="1.1.2"
IMG_URL="${IMG_URL_PREFIX}/${IMG_NAME}:${IMG_VERSION}"
IMG_MAINTAINER='"Arnaud G. GIBERT" <arnaud@rx3.net>'
#-------------------------------------------------------------------------------
# User Settings
#-------------------------------------------------------------------------------

View File

@@ -1,83 +1,325 @@
# Rx3 Server Mageia-9 Docker Image
# Rx3-Docker/Server Docker Image
#-------------------------------------------------------------------------------
ARG IMG_URL_PREFIX="rx3"
ARG IMG_FROM_URL="rx3-docker/base:latest"
FROM ${IMG_URL_PREFIX}/base-mga9:1.2.4
FROM ${IMG_FROM_URL}
ARG IMG_NAME
ARG IMG_FULL_NAME
ARG IMG_NAME_FULL
ARG IMG_VERSION
ARG IMG_MAINTAINER
ARG IMG_URL
LABEL org.rx3.${IMG_NAME}.name=${IMG_FULL_NAME}
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}
ARG SERVER_LOG_INIT_DIR
ARG SERVER_LOG_SV_DIR
ARG SERVER_PORT_SV_INT
ARG SERVER_LOG_INIT_FILE=${SERVER_LOG_INIT_DIR}/init.log
ARG SERVER_CROND_INI=/etc/supervisord.d/crond.ini
ARG SERVER_DNSMASQ_INI=/etc/supervisord.d/dnsmasq.ini
ARG SERVER_DNSMASQ_CONF=/etc/dnsmasq.conf
ARG SERVER_RESOLV_CONF=/etc/resolv.conf
ARG SERVER_SV_INI=/etc/supervisord.d/supervisord.ini
ARG SERVER_SV_HTTPD_INI=/etc/supervisord.d/supervisord-httpd.ini
ARG SERVER_SV_HTTPD_PAGE=/usr/lib/python3.10/site-packages/supervisor/ui/status.html
ARG SERVER_SV_HTTPD_CSS=/usr/lib/python3.10/site-packages/supervisor/ui/stylesheets/supervisor.css
#---------------------------------------------------------------------------------------------------
ARG INIT_SHELL='#!/bin/bash \n\
\n\
function log() { echo "$(date --rfc-3339=ns) Init: $*" | tee -a /var/log/init.log; } \n\
\n\
log "Starting" \n\
\n\
for pgm in /etc/rcD.d/* \n\
do \n\
if [[ -r ${pgm} ]] \n\
then \n\
if [[ ${pgm##*/} == S99* ]] \n\
then \n\
log "Executing: [${pgm##*/}]" \n\
log "Completed" \n\
exec ${pgm} \n\
else \n\
log "Calling: [${pgm##*/}]" \n\
${pgm} \n\
fi \n\
fi \n\
#-----------------------------------------------------------------------------------------------------------------------
ARG SERVER_SV_HTML_IMG_B='status" />'
#-----------------------------------------------------------------------------------------------------------------------
#-----------------------------------------------------------------------------------------------------------------------
ARG SERVER_SV_HTML_IMG_A='status"/> \n\
<div id="isl">IMG_NAME_VERSION \n\
<div id="isl-tab"> \n\
<table> \n\
<thead> \n\
<tr> \n\
<th>Id</th> \n\
<th>Date</th> \n\
<th>Time</th> \n\
<th>Registry</th> \n\
<th>Image</th> \n\
<th>Tag</th> \n\
</tr> \n\
</thead> \n\
<tbody> \n\
IMG_STACK_LOG \n\
</tbody> \n\
</table> \n\
</div> \n\
</div>'
#-----------------------------------------------------------------------------------------------------------------------
#-----------------------------------------------------------------------------------------------------------------------
ARG SERVER_SV_HTML_VERSION_B='version">#</span>'
#-----------------------------------------------------------------------------------------------------------------------
#-----------------------------------------------------------------------------------------------------------------------
ARG SERVER_SV_HTML_VERSION_A='version">#</span> + <a href="https://www.rx3.net/">Rx<sup>3</sup></a> Image Stack Log support'
#-----------------------------------------------------------------------------------------------------------------------
#-----------------------------------------------------------------------------------------------------------------------
ARG SERVER_SV_CSS_HEADER_B='repeat-x;'
#-----------------------------------------------------------------------------------------------------------------------
#-----------------------------------------------------------------------------------------------------------------------
ARG SERVER_SV_CSS_HEADER_A='repeat-x; \n\
display: flex; \n\
align-items: center; \n\
justify-content: space-between; \n\
font-size: 16px; \n\
font-weight: bold; \n\
} \n\
\n\
\#isl { \n\
position: relative; \n\
display: inline-block; \n\
cursor: pointer; \n\
} \n\
\n\
\#isl-tab { \n\
visibility: hidden; \n\
width: fit-content; \n\
background: #00000000; \n\
color: white; \n\
padding: 2px; \n\
border-radius: 4px; \n\
position: absolute; \n\
z-index: 1; \n\
top: 100%; \n\
right: 0; \n\
transform: none; \n\
opacity: 0; \n\
transition: opacity 0.3s; \n\
} \n\
\n\
\#isl:hover #isl-tab { \n\
visibility: visible; \n\
opacity: 1; \n\
} \n\
\n\
\#isl-tab table td, \n\
\#isl-tab table th { \n\
white-space: nowrap; \n\
padding: 4px 8px; \n\
border: 0px solid #666; \n\
font-size: 14px; \n\
} \n\
\n\
\#isl-tab table th { \n\
background: #333; \n\
} \n\
\n\
\#isl-tab table { \n\
border-collapse: collapse; \n\
width: fit-content; \n\
max-width: 500px; \n\
overflow-x: auto; \n\
'
#-----------------------------------------------------------------------------------------------------------------------
#-----------------------------------------------------------------------------------------------------------------------
ARG INIT_SHELL='#!/bin/bash \n\
\n\
. /etc/profile.d/rx3.sh \n\
\n\
\n\
log() { echo "$(date --rfc-3339=ns) Init: $*" | tee -a '${SERVER_LOG_INIT_FILE}'; } \n\
\n\
\n\
log "Starting" \n\
\n\
for pgm in /etc/rcD.d/* \n\
do \n\
if [[ -r ${pgm} ]] \n\
then \n\
if [[ ${pgm##*/} == S99* ]] \n\
then \n\
log "Executing: [${pgm##*/}]" \n\
log "Completed" \n\
exec ${pgm} \n\
else \n\
log "Calling: [${pgm##*/}]" \n\
${pgm} \n\
fi \n\
fi \n\
done'
#---------------------------------------------------------------------------------------------------
#---------------------------------------------------------------------------------------------------
ARG SUPERVISORD_INI='[inet_http_server] \n\
port=*:9001 \n\
\n\
[supervisord] \n\
nodaemon=true \n\
user=root'
#---------------------------------------------------------------------------------------------------
#-----------------------------------------------------------------------------------------------------------------------
#---------------------------------------------------------------------------------------------------
ARG CROND_INI='[program:crond] \n\
command=crond -n'
#---------------------------------------------------------------------------------------------------
#---------------------------------------------------------------------------------------------------
ARG SUPERVISORD='#!/bin/bash \n\
\n\
#-----------------------------------------------------------------------------------------------------------------------
ARG CROND='#!/bin/bash \n\
\n\
\n\
if [[ "${SERVER_CROND_ENABLED}" != "TRUE" ]] \n\
then \n\
file_enable "'${SERVER_CROND_INI}'" FALSE \n\
else \n\
file_enable "'${SERVER_CROND_INI}'" TRUE \n\
fi'
#-----------------------------------------------------------------------------------------------------------------------
#-----------------------------------------------------------------------------------------------------------------------
ARG DNSMASQ='#!/bin/bash \n\
\n\
\n\
if [[ "${SERVER_DNS_ENABLED}" != "TRUE" ]] \n\
then \n\
file_enable "'${SERVER_DNSMASQ_INI}'" FALSE \n\
else \n\
file_enable "'${SERVER_DNSMASQ_INI}'" TRUE \n\
\n\
cp '${SERVER_DNSMASQ_CONF}'.dist '${SERVER_DNSMASQ_CONF}' \n\
\n\
echo "" >> '${SERVER_DNSMASQ_CONF}' \n\
echo "# Listen local address" >> '${SERVER_DNSMASQ_CONF}' \n\
echo "interface=lo" >> '${SERVER_DNSMASQ_CONF}' \n\
echo "bind-interfaces" >> '${SERVER_DNSMASQ_CONF}' \n\
echo "" >> '${SERVER_DNSMASQ_CONF}' \n\
echo "port=53 # DNS only" >> '${SERVER_DNSMASQ_CONF}' \n\
echo "no-dhcp-interface= # disables DHCPv4" >> '${SERVER_DNSMASQ_CONF}' \n\
echo "" >> '${SERVER_DNSMASQ_CONF}' \n\
echo "# Forward local domains" >> '${SERVER_DNSMASQ_CONF}' \n\
\n\
for map in ${SERVER_DNS_MAP} \n\
do \n\
OIFS=$IFS \n\
IFS=":" \n\
set ${map} \n\
IFS=$OIFS \n\
\n\
domain="$1" \n\
server="$2" \n\
\n\
echo "server=/${domain}/${server}" >> '${SERVER_DNSMASQ_CONF}' \n\
done \n\
\n\
echo "" >> '${SERVER_DNSMASQ_CONF}' \n\
echo "# Forward all other queries to default server" >> '${SERVER_DNSMASQ_CONF}' \n\
echo "server=${SERVER_DNS_DEFAULT}" >> '${SERVER_DNSMASQ_CONF}' \n\
\n\
cp /etc/resolv.conf /etc/resolv.conf.old \n\
\n\
echo "# Generated by DNSMasq init script" > '${SERVER_RESOLV_CONF}' \n\
echo "" >> '${SERVER_RESOLV_CONF}' \n\
echo "nameserver 127.0.0.1" >> '${SERVER_RESOLV_CONF}' \n\
echo "search ${SERVER_DNS_SEARCH}" >> '${SERVER_RESOLV_CONF}' \n\
\n\
fi'
#-----------------------------------------------------------------------------------------------------------------------
#-----------------------------------------------------------------------------------------------------------------------
ARG SUPERVISORD='#!/bin/bash \n\
\n\
if [[ "${SERVER_SV_HTTPD_ENABLED}" == "FALSE" ]] \n\
then \n\
file_enable "'${SERVER_SV_HTTPD_INI}'" FALSE \n\
else \n\
file_enable "'${SERVER_SV_HTTPD_INI}'" TRUE \n\
fi \n\
\n\
cp '${SERVER_SV_HTTPD_CSS}.ref' '${SERVER_SV_HTTPD_CSS}' \n\
cp '${SERVER_SV_HTTPD_PAGE}.ref' '${SERVER_SV_HTTPD_PAGE}' \n\
sed -i -e "s%IMG_NAME_VERSION%$(isl_top -i)%" '${SERVER_SV_HTTPD_PAGE}' \n\
sed -i -e "s%IMG_STACK_LOG%$(isl_html_dump -i)%" '${SERVER_SV_HTTPD_PAGE}' \n\
\n\
exec supervisord -c /etc/supervisord.conf'
#---------------------------------------------------------------------------------------------------
#-----------------------------------------------------------------------------------------------------------------------
RUN urpmi --force supervisor \
&& echo -e "${INIT_SHELL}" | sed -e 's/ *$//' >/usr/local/sbin/init.sh \
&& chmod a+x /usr/local/sbin/init.sh \
&& mkdir /etc/rc.d/rcD.d \
&& ln -s /etc/rc.d/rcD.d /etc \
&& echo -e "${SUPERVISORD_INI}" | sed -e "s/\`/'/g" -e 's/ *$//' > /etc/supervisord.d/supervisord.ini \
&& echo -e "${CROND_INI}" | sed -e "s/\`/'/g" -e 's/ *$//' > /etc/supervisord.d/crond.ini \
&& echo -e "${SUPERVISORD}" | sed -e "s/\`/'/g" -e 's/ *$//' > /etc/init.d/supervisord \
&& chmod a+x /etc/init.d/supervisord \
&& ln -s /etc/init.d/supervisord /etc/rcD.d/S99supervisord
#-----------------------------------------------------------------------------------------------------------------------
ARG CROND_INI='[program:crond] \n\
command=crond -n'
#-----------------------------------------------------------------------------------------------------------------------
#-----------------------------------------------------------------------------------------------------------------------
ARG DNSMASQ_INI='[program:dnsmasq] \n\
command=dnsmasq -k'
#-----------------------------------------------------------------------------------------------------------------------
#-----------------------------------------------------------------------------------------------------------------------
ARG SUPERVISORD_INI='[supervisord] \n\
nodaemon=true \n\
childlogdir='${SERVER_LOG_SV_DIR}' \n\
user=root'
#-----------------------------------------------------------------------------------------------------------------------
#-----------------------------------------------------------------------------------------------------------------------
ARG SUPERVISORD_HTTPD_INI='[inet_http_server] \n\
port=*:'${SERVER_PORT_SV_INT}
#-----------------------------------------------------------------------------------------------------------------------
RUN . /etc/profile.d/rx3.sh && isl_add ${IMG_URL} \
&& urpmi.update -a \
&& urpmi --force dnsmasq myip supervisor \
&& rm -f /var/log/README \
&& echo -e "${INIT_SHELL}" | sed -e "s/\`/'/g" -e 's/ *$//' > /usr/local/sbin/init.sh \
&& chmod a+x /usr/local/sbin/init.sh \
&& mkdir /etc/rc.d/rcD.d \
&& ln -s /etc/rc.d/rcD.d /etc \
&& mkdir "${SERVER_LOG_INIT_DIR}" \
&& echo -e "${CROND}" | sed -e "s/\`/'/g" -e 's/ *$//' > /etc/init.d/crond \
&& echo -e "${DNSMASQ}" | sed -e "s/\`/'/g" -e 's/ *$//' > /etc/init.d/dnsmasq \
&& echo -e "${SUPERVISORD}" | sed -e "s/\`/'/g" -e 's/ *$//' > /etc/init.d/supervisord \
&& chmod a+x /etc/init.d/crond \
&& chmod a+x /etc/init.d/dnsmasq \
&& chmod a+x /etc/init.d/supervisord \
&& ln -s /etc/init.d/crond /etc/rcD.d/S60crond \
&& ln -s /etc/init.d/dnsmasq /etc/rcD.d/S65dnsmasq \
&& ln -s /etc/init.d/supervisord /etc/rcD.d/S99supervisord \
&& echo -e "${CROND_INI}" | sed -e "s/\`/'/g" -e 's/ *$//' > ${SERVER_CROND_INI} \
&& echo -e "${DNSMASQ_INI}" | sed -e "s/\`/'/g" -e 's/ *$//' > ${SERVER_DNSMASQ_INI} \
&& echo -e "${SUPERVISORD_INI}" | sed -e "s/\`/'/g" -e 's/ *$//' > ${SERVER_SV_INI} \
&& echo -e "${SUPERVISORD_HTTPD_INI}" | sed -e "s/\`/'/g" -e 's/ *$//' > ${SERVER_SV_HTTPD_INI} \
&& mv "${SERVER_DNSMASQ_CONF}" "${SERVER_DNSMASQ_CONF}.dist" \
&& mv "${SERVER_SV_HTTPD_PAGE}" "${SERVER_SV_HTTPD_PAGE}.ref" \
&& sed -i -e "s%${SERVER_SV_HTML_IMG_B}%${SERVER_SV_HTML_IMG_A}%" "${SERVER_SV_HTTPD_PAGE}.ref" \
&& sed -i -e "s%${SERVER_SV_HTML_VERSION_B}%${SERVER_SV_HTML_VERSION_A}%" "${SERVER_SV_HTTPD_PAGE}.ref" \
&& mv "${SERVER_SV_HTTPD_CSS}" "${SERVER_SV_HTTPD_CSS}.ref" \
&& sed -i -e "s/${SERVER_SV_CSS_HEADER_B}/${SERVER_SV_CSS_HEADER_A}/" "${SERVER_SV_HTTPD_CSS}.ref"
VOLUME ${SERVER_LOG_INIT_DIR}
VOLUME ${SERVER_LOG_SV_DIR}
EXPOSE ${SERVER_PORT_SV_INT}
EXPOSE 9001
CMD []
ENTRYPOINT ["init.sh"]

View File

@@ -1,14 +1,19 @@
Welcome to Rx3/Server-Mga9 docker image!
Welcome to Rx3-Docker/Server docker image!
This is project aims to build a Mageia-9 server docker image to be used by others Rx3 packaging projects.
This project aims to build a Mageia server docker image to be used by other Rx3 packaging projects.
Features:
- Curtently based on rx3/base-mga9:1.2.4 image,
- Curtently based on rx3-docker/base:1.4.0-mga9 image,
- Init script calling in order sub scripts in /etc/init.d & /etc/rcD.d,
- supervisord managing services,
- crond & logrotate configured.
- supervisord httpd configured and enabled by default,
- crond & logrotate configured with crond disabled by default,
- DNS forwarding support with dnsmasq, disabled by default,
- myip tool,
- Export init & supivisor log directories as volume.
Enjoy it!
@@ -16,4 +21,4 @@ Enjoy it!
Your Rx3 Team.
arnaud@rx3.net
https://git.rx3.org/gitea/rx3/server-mga9
https://git.rx3.org/gitea/rx3-docker/server

View File

@@ -1,3 +1,103 @@
------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/Server V 1.3.0 - A. GIBERT - 2026/02/16
------------------------------------------------------------------------------------------------------------------------------------
- Add ISL support,
- Add ISL display to supervisor HTTPD status page,
- Add SERVER_SV_HTTPD_ENABLED env variable,
- Use now supervisor 4.3.0,
- Use now rx3-docker/base:1.4.0-mga9 image,
- Rebuild for updates.
------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/Server V 1.2.7 - A. GIBERT - 2025/11/28
------------------------------------------------------------------------------------------------------------------------------------
- Use now rx3-docker/base:1.3.6-mga9 image,
- Rebuild for updates.
------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/Server V 1.2.6 - A. GIBERT - 2025/09/19
------------------------------------------------------------------------------------------------------------------------------------
- Update myip to 1.2.0,
- Use now rx3-docker/base:1.3.5-mga9 image,
- Rebuild for updates.
------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/Server V 1.2.5 - A. GIBERT - 2025/07/26
------------------------------------------------------------------------------------------------------------------------------------
- Update myip to 1.0.1.
------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/Server V 1.2.4 - A. GIBERT - 2025/06/26
------------------------------------------------------------------------------------------------------------------------------------
- Use now rx3-docker/base:1.3.4-mga9 image,
- Fix re-run config bug on a already created container.
------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/Server V 1.2.3 - A. GIBERT - 2025/05/28
------------------------------------------------------------------------------------------------------------------------------------
- Use now rx3-docker/base:1.3.3-mga9 image,
- Add dnsmasq to perform optional DNS forwarding,
- Add myip tool,
- Add "urpmi.update -a" to force mirror sync.
------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/Server V 1.2.2 - A. GIBERT - 2025/04/13
------------------------------------------------------------------------------------------------------------------------------------
- Use now rx3-docker/base:1.3.2-mga9 image,
- Add "urpmi.update -a" to force mirror sync.
------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/Server V 1.2.1 - A. GIBERT - 2025/03/08
------------------------------------------------------------------------------------------------------------------------------------
- Use now rx3-docker/base:1.3.1-mga9 image.
------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/Server V 1.2.0 - A. GIBERT - 2024/11/10
------------------------------------------------------------------------------------------------------------------------------------
- Move & Rename repo from Rx3/Server-MGA9 to Rx3-Docker/Server,
- New version naming standard,
- Now use docker_tools for .env building,
- Use now rx3-docker/base:1.3.0-mga9 image,
- Add crond enabling via SERVER_CROND_ENABLE environement variable,
- Add /var/log/init & var/log/supervisor volumes.
------------------------------------------------------------------------------------------------------------------------------------
Rx3/Server-Mga9 V 1.1.3 - A. GIBERT - 2024/10/05
------------------------------------------------------------------------------------------------------------------------------------
- Use now rx3/base-mga9:1.2.6 image,
- Variabilization of external server ports in env & compose file,
- Use now docker_tools for .env building.
------------------------------------------------------------------------------------------------------------------------------------
Rx3/Server-Mga9 V 1.1.2 - A. GIBERT - 2024/08/28
------------------------------------------------------------------------------------------------------------------------------------

View File

@@ -1,25 +1,43 @@
# Rx3 Server Mageia-9 Docker Image
# Rx3-Docker/Server Docker Image
#-------------------------------------------------------------------------------
name: ${IMG_NAME}
name: ${IMG_NAME}
services:
server:
container_name: ${IMG_NAME}
container_name: ${IMG_NAME}
hostname: ${IMG_NAME}
image: ${IMG_URL}
image: ${IMG_URL}
build:
context: .
context: .
args:
- IMG_NAME=${IMG_NAME}
- IMG_FULL_NAME=${IMG_FULL_NAME}
- IMG_VERSION=${IMG_VERSION}
- IMG_MAINTAINER=${IMG_MAINTAINER}
- IMG_URL_PREFIX=${IMG_URL_PREFIX}
IMG_NAME: ${IMG_NAME}
IMG_NAME_FULL: ${IMG_NAME_FULL}
IMG_VERSION: ${IMG_VERSION}
IMG_MAINTAINER: ${IMG_MAINTAINER}
IMG_URL: ${IMG_URL}
IMG_FROM_URL: ${IMG_FROM_URL}
restart: unless-stopped
SERVER_LOG_INIT_DIR: ${SERVER_LOG_INIT_DIR}
SERVER_LOG_SV_DIR: ${SERVER_LOG_SV_DIR}
SERVER_PORT_SV_INT: ${SERVER_PORT_SV_INT}
restart: unless-stopped
environment:
SERVER_CROND_ENABLED: ${SERVER_CROND_ENABLED}
SERVER_DNS_ENABLED: ${SERVER_DNS_ENABLED}
SERVER_DNS_DEFAULT: ${SERVER_DNS_DEFAULT}
SERVER_DNS_MAP: ${SERVER_DNS_MAP}
SERVER_DNS_SEARCH: ${SERVER_DNS_SEARCH}
SERVER_SV_HTTPD_ENABLED: ${SERVER_SV_HTTPD_ENABLED}
volumes:
- ./var/log/init:${SERVER_LOG_INIT_DIR}
- ./var/log/supervisor:${SERVER_LOG_SV_DIR}
ports:
- "127.0.0.1:9010:9001"
- "127.0.0.1:${SERVER_PORT_SV_EXT}:${SERVER_PORT_SV_INT}"

53
env.dist Normal file
View File

@@ -0,0 +1,53 @@
# Rx3-Docker/Server Docker Image
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# Global Settings
#-------------------------------------------------------------------------------
ORG_NAME="rx3-docker"
ORG_REGISTRY="docker.xor.rx3:5000"
ORG_URL_PREFIX="${ORG_REGISTRY}/${ORG_NAME}"
#-------------------------------------------------------------------------------
# Image Settings
#-------------------------------------------------------------------------------
IMG_NAME="server"
IMG_NAME_FULL="Rx3-Docker/Server Docker Image"
IMG_VERSION="1.3.0-mga9"
IMG_MAINTAINER='"Arnaud G. GIBERT" <arnaud@rx3.net>'
IMG_URL_PREFIX="${ORG_URL_PREFIX}"
IMG_URL="${IMG_URL_PREFIX}/${IMG_NAME}:${IMG_VERSION}"
IMG_FROM_URL="${ORG_URL_PREFIX}/base:1.4.0-mga9"
#-------------------------------------------------------------------------------
# User Settings
#-------------------------------------------------------------------------------
ENV_PORT_OFFSET=0
SV_PORT_OFFSET=1000
SERVER_PORT_MAIN_EXT=$(( 8080 + ${ENV_PORT_OFFSET}))
SERVER_PORT_SV_EXT=$(( ${SERVER_PORT_MAIN_EXT} + ${SV_PORT_OFFSET}))
SERVER_PORT_SV_INT=9001
SERVER_LOG_INIT_DIR="/var/log/init"
SERVER_LOG_SV_DIR="/var/log/supervisor"
SERVER_SV_HTTPD_ENABLED="TRUE"
SERVER_CROND_ENABLED="FALSE"
SERVER_DNS_ENABLED="FALSE"
SERVER_DNS_DEFAULT="1.1.1.1"
SERVER_DNS_MAP="rx3:10.0.0.1 10.in-addr.arpa:10.0.0.1 168.192.in-addr.arpa:10.0.0.1"
SERVER_DNS_SEARCH="xor.rx3 and.rx3 nor.rx3 not.rx3 gw.rx3 mob.rx3 fix.rx3 vir.rx3 vpn.rx3 proto.rx3 rx3 rx3.net"

4
var/log/init/.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

4
var/log/supervisor/.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore