-
Notifications
You must be signed in to change notification settings - Fork 1
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 #4 from chris-delg/docker
Docker
- Loading branch information
Showing
10 changed files
with
110 additions
and
78 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
__pycache__/ | ||
.vscode/ |
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,29 @@ | ||
FROM continuumio/miniconda3 | ||
|
||
# set working dir for docker app | ||
WORKDIR /app | ||
|
||
# install system dependencies including OpenGL | ||
RUN apt-get update && apt-get install -y \ | ||
python3-opengl \ | ||
mesa-utils \ | ||
libgl1-mesa-glx \ | ||
libgl1-mesa-dri | ||
|
||
# move environment.yml from source to docker app | ||
COPY environment.yml ./ | ||
|
||
# installing dependancies | ||
RUN conda env create -n benchmark --file environment.yml | ||
|
||
# had source instead of conda here | ||
RUN echo "source activate benchmark" > ~/.bashrc | ||
|
||
# set conda to path | ||
ENV PATH=/opt/conda/envs/benchmark/bin:$PATH | ||
|
||
# copy source code into docker app | ||
COPY . . | ||
|
||
# running the benchmark | ||
CMD [ "python", "main.py" ] |
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,16 @@ | ||
name: benchmark | ||
channels: | ||
- defaults | ||
- conda-forge | ||
- rapidsai | ||
dependencies: | ||
- pip | ||
- matplotlib | ||
- napari | ||
- pyqt | ||
- ome-zarr | ||
- kvikio | ||
- zarr=2.15* | ||
- pip: | ||
- ml-dtypes | ||
- tensorstore |
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,5 +1,4 @@ | ||
from zarr_libraries.common import * | ||
from zarr_libraries.tensorstore.tensorstore_zarr import * | ||
from zarr_libraries.zarr_python.zarr_python import * | ||
from zarr_libraries.ome_ngff.ome_zarr import * | ||
from zarr_libraries.z5py.z5 import * | ||
from zarr_libraries.ome_ngff.ome_zarr import * |
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 was deleted.
Oops, something went wrong.
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