A dockerized version of Nyxt
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.
- Install XQuartz
brew install xquartz
- Launch XQuartz
open -a XQuartz
- 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`) - Restart XQuartz
- Launch a new
xterm
terminal and ensure you have “DISPLAY=:0” set. - Run
xhost + 127.0.0.1
from a xquartz terminal
xhost +127.0.0.1
- In that terminal run
docker run -it --rm bigdeddu/nyxt:2.2.4
- [-] containerize
- [X] installation from binary
- [X] install deps
- [ ] cleanup container layers
- [-] run via gui on host machine (xquartz?)
- [X] xquartz on mac
- [ ] document volume mounts
- [ ] create automator or some other link
- [ ] fix sound
- [ ] fix youtube
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