Compare commits

...

2 Commits

Author SHA1 Message Date
5e7e48b5e3 - Add /var/log/init & /var/log/supervisor volumes. 2024-11-11 23:14:15 +01:00
9af3635a2c - Move & Rename repo from Rx3/Java-MGA9 to Rx3-Docker/Java,
- New version naming standard,
- Now use docker_tools for .env building,
- Use now rx3-docker/server:1.2.0-mga9 image,
- Strip down depencies.
2024-11-11 10:42:20 +01:00
7 changed files with 76 additions and 36 deletions

View File

@ -1,20 +1,24 @@
# Rx3 Java Mageia-9 Docker Image # Rx3-Docker/Java Docker Image
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
ARG IMG_URL_PREFIX="rx3" ARG IMG_FROM_URL="rx3-docker/server:latest"
FROM ${IMG_URL_PREFIX}/server-mga9:1.1.3 FROM ${IMG_FROM_URL}
ARG IMG_NAME ARG IMG_NAME
ARG IMG_FULL_NAME ARG IMG_NAME_FULL
ARG IMG_VERSION ARG IMG_VERSION
ARG IMG_MAINTAINER ARG IMG_MAINTAINER
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}.version=${IMG_VERSION}
LABEL org.rx3.${IMG_NAME}.maintainer=${IMG_MAINTAINER} LABEL org.rx3.${IMG_NAME}.maintainer=${IMG_MAINTAINER}
LABEL maintainer=${IMG_MAINTAINER} LABEL maintainer=${IMG_MAINTAINER}
RUN urpmi --force java-17-openjdk-headless lib64rocm-opencl-runtime5.7 RUN urpmi --force --no-install java-17-openjdk-headless lib64rocm-opencl-runtime5.7 \
&& rpm -Uvh --nodeps $( for pkg in javapackages-filesystem java-17-openjdk-headless rootcerts-java timezone-java copy-jdk-configs; do ls /var/cache/urpmi/rpms/$pkg*.rpm; done) \
&& rm -f /var/cache/urpmi/rpms/*

View File

@ -1,12 +1,13 @@
Welcome to Rx3/Java-Mga9 docker image! Welcome to Rx3-Docker/Java docker image!
This is project aims to build a Java + Mageia 9 docker image used by others Rx3 packaging projects. This project aims to build a Java docker image used by other Rx3 packaging projects.
Features: Features:
- Curtently based on rx3/server-mga9:1.1.3 image, - Curtently based on rx3-docker/server:1.2.0-mga9 image,
- OpenJVM 17. - OpenJVM 17,
- Striped down.
Enjoy it! Enjoy it!
@ -15,4 +16,4 @@ Your Rx3 Team.
-- --
arnaud@rx3.net arnaud@rx3.net
https://git.rx3.org/gitea/rx3/java-mga9 https://git.rx3.org/gitea/rx3-docker/java

View File

@ -1,3 +1,16 @@
------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/Java V 1.1.0 - A. GIBERT - 2024/11/11
------------------------------------------------------------------------------------------------------------------------------------
- Move & Rename repo from Rx3/Java-MGA9 to Rx3-Docker/Java,
- New version naming standard,
- Now use docker_tools for .env building,
- Use now rx3-docker/server:1.2.0-mga9 image,
- Add /var/log/init & /var/log/supervisor volumes,
- Strip down dependencies.
------------------------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------------------------
Rx3/Java-Mga9 V 1.0.1 - A. GIBERT - 2024/10/07 Rx3/Java-Mga9 V 1.0.1 - A. GIBERT - 2024/10/07
------------------------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------------------------

View File

@ -1,28 +1,30 @@
# Rx3 PHP Apache Mageia-9 Docker Image # Rx3-Docker/Java Docker Image
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
name: ${IMG_NAME} name: ${IMG_NAME}
services: services:
server: server:
container_name: ${IMG_NAME} container_name: ${IMG_NAME}
hostname: ${IMG_NAME}
image: ${IMG_URL} image: ${IMG_URL}
build: build:
context: . context: .
args: args:
IMG_NAME: "${IMG_NAME}" IMG_NAME: ${IMG_NAME}
IMG_FULL_NAME: "${IMG_FULL_NAME}" IMG_NAME_FULL: ${IMG_NAME_FULL}
IMG_VERSION: "${IMG_VERSION}" IMG_VERSION: ${IMG_VERSION}
IMG_MAINTAINER: "${IMG_MAINTAINER}" IMG_MAINTAINER: ${IMG_MAINTAINER}
IMG_URL_PREFIX: "${IMG_URL_PREFIX}" IMG_FROM_URL: ${IMG_FROM_URL}
restart: unless-stopped restart: unless-stopped
network_mode: bridge volumes:
- ./var/log/init:${SERVER_LOG_INIT_DIR}
ports: - ./var/log/supervisor:${SERVER_LOG_SV_DIR}
- "127.0.0.1:${SERVER_SV_PORT}:9001"
ports:
- "127.0.0.1:${SERVER_PORT_SV_EXT}:${SERVER_PORT_SV_INT}"

View File

@ -1,13 +1,14 @@
# Rx3 Java Mageia-9 Docker Image # Rx3-Docker/Java Docker Image
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
# Global Settings # Global Settings
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
IMG_ORG="rx3" ORG_NAME="rx3-docker"
IMG_REGISTRY="docker.xor.rx3:5000" ORG_REGISTRY="docker.xor.rx3:5000"
IMG_URL_PREFIX="${IMG_REGISTRY}/${IMG_ORG}"
ORG_URL_PREFIX="${ORG_REGISTRY}/${ORG_NAME}"
@ -15,12 +16,16 @@ IMG_URL_PREFIX="${IMG_REGISTRY}/${IMG_ORG}"
# Image Settings # Image Settings
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
IMG_NAME="java-mga9" IMG_NAME="java"
IMG_FULL_NAME="Rx3 Java Mageia-9 Docker Image" IMG_NAME_FULL="Rx3-Docker/Java Docker Image"
IMG_VERSION="1.0.1" IMG_VERSION="1.1.0-mga9"
IMG_URL="${IMG_URL_PREFIX}/${IMG_NAME}:${IMG_VERSION}"
IMG_MAINTAINER='"Arnaud G. GIBERT" <arnaud@rx3.net>' 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}/server:1.2.0-mga9"
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
@ -30,5 +35,12 @@ IMG_MAINTAINER='"Arnaud G. GIBERT" <arnaud@rx3.net>'
ENV_PORT_OFFSET=0 ENV_PORT_OFFSET=0
SV_PORT_OFFSET=1000 SV_PORT_OFFSET=1000
SERVER_PORT=$(( 8014 + ${ENV_PORT_OFFSET})) SERVER_PORT_MAIN_EXT=$(( 8014 + ${ENV_PORT_OFFSET}))
SERVER_SV_PORT=$(( ${SERVER_PORT} + ${SV_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_CROND_ENABLED="FALSE"

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