Compare commits

...

5 Commits

Author SHA1 Message Date
ae9fa2dba6 - Add xz rpm. 2024-08-28 16:09:58 +02:00
74f9715077 - Minor compose / dockerfile args & structure improvements. 2024-08-27 00:26:23 +02:00
bc3d6d4a76 - Remove entrypoint now implemented by rx3/server-mga9 image,
- Minor compose / dockerfile args improvments.
2024-08-25 18:12:54 +02:00
9c5eb6a4fa - Add LANG, LANGUAGE & LOCALTIME build args,
- Set by default laguage to en_US.UTF-8 & timezone to Europe/Paris.
2024-08-24 22:58:35 +02:00
378cd65c1e - Mono Layer release whith multi-stage building,
- Replace with label obsolete Maintainer command,
- Use .env file,
- Clean-up now uneeded sub dirs.
2024-08-22 14:40:37 +02:00
8 changed files with 161 additions and 48 deletions

32
.env Normal file
View File

@ -0,0 +1,32 @@
# Rx3 Base 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="base-mga9"
IMG_FULL_NAME="Rx3 Base Mageia-9 Docker Image"
IMG_VERSION="1.2.4"
IMG_URL="${IMG_URL_PREFIX}/${IMG_NAME}:${IMG_VERSION}"
IMG_MAINTAINER='"Arnaud G. GIBERT" <arnaud@rx3.net>'
#-------------------------------------------------------------------------------
# User Settings
#-------------------------------------------------------------------------------
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8:en_US:en
LOCALTIME="Europe/Paris"

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*~
*.old

57
Dockerfile Normal file
View File

@ -0,0 +1,57 @@
# Rx3 Base Mageia-9 Docker Image
#-------------------------------------------------------------------------------
FROM mageia:9
ARG LANG
ARG LANGUAGE
ARG LOCALTIME
#---------------------------------------------------------------------------------------------------
ARG LOCALE_CONF="LANG=${LANG} \n\
LANGUAGE=${LANGUAGE}"
#---------------------------------------------------------------------------------------------------
#---------------------------------------------------------------------------------------------------
ARG RX3_SH='export PAGER=less \n\
export MANPAGER="less -isr" \n\
export EDITOR=emacs \n\
alias ll="ls -la" \n\
alias em="emacs"'
#---------------------------------------------------------------------------------------------------
RUN echo -e "${LOCALE_CONF}" | sed -e 's/ *$//' > /etc/locale.conf \
&& ln -s /usr/share/zoneinfo/${LOCALTIME} /etc/localtime \
&& urpmi.removemedia -a \
&& urpmi.addmedia --distrib http://ftp.free.fr/mirrors/mageia.org/distrib/9/x86_64 \
&& urpmi.update --no-ignore "Nonfree Release" "Nonfree Updates" "Tainted Release" "Tainted Updates" \
&& urpmi.update -a \
&& urpmi --force --replacepkgs glibc locales locales-en \
&& urpmi --force xz \
&& urpmi --force --auto-update \
&& rm -f /var/log/dnf* /var/log/hawkey.log \
&& echo -e "${RX3_SH}" | sed -e "s/\`/'/g" -e 's/ *$//' >/etc/profile.d/rx3.sh
FROM scratch
ARG IMG_NAME
ARG IMG_FULL_NAME
ARG IMG_VERSION
ARG IMG_MAINTAINER
LABEL org.rx3.${IMG_NAME}.name=${IMG_FULL_NAME}
LABEL org.rx3.${IMG_NAME}.version=${IMG_VERSION}
LABEL org.rx3.${IMG_NAME}.maintainer=${IMG_MAINTAINER}
LABEL maintainer=${IMG_MAINTAINER}
COPY --from=0 / /
CMD ["/bin/bash"]
ENTRYPOINT []

View File

@ -1,14 +1,14 @@
Welcome to base-mga9 docker image! Welcome to Rx3/Base-Mga9 docker image!
This is project aim to build a Mageia 9 base docker image used by others Rx3 packaging projects. This is project aims to build a Mageia 9 base docker image to be used by others Rx3 packaging projects.
Features: Features:
- Curtently based on official Mageia9 docker image from github.io, - Curtently based on official Mageia9 docker image from github.io,
- Enable urpmi "Core", "Nonfree" and "Tainted" medium from "http://ftp.free.fr/" mirror, - Enable urpmi "Core", "Nonfree" and "Tainted" medium from "http://ftp.free.fr/" mirror,
- Add Rx3 bash seting, - Add Rx3 bash seting,
- Multi layered (Mageia + Rx3 Updates) + Mono (Merged) - Mono layered (Mageia + Rx3 Updates)
Enjoy it! Enjoy it!

View File

