Sign inSign up

7cmb/toychat

By 7cmb

•Updated over 2 years ago

A windows wechat client in container that supports pulseaudio but is bloatware.

Image
0

140

7cmb/toychat repository overview



中文参见: https://7cmb.com/wine-wechat-in-docker-%E5%AE%9E%E8%B7%B5/⁠

Prerequisites:

  • You should use X11.
  • Wayland-Gnome tested on Debian12.
  • If you want to use sound server on you host, your sound backend should be pulseaudio.(OPTION)
  • A normal user whose UID is "1000".
  • Prepare a wechat installer named "WeChatSetup.exe" in container's data diretory. (IMPORTANT)

One Line Command:
curl -sL https://gist.githubusercontent.com/7cmb/04e6fc961f77d899cbed64c197547e76/raw/33b71919528a5b7721d3bf6a2a8c97d8ce0ae008/toyChat.sh | bash

Create A Container Without Sound:

xhost +local:  
docker run \
    -d \
    --name toyChat-base \
    -e DISPLAY=$DISPLAY \
    -v /tmp/.X11-unix:/tmp/.X11-unix:ro \
    --ipc=host \
    -u 1000 \
    -e GTK_IM_MODULE=fcitx \
    -e QT_IM_MODULE=fcitx \
    -e XMODIFIERS=@im=fcitx \
    -e DefaultIMModule=fcitx \
    -e TZ="<TIMEZONE>" \
    -v "/path/to/your/data/dir":/root/wine64/drive_c/users/wx/Documents/WeChat\ Files:rw \
    7cmb/toychat:v0.01

Create A Container With Sound:

xhost +local:
sudo cat > '/tmp/pulseaudio.client.conf' <<EOF
default-server = unix:/tmp/pulseaudio.socket
# Prevent a server running in the container
autospawn = no
daemon-binary = /bin/true
# Prevent the use of shared memory
enable-shm = false
EOF
 docker run \
    -d \
    --name toyChat-pulseaudio \
    -e PULSE_SERVER=unix:/tmp/pulseaudio.socket \
    -e PULSE_COOKIE=/tmp/pulseaudio.cookie \
    -v /tmp/pulseaudio.socket:/tmp/pulseaudio.socket \
    -v /tmp/pulseaudio.client.conf:/etc/pulse/client.conf \
    -e DISPLAY=$DISPLAY \
    -v /tmp/.X11-unix:/tmp/.X11-unix:ro \
    --ipc=host \
    -u 1000 \
    -e GTK_IM_MODULE=fcitx \
    -e QT_IM_MODULE=fcitx \
    -e XMODIFIERS=@im=fcitx \
    -e DefaultIMModule=fcitx \
    -e TZ="<TIMEZONE>" \
    -v "/path/to/your/data/dir":/root/wine64/drive_c/users/wx/Documents/WeChat\ Files:rw \
    7cmb/toychat:v0.01

Tag summary

Content type

Image

Digest

sha256:54e093a55…

Size

2 GB

Last updated

over 2 years ago

docker pull 7cmb/toychat:v0.01