Skip to content

deddu/nyxt-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker nyxt

A dockerized version of Nyxt

Usage

docker run -it --rm bigdeddu/nyxt:2.2.4

See special note for macOS below.

Alternatively, you can also use x11docker tool, which has lots of features and options.

Usage for Docker on macOS

  1. Install XQuartz brew install xquartz
  2. Launch XQuartz
open -a XQuartz
  1. Enable “Allow connections from network clients” under preferences in XQuartz. (Go to the xquartz preferences panel preferences -> security and click `allow connections from network clients`)
  2. Restart XQuartz
  3. Launch a new xterm terminal and ensure you have “DISPLAY=:0” set.
  4. Run xhost + 127.0.0.1 from a xquartz terminal
xhost +127.0.0.1
  1. In that terminal run
docker run -it --rm bigdeddu/nyxt:2.2.4

general

  • [-] containerize
    • [X] installation from binary
    • [X] install deps
    • [ ] cleanup container layers

macOS

  • [-] run via gui on host machine (xquartz?)
    • [X] xquartz on mac
    • [ ] document volume mounts
    • [ ] create automator or some other link
    • [ ] fix sound
    • [ ] fix youtube

dev/debugging/building

To debug audio/video play I run with:

xterm -e 'xhost +127.0.0.1';
docker run -it --rm --name nyxt \
 -v /tmp/.X11-unix:/tmp/.X11-unix \
 -e DISPLAY=unix$DISPLAY \
 -e WEBKIT_DISABLE_COMPOSITING_MODE=1 \
 -e GDK_SYNCHRONIZE=1 \
 -e LIBGL_DEBUG=verbose \
 -e LIBGL_ALWAYS_INDIRECT=1 \
 -e NO_AT_BRIDGE=1 \
 --privileged \
 --device /dev/snd nyxt:2.2.4

And build with:

docker build . -t nyxt:2.2.4

This way I can exec in the container via docker exec:

docker exec -it nyxt bash