This is a Dockerised
version of Cecelia
.
We currently do not include napari
in the container. That means, we have to install
a separate conda
environment with which the Docker container
can communicate.
This package is pre-alpha
We currently have no pre-build containers.
This repository will build the Docker container
.
git clone https://github.com/schienstockd/ceceliaDocker.git
-
For
Windows
, you will need to install JDK and Microsoft Visual C++ >= 14.0 with Microsoft C++ Build Tools. Docker is usingWSL 2
by default now which is also required forGPU
access on Windows. To change the default location of theWSL 2
data storage follow thisSO
post. You also need either at leastWindows 11
or the19044.1200 (21H2) Windows 10 Insider Preview Build
forGPU
support viaWSL 2
. You can sign up here. -
Create
conda
environment
conda env create --file=conda-gui-env.yml
-
If you have an
NVIDIA
GPU and want to use it, you need to renamedocker-compose.yml
todocker-compose.cpu.yml
anddocker-compose.nvidia.yml
todocker-compose.yml
. To check that yourGPU
is detected by Docker use:docker run --rm -it --gpus=all nvcr.io/nvidia/k8s/cuda-sample:nbody nbody -gpu -benchmark
. -
You need to adjust the filepaths in
docker-compose.yml
anddatashare/docker.yml
. This will tellDocker
where yourprojects
are stored and thedata
location that you can use to import data. We also need to tellshiny
to use the host directory to open images as they are opened outside of the container within thenapari
environment.
Windows example docker-compose.yml
services:
app:
volumes:
- C:\Users\schienstockd\ceceliaDocker\datashare:/home/shiny/local
- E:\Cecelia\Dominik\projects:/cecelia/projects
- E:\Cecelia\Dominik\data:/cecelia/data
Windows example datashare/docker.yml
default:
docker:
useDocker: TRUE
pathMapping:
from:
- "/cecelia/projects"
to:
- "E:\\Cecelia\\Dominik\\projects"
- Run (and build) the
Docker container
withcecelia-MacOSX-docker.command
(Mac) orcecelia-Windows-docker.bat
(Windows). This will start the localnapari
environment, build theDocker container
during the first run and start theapp
. At the moment, the container will update the app whenever it is changed on github. There are twoDockerfiles
. The default pulls the current Docker image from Dockerhub.Dockerfile.build
will build the container if you wish to do that.