8 Commits

Author SHA1 Message Date
f07cca6df2 - Add line shading in isl_dump_html function. 2026-02-16 08:52:35 +01:00
9175496bde - Improve ISL management. 2026-02-14 12:08:21 +01:00
a07e6d6fc6 - Add Image Stacking Log functions,
- Add ISL support,
- Rebuild for updates.
2026-02-13 19:19:39 +01:00
e9109899d7 - Finally rename file_disable into file_enable! 2025-11-28 10:33:17 +01:00
8c8276691d - Fix file_disable function export. 2025-11-28 10:12:07 +01:00
e64e12a8dd - Rebuild for updates,
- Rename file_disenable function into file_disable.
2025-11-28 10:01:41 +01:00
c8b8c35970 - Rebuild for updates. 2025-09-19 17:22:57 +02:00
f378119ad0 - Add file_disenable() function,
- Rebuild for updates.
2025-06-26 17:57:13 +02:00
5 changed files with 228 additions and 5 deletions

View File

@@ -3,6 +3,7 @@
FROM mageia:9
ARG IMG_URL
ARG LANG
ARG LANGUAGE
ARG LOCALTIME
@@ -18,8 +19,11 @@ LANGUAGE=${LANGUAGE}"
ARG RX3_SH='export PAGER=less \n\
export MANPAGER="less -isr" \n\
export EDITOR=emacs \n\
export ISL_FILE=/etc/img_stack_log \n\
\n\
function cateval \n\
\n\
\n\
cateval() \n\
{ \n\
while read line \n\
do \n\
@@ -28,6 +32,185 @@ function cateval
done <$1 \n\
} \n\
\n\
export -f cateval \n\
\n\
\n\
\n\
print() \n\
{ \n\
if [[ "$1" == "-i" ]] \n\
then \n\
shift \n\
\n\
str="%s"`\\\\n` \n\
else \n\
str="%s"`\\n` \n\
fi \n\
\n\
printf "${str}" "$*" \n\
} \n\
\n\
export -f print \n\
\n\
\n\
\n\
file_enable() \n\
{ \n\
fd_file="$1" \n\
fd_state="$2" \n\
\n\
\n\
if [[ "$fd_state" == "TRUE" ]] \n\
then \n\
if [[ ! -f "${fd_file}" ]] \n\
then \n\
mv ${fd_file}.disable ${fd_file} \n\
fi \n\
else \n\
if [[ -f "${fd_file}" ]] \n\
then \n\
mv ${fd_file} ${fd_file}.disable \n\
fi \n\
fi \n\
} \n\
\n\
export -f file_enable \n\
\n\
\n\
\n\
isl_add() \n\
{ \n\
url="$1" \n\
\n\
\n\
reg=${url%%/*} \n\
\n\
if [[ "${reg}" == *.* ]] \n\
then \n\
url=${url#*/} \n\
else \n\
reg="-" \n\
fi \n\
\n\
tag=${url/*:} \n\
name=${url%:*} \n\
\n\
if [[ "${tag}" == "${name}" ]] \n\
then \n\
echo "Bad tag format in URL!" \n\
return 1 \n\
fi \n\
\n\
ts=$(date -u +"%Y/%m/%d %H:%M:%S") \n\
\n\
if [[ ! -e ${ISL_FILE} ]] \n\
then \n\
id=1 \n\
else \n\
id=$(( $(wc -l <${ISL_FILE}) + 1)) \n\
fi \n\
\n\
str="${id} ${ts} ${reg} ${name} ${tag}" \n\
\n\
if [[ $id == "1" ]] \n\
then \n\
echo "${str}" >${ISL_FILE} \n\
else \n\
sed -i `1i\`"${str}" ${ISL_FILE} \n\
fi \n\
} \n\
\n\
export -f isl_add \n\
\n\
\n\
\n\
isl_top() \n\
{ \n\
line=$( head -1 ${ISL_FILE}) \n\
\n\
if [[ "$1" == "-i" ]] \n\
then \n\
set ${line} \n\
\n\
echo "$5:$6" \n\
else \n\
echo "${line}" \n\
fi \n\
} \n\
\n\
export -f isl_top \n\
\n\
\n\
\n\
isl_cat() \n\
{ \n\
if [[ "$1" == "-r" ]] \n\
then \n\
tac ${ISL_FILE} \n\
else \n\
cat ${ISL_FILE} \n\
fi \n\
} \n\
\n\
export -f isl_cat \n\
\n\
\n\
\n\
isl_html_dump() \n\
{ \n\
r_flag="" \n\
i_flag="" \n\
\n\
while [[ $# -gt 0 ]] \n\
do \n\
if [[ "$1" == "-r" ]] \n\
then \n\
r_flag="$1" \n\
else \n\
if [[ "$1" == "-i" ]] \n\
then \n\
i_flag="-i" \n\
fi \n\
fi \n\
\n\
shift \n\
done \n\
\n\
i=1 \n\
\n\
isl_cat "${r_flag}" | while read line \n\
do \n\
set $line \n\
\n\
if [[ $(( $i % 2)) -eq 0 ]] \n\
then \n\
print "${i_flag}" ` <tr class="shade">` \n\
else \n\
print "${i_flag}" " <tr>" \n\
fi \n\
\n\
j=1 \n\
while [[ $j -lt 7 ]] \n\
do \n\
if [[ "$j" == "1" ]] \n\
then \n\
print "${i_flag}" " <th>${!j}</th>" \n\
else \n\
print "${i_flag}" " <td>${!j}</td>" \n\
fi \n\
\n\
j=$(( $j + 1)) \n\
done \n\
\n\
print "${i_flag}" " </tr>" \n\
i=$(( $i + 1)) \n\
done \n\
} \n\
\n\
export -f isl_html_dump \n\
\n\
\n\
\n\
alias ll="ls -la" \n\
alias em="emacs"'
#---------------------------------------------------------------------------------------------------
@@ -52,7 +235,8 @@ RUN echo -e "${LOCALE_CONF}" | sed -e 's/ *$//' > /etc/locale.conf
&& rpm -e lib64comps0 lib64gio2.0_0 lib64girepository1.0_1 lib64glib-gir2.0 lib64gpgme11 lib64modulemd2 lib64modulemd-gir2.0 lib64mpdec3 lib64nsl2 lib64repo0 lib64rpmsign9 lib64solv1 lib64yaml0_2 lib64zck1 \
&& 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
&& echo -e "${RX3_SH}" | sed -e "s/\`/'/g" -e 's/ *$//' >/etc/profile.d/rx3.sh \
&& . /etc/profile.d/rx3.sh && isl_add ${IMG_URL}
ADD ${GIT_MPM_REPO}/sbin/mpm /usr/local/sbin
ADD ${GIT_MPM_REPO}/etc/mpm.conf /etc

View File

@@ -16,7 +16,9 @@ Features:
- https://mirror.rx3.net/,
- Add Rx3 bash seting,
- Mono layered (Mageia + Rx3 Updates),
- Strip down base (python & dnf removed).
- Strip down base (python & dnf removed),
- Image stacking log support.
Enjoy it!

View File

@@ -1,3 +1,39 @@
------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/Base V 1.4.0 - A. GIBERT - 2026/02/16
------------------------------------------------------------------------------------------------------------------------------------
- Add Image Stacking Log functions,
- Add ISL support,
- Rebuild for updates.
------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/Base V 1.3.6 - A. GIBERT - 2025/11/28
------------------------------------------------------------------------------------------------------------------------------------
- Rebuild for updates,
- Rename file_disenable function into file_enable.
------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/Base V 1.3.5 - A. GIBERT - 2025/09/19
------------------------------------------------------------------------------------------------------------------------------------
- Rebuild for updates.
------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/Base V 1.3.4 - A. GIBERT - 2025/06/26
------------------------------------------------------------------------------------------------------------------------------------
- Add file_disenable() function,
- Rebuild for updates.
------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/Base V 1.3.3 - A. GIBERT - 2025/05/28
------------------------------------------------------------------------------------------------------------------------------------

View File

@@ -17,7 +17,8 @@ services:
IMG_NAME: ${IMG_NAME}
IMG_NAME_FULL: ${IMG_NAME_FULL}
IMG_VERSION: ${IMG_VERSION}
IMG_MAINTAINER: ${IMG_MAINTAINER}
IMG_MAINTAINER: ${IMG_MAINTAINER}
IMG_URL: ${IMG_URL}
LANG: ${LANG}
LANGUAGE: ${LANGUAGE}
LOCALTIME: ${LOCALTIME}

View File

@@ -18,7 +18,7 @@ ORG_URL_PREFIX="${ORG_REGISTRY}/${ORG_NAME}"
IMG_NAME="base"
IMG_NAME_FULL="Rx3-Docker/Base Docker Image"
IMG_VERSION="1.3.3-mga9"
IMG_VERSION="1.4.0-mga9"
IMG_MAINTAINER='"Arnaud G. GIBERT" <arnaud@rx3.net>'
IMG_URL_PREFIX="${ORG_URL_PREFIX}"