Compare commits

..

5 Commits

Author SHA1 Message Date
18a1aabd90 - Improve run.sh to allow direct call with appl full path in one argument,
- Now use rx3-docker/x11-pulse:1.2.6-mga9 image,
- Rebuild for updates.
2025-11-29 12:00:41 +01:00
add152596b - Now use rx3-docker/x11-pulse:1.2.5-mga9 image,
- Rebuild for updates.
2025-09-19 23:41:31 +02:00
a3eb496c35 - Now use rx3-docker/x11-pulse:1.2.4-mga9 image,
- Fix Application Dir spaces support.
2025-04-21 13:39:27 +02:00
2924cd076b - Add '-n' for non volatile Wine dir. 2025-04-14 19:16:59 +02:00
bd61472ab2 - Now use rx3-docker/x11-pulse:1.2.3-mga9 image,
- Add absolute & relative command path support,
- Add spaces support in Application Dir & Command.
2025-04-14 14:24:46 +02:00
4 changed files with 86 additions and 24 deletions

View File

@ -5,11 +5,12 @@ Welcome to RX3-Docker/Wine docker image!
This is project aims to build a Wine + X11 + Pulse docker image able to run any windows graphic & audio application isolated.
Features:
- Curtently based on rx3-docker/x11-pulse:1.2.2-mga9 image.
- Curtently based on rx3-docker/x11-pulse:1.2.6-mga9 image,
- Support by defaul volatile Wine dir (/tmp/wine) or non volatile (~/.wine).
Usage:
./bin/run.sh [-h] [-i] <Application Dir> <Application Exec> [Args...]
./bin/run.sh [-h] [-i] [-n] [<Application_Dir> <Application_Exec> | <Application_Exec>] [Args...]
Enjoy it!

View File

@ -1,6 +1,45 @@
------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/Wine V 1.0.4 - A. GIBERT - 2025/11/29
------------------------------------------------------------------------------------------------------------------------------------
- Improve run.sh to allow direct call with appl full path in one argument,
- Now use rx3-docker/x11-pulse:1.2.6-mga9 image,
- Rebuild for updates.
------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/Wine V 1.0.3 - A. GIBERT - 2025/09/19
------------------------------------------------------------------------------------------------------------------------------------
- Now use rx3-docker/x11-pulse:1.2.5-mga9 image,
- Rebuild for updates.
------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/Wine V 1.0.2 - A. GIBERT - 2025/04/21
------------------------------------------------------------------------------------------------------------------------------------
- Now use rx3-docker/x11-pulse:1.2.4-mga9 image,
- Fix Application Dir spaces support.
------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/Wine V 1.0.1 - A. GIBERT - 2025/04/14
------------------------------------------------------------------------------------------------------------------------------------
- Now use rx3-docker/x11-pulse:1.2.3-mga9 image,
- Add absolute & relative command path support,
- Add spaces support in Application Dir & Command,
- Add '-n' for non volatile Wine dir.
------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/Wine V 1.0.0 - A. GIBERT - 2025/04/13
------------------------------------------------------------------------------------------------------------------------------------
- Initial relase,
- Initial release,
- Based on rx3-docker/x11-pulse:1.2.2-mga9 image.

View File

@ -1,4 +1,4 @@
#!/bin/bash -x
#!/bin/bash
set -o errexit
@ -8,29 +8,51 @@ APPL_HOME_DIR="$(dirname "$(dirname "$0")")"
#-------------------------------------------------------------------------------
if [[ "$1" == "-h" ]]
then
echo "usage: run.sh [-h] [-i] <Application_Dir> <Application_Exec> [Args...]"
echo "with -i enabling internet access."
export APPL_NETWORK="no-internet"
Pre_Cmd="export WINEPREFIX=/tmp/wine; mkdir /tmp/wine;"
exit 0
fi
if [[ "$1" == "-i" ]]
while [[ "$1" == "-h" || "$1" == "-i" || "$1" == "-n" ]]
do
if [[ "$1" == "-h" ]]
then
echo "usage: run.sh [-h] [-n] [-i] [<Application_Dir> <Application_Exec> | <Application_Exec>] [Args...]"
echo "with -i enabling internet access,"
echo "with -n enabling non volatile wine directory."
exit 0
fi
if [[ "$1" == "-i" ]]
then
shift;
export APPL_NETWORK="internet"
fi
if [[ "$1" == "-n" ]]
then
shift;
Pre_Cmd=""
fi
done
if [[ -d "$1" ]]
then
shift;
export APPL_NETWORK="internet"
export APPL_DIR="$1"
shift
export APPL_NAME="$1"
shift
else
export APPL_NETWORK="no-internet"
export APPL_DIR="$( dirname $1)"
export APPL_NAME="./$(basename $1)"
shift
fi
export APPL_DIR="$1"
shift
export APPL_NAME="$1"
shift
APPL_DIR=$(realpath "${APPL_DIR}")
export USER_ID=$(id -u)
export GROUP_ID=$(id -g)
@ -41,6 +63,6 @@ cd "${APPL_HOME_DIR}"
sbin/docker_mk_env
docker compose run --rm wine /usr/local/sbin/user_add_exec ${USER_ID} ${USER} ${HOME} ${GROUP_ID} ${GROUP_NAME} ${APPL_DIR}/${APPL_NAME} $*
docker compose run --rm wine /usr/local/sbin/user_add_exec ${USER_ID} ${USER} ${HOME} ${GROUP_ID} ${GROUP_NAME} "${APPL_DIR}" ${Pre_Cmd} "${APPL_NAME}" "$@"
docker compose down

View File

@ -20,7 +20,7 @@ ORG_URL_PREFIX="${ORG_REGISTRY}/${ORG_NAME}"
APPL_NAME="wine"
APPL_NAME_FULL="Wine Docker Image"
APPL_NAME_SHORT="wine"
APPL_VERSION="1.0.0"
APPL_VERSION="1.0.4"
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 WN wine ${ORG_URL_PREFIX} - "Rx3-Docker/Wine" ${APPL_VERSION}-mga9 ${ORG_URL_PREFIX} x11-pulse 1.2.2-mga9 - - - - - - - -
docker_service_add WN wine ${ORG_URL_PREFIX} - "Rx3-Docker/Wine" ${APPL_VERSION}-mga9 ${ORG_URL_PREFIX} x11-pulse 1.2.6-mga9 - - - - - - - -