-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from bloyl/viz
add 2d/3d plotting support to base Dockerfile
- Loading branch information
Showing
5 changed files
with
95 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM mnetools/mne-python | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# install xvfb | ||
USER root | ||
RUN apt-get update && \ | ||
apt-get install -y xvfb qt5-default && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
USER $MNE_USER | ||
WORKDIR $HOME_DIR | ||
|
||
RUN pip install vtk pyvista pyvistaqt PyQt5 matplotlib nibabel joblib h5py mne | ||
|
||
# setup environment for mne | ||
# MNE_3D_OPTION_ANTIALIAS is needed to avoid blank screenshots. | ||
# PYVISTA_OFF_SCREEN=true is *NOT* needed | ||
ENV \ | ||
MNE_3D_BACKEND=pyvista \ | ||
MNE_3D_OPTION_ANTIALIAS=false\ | ||
START_XVFB=true | ||
|
||
ENTRYPOINT ["tini", "-g", "--", "/usr/bin/prepare.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,35 @@ | ||
version: "3.1" | ||
|
||
services: | ||
scheduler: | ||
base: | ||
build: | ||
context: ./base | ||
dockerfile: Dockerfile | ||
image: mnetools/mne-python | ||
|
||
scheduler: | ||
depends_on: | ||
- base | ||
image: mnetools/mne-python | ||
hostname: mne-dask-scheduler | ||
ports: | ||
- "8786:8786" | ||
- "8787:8787" | ||
command: ["dask-scheduler"] | ||
|
||
worker: | ||
build: | ||
context: ./base | ||
dockerfile: Dockerfile | ||
depends_on: | ||
- base | ||
image: mnetools/mne-python | ||
hostname: mne-dask-worker | ||
command: ["dask-worker", "tcp://scheduler:8786"] | ||
|
||
worker_viz: | ||
depends_on: | ||
- base | ||
build: | ||
context: ./base | ||
dockerfile: Dockerfile.plot | ||
image: mnetools/mne-python-plot | ||
hostname: mne-dask-worker-plot | ||
command: ["dask-worker", "tcp://scheduler:8786"] |