Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimNIBS Clean Docker Image

Minimal standalone SimNIBS 4.6 image with GUI support for macOS (Apple Silicon).

Files

File Purpose
Dockerfile.simnibs_clean Image definition
entrypoint_clean.sh Starts Xvfb + VNC server on container boot
run_simnibs.sh Launch script (mounts data, exposes VNC port)

Why VNC?

Docker on Apple Silicon runs x86_64 Linux containers through Rosetta emulation. SimNIBS's 3D viewer (QOpenGLWidget) needs a full OpenGL context with FBO support, which cannot be provided through XQuartz X11 forwarding because:

  1. Mesa's llvmpipe (LLVM JIT) crashes under Rosetta emulation
  2. Mesa's softpipe works, but its fbConfigs don't match XQuartz's visuals
  3. Indirect GLX lacks FBO support needed by Qt's QOpenGLWidget

The solution: run a local Xvfb inside the container (Mesa client + Mesa server = matching fbConfigs), render with softpipe (pure C, no LLVM), and expose the framebuffer via VNC.

Build

docker build --platform linux/amd64 -f Dockerfile.simnibs_clean -t idossha/simnibs_clean:4.6 .

Usage

./run_simnibs.sh /path/to/data

Inside the container:

simnibs_gui

Connect from macOS with any VNC client on port 5900 (password: simnibs):

open -a TigerVNC        # then enter localhost:5900
# or
open vnc://localhost:5900  # macOS Screen Sharing

About

SimNIBS installation via Docker

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages