- Add Image Stacking Log functions,

- Add ISL support,
- Rebuild for updates.
This commit is contained in:
2026-02-13 19:09:21 +01:00
parent e9109899d7
commit a07e6d6fc6
5 changed files with 88 additions and 4 deletions

View File

@@ -3,6 +3,7 @@
FROM mageia:9
ARG IMG_URL
ARG LANG
ARG LANGUAGE
ARG LOCALTIME
@@ -52,6 +53,76 @@ file_enable()
\n\
export -f file_enable \n\
\n\
export ISL_FILE=/etc/img_stack_log \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\
ts=$(date -u +"%Y/%d/%m %H:%M:%S") \n\
\n\
echo "${ts} ${reg} ${name} ${tag}" >> ${ISL_FILE} \n\
} \n\
\n\
export -f isl_add \n\
\n\
isl_cat() \n\
{ \n\
cat ${ISL_FILE} \n\
} \n\
\n\
export -f isl_cat \n\
\n\
isl_tail() \n\
{ \n\
tail -1 ${ISL_FILE} \n\
} \n\
\n\
export -f isl_tail \n\
\n\
isl_last() \n\
{ \n\
set $(isl_tail) \n\
\n\
echo "$4:$5" \n\
} \n\
\n\
export -f isl_last \n\
\n\
isl_html_dump() \n\
{ \n\
while read line \n\
do \n\
set $line \n\
\n\
echo -n " <tr>\\n" \n\
\n\
i=1 \n\
while [[ $i -lt 6 ]] \n\
do \n\
echo -n " <td>${!i}</td>\\n" \n\
i=$(( $i + 1)) \n\
done \n\
\n\
echo -n " </tr>\\n" \n\
done < ${ISL_FILE} \n\
} \n\
\n\
export -f isl_html_dump \n\
\n\
alias ll="ls -la" \n\
alias em="emacs"'
#---------------------------------------------------------------------------------------------------
@@ -76,7 +147,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