Compare commits

..

No commits in common. "master" and "x11-pulse-1.2.1" have entirely different histories.

6 changed files with 16 additions and 40 deletions

View File

@ -18,8 +18,7 @@ LABEL maintainer=${IMG_MAINTAINER}
ENV DISPLAY=:0
RUN urpmi.update -a \
&& urpmi --force xterm lib64jack0 lib64opencl1 pipewire-media-session lib64proxy-webkit hunspell-en lib64xcb-xkb1 lib64xcomposite1 lib64xcursor1 lib64xdamage1 lib64xft-gir2.0 lib64xi6 lib64xinerama1 lib64xkbcommon0 lib64vulkan-loader1 lib64xlib-gir2.0 lib64xrandr2 lib64xmlb2 lib64xslt1 libexif12-common libgxps-tools frozen-bubble glxinfo
RUN urpmi --force xterm lib64jack0 lib64opencl1 pipewire-media-session lib64proxy-webkit hunspell-en lib64xcb-xkb1 lib64xcomposite1 lib64xcursor1 lib64xdamage1 lib64xft-gir2.0 lib64xi6 lib64xinerama1 lib64xkbcommon0 lib64vulkan-loader1 lib64xlib-gir2.0 lib64xrandr2 lib64xmlb2 lib64xslt1 libexif12-common libgxps-tools frozen-bubble
#RUN passwd -d root

View File

@ -5,16 +5,16 @@ Welcome to RX3-Docker/X11-Pulse docker image!
This is project aims to build a X11 + Pulse docker image able to run any graphic & audio application isolated.
Features:
- Curtently based on rx3-docker/base:1.3.2-mga9 image,
- Curtently based on rx3-docker/base:1.3.1-mga9 image,
- X11 & Pulse base libraries installed,
- Target user & group created on the run,
- Optional output internet routing.
Usage:
./bin/run.sh [-h] [-i] <Application Dir> <Application Exec> [Args...]
Enjoy it!
Your Rx3 Team.

View File

@ -1,22 +1,3 @@
------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/X11-Pulse V 1.2.3 - A. GIBERT - 2025/04/14
------------------------------------------------------------------------------------------------------------------------------------
- Add absolute & relative command path support,
- Add spaces support in Application Dir & Command,
- Add glinfo command.
------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/X11-Pulse 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/X11-Pulse V 1.2.1 - A. GIBERT - 2025/03/08
------------------------------------------------------------------------------------------------------------------------------------

View File

@ -32,8 +32,6 @@ shift
APPL_DIR=$(realpath ${APPL_DIR})
export USER_ID=$(id -u)
export GROUP_ID=$(id -g)
export GROUP_NAME=$(id -gn)
@ -43,6 +41,6 @@ cd "${APPL_HOME_DIR}"
sbin/docker_mk_env
docker compose run --rm x11-pulse /usr/local/sbin/user_add_exec ${USER_ID} ${USER} ${HOME} ${GROUP_ID} ${GROUP_NAME} "${APPL_DIR}" "${APPL_NAME}" "$@"
docker compose run --rm x11-pulse /usr/local/sbin/user_add_exec ${USER_ID} ${USER} ${HOME} ${GROUP_ID} ${GROUP_NAME} ${APPL_DIR}/${APPL_NAME} $*
docker compose down

View File

@ -20,7 +20,7 @@ ORG_URL_PREFIX="${ORG_REGISTRY}/${ORG_NAME}"
APPL_NAME="x11-pulse"
APPL_NAME_FULL="X11-Pulse Docker Image"
APPL_NAME_SHORT="x11-pulse"
APPL_VERSION="1.2.3"
APPL_VERSION="1.2.1"
HOST_NAME_PREFIX=${APPL_NAME_SHORT}${APPL_SUFFIX}
@ -46,7 +46,7 @@ DOCKER_TOOLS_VOLUME=SINGLE
# | Prefix | Name | URL Prefix | Name | Name Full | Version | URL Prefix | Name | Version | Name | Version | Ext | Int | Ext | Int | Name / Id | Name / Id |
#------------------+----------+--------------------------+--------------------+------------------+-------------------------------+---------------------+--------------------+---------------+------------+--------------+------------+-------+-------+-------+-------+--------------+--------------+
docker_service_add XP x11-pulse ${ORG_URL_PREFIX} - "Rx3-Docker/X11-Pulse" ${APPL_VERSION}-mga9 ${ORG_URL_PREFIX} base 1.3.2-mga9 - - - - - - - -
docker_service_add XP x11-pulse ${ORG_URL_PREFIX} - "Rx3-Docker X11 Pulse" ${APPL_VERSION}-mga9 ${ORG_URL_PREFIX} base 1.3.1-mga9 - - - - - - - -

View File

@ -1,24 +1,23 @@
#!/bin/bash
for arg in User_Id User_Name Home_Dir Group_Id Group_Name Appl_Dir
for arg in User_Id User_Name Home_Dir Group_Id Group_Name
do
declare "$arg"=$1
shift
done
Cmd=$( printf " %q" "$@" | sed -e 's/^ //' -e 's/\\;/;/g')
echo "User Add & Exec: User_Id: (${User_Id}) User_Name: [${User_Name}] Home_Dir: [${Home_Dir}] Group_Id: (${Group_Id}) Group_Name: [${Group_Name}] Appl_Dir: [${Appl_Dir}]"
echo -n " Display: [${DISPLAY}] Cmd: [${Cmd}]"
echo "User Add & Exec: User_Id: (${User_Id}) User_Name: [${User_Name}] Home_Dir: [${Home_Dir}] Group_Id: (${Group_Id}) Group_Name: [${Group_Name}]"
echo -n " Display: [${DISPLAY}] Cmd: [$1]"
#i=2
i=2
#while [[ $i -le $# ]]
#do
# echo -n " [${!i}]"
# i=$(($i + 1))
#done
while [[ $i -le $# ]]
do
echo -n " [${!i}]"
i=$(($i + 1))
done
echo ""
echo ""
@ -47,9 +46,8 @@ chown ${User_Name}:${Group_Name} /run/user/${User_Id}
echo "Exec Cmd..."
#echo "su - -P ${User_Name} -c \"$*\""
su - -P ${User_Name} -c "cd \"${Appl_Dir}\"; ${Cmd}"
su - -P ${User_Name} -c "$*"
echo "Completed!"