@ -1,13 +1,58 @@
------------------------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------------------------
Base-Mga9 V 1.1.0 - A. GIBERT - 2024/08/22 Rx3/Base-Mga9 V 1.2.4 - A. GIBERT - 2024/08/28
------------------------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------------------------
- Add xz rpm.
------------------------------------------------------------------------------------------------------------------------------------
Rx3/Base-Mga9 V 1.2.3 - A. GIBERT - 2024/08/27
------------------------------------------------------------------------------------------------------------------------------------
- Minor compose / dockerfile args & structure improvements.
------------------------------------------------------------------------------------------------------------------------------------
Rx3/Base-Mga9 V 1.2.2 - A. GIBERT - 2024/08/25
------------------------------------------------------------------------------------------------------------------------------------
- Remove entrypoint now implemented by rx3/server-mga9 image,
- Minor compose / dockerfile args improvements.
------------------------------------------------------------------------------------------------------------------------------------
Rx3/Base-Mga9 V 1.2.1 - A. GIBERT - 2024/08/24
------------------------------------------------------------------------------------------------------------------------------------
- Add LANG, LANGUAGE & LOCALTIME build args,
- Set by default laguage to en_US.UTF-8 & timezone to Europe/Paris.
------------------------------------------------------------------------------------------------------------------------------------
Rx3/Base-Mga9 V 1.2.0 - A. GIBERT - 2024/08/22
------------------------------------------------------------------------------------------------------------------------------------
- Mono Layer release whith multi-stage building,
- Replace with label obsolete Maintainer command,
- Use .env file,
- Clean-up now uneeded sub dirs.
------------------------------------------------------------------------------------------------------------------------------------
Rx3/Base-Mga9 V 1.1.0 - A. GIBERT - 2024/08/22
-----------------------------------------------------------------------------------------------------------------------------------
- Mono Layer release: manually merged by docker export + copy. - Mono Layer release: manually merged by docker export + copy.
------------------------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------------------------
Base-Mga9 V 1.0.0 - A. GIBERT - 2024/08/22 Rx3/Base-Mga9 V 1.0.0 - A. GIBERT - 2024/08/22
------------------------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------------------------
- Initial release, - Initial release,

View File

@ -1,10 +1,24 @@
version: '3' # Rx3 Base Mageia-9 Docker Image
#-------------------------------------------------------------------------------
name: ${IMG_NAME}
name: base-mga9
services: services:
base-mga9:
container_name: base-mga9 default:
image: docker.xor.rx3:5000/rx3/base-mga9:1.1.0 container_name: ${IMG_NAME}
image: ${IMG_URL}
build: build:
context: mono context: .
args:
- IMG_NAME=${IMG_NAME}
- IMG_FULL_NAME=${IMG_FULL_NAME}
- IMG_VERSION=${IMG_VERSION}
- IMG_MAINTAINER=${IMG_MAINTAINER}
- LANG=${LANG}
- LANGUAGE=${LANGUAGE}
- LOCALTIME=${LOCALTIME}
restart: unless-stopped restart: unless-stopped

View File

@ -1,15 +0,0 @@
# Base Mageia9 Rx3 Docker Image
#-------------------------------------------------------------------------------
FROM scratch
ADD mageia9-rx3-rootfs.tar.bz2 /
#CMD ["/bin/bash"]
LABEL org.rx3.name="Rx3 Base Mageia9 Docker Image"
LABEL org.rx3.version="1.1.0"
MAINTAINER "Arnaud G. GIBERT" <arnaud@rx3.net>
ENTRYPOINT ["sleep", "60m"]

View File

@ -1,22 +0,0 @@
# Base Mageia9 Rx3 Docker Image
#-------------------------------------------------------------------------------
FROM mageia:9
LABEL org.rx3.name="Rx3 Base Mageia9 Docker Image"
LABEL org.rx3.version="1.0.0"
MAINTAINER "Arnaud G. GIBERT" <arnaud@rx3.net>
RUN urpmi.removemedia -a \
&& urpmi.addmedia --distrib http://ftp.free.fr/mirrors/mageia.org/distrib/9/x86_64 \
&& urpmi.update --no-ignore "Nonfree Release" "Nonfree Updates" "Tainted Release" "Tainted Updates" \
&& urpmi.update -a \
&& urpmi --auto-update \
&& urpmi --force --replacepkgs glibc locales locales-en \
&& urpmi --force sleep \
&& rm -f /var/log/dnf* /var/log/hawkey.log \
&& echo -e "LANG=en_US.UTF-8\nLANGUAGE=en_US.UTF-8:en_US:en" >/etc/locale.conf \
&& echo -e "export PAGER=less\nexport MANPAGER='less -isr'\nexport EDITOR=emacs\nalias ll='ls -la'\nalias em='emacs'" >/etc/profile.d/rx3.sh
ENTRYPOINT ["sleep", "60m"]