Skip to content

Commit 5b02df4

Browse files
Merge pull request #267 from Dana-Farber-AIOS/finalize-docker
Finalize docker
2 parents df49ac1 + 2420208 commit 5b02df4

File tree

2 files changed

+33
-21
lines changed

2 files changed

+33
-21
lines changed

README.md

Lines changed: 32 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ A toolkit for computational pathology and machine learning.
1818
**View [documentation](https://pathml.readthedocs.io/en/latest/)**
1919

2020
:construction: the `dev` branch is under active development, with experimental features, bug fixes, and refactors that may happen at any time!
21-
Stable versions are available as tagged commits on the `master` branch, or as versioned releases on PyPI
21+
Stable versions are available as tagged releases on GitHub, or as versioned releases on PyPI
2222

2323
# Installation
2424

2525
There are several ways to install `PathML`:
2626

27-
1. pip install (**recommended for users**)
28-
2. clone repo to local machine and install from source (recommended for developers/contributors)
27+
1. `pip install` from PyPI (**recommended for users**)
28+
2. Clone repo to local machine and install from source (recommended for developers/contributors)
2929
3. Use the PathML Docker container
3030

3131
Options (1) and (2) require that you first install all external dependencies:
@@ -39,71 +39,83 @@ Download Miniconda [here](https://docs.conda.io/en/latest/miniconda.html)
3939

4040
## Installation option 1: pip install
4141

42-
Create conda environment
42+
Create conda environment:
4343
````
4444
conda create --name pathml python=3.8
4545
conda activate pathml
4646
````
4747

48-
Install external dependencies (Linux) with [Apt](https://ubuntu.com/server/docs/package-management)
48+
Install external dependencies (Linux) with [Apt](https://ubuntu.com/server/docs/package-management):
4949
````
5050
sudo apt-get install openslide-tools g++ gcc libblas-dev liblapack-dev
5151
````
5252

53-
Install external dependencies (MacOS) with [Brew](www.brew.sh)
53+
Install external dependencies (MacOS) with [Brew](www.brew.sh):
5454
````
5555
brew install openslide
5656
````
5757

58-
Install [OpenJDK 8](https://openjdk.java.net/)
58+
Install [OpenJDK 8](https://openjdk.java.net/):
5959
````
6060
conda install openjdk==8.0.152
6161
````
6262

6363
Optionally install CUDA (instructions [here](#CUDA))
6464

65-
Install `PathML`
65+
Install `PathML` from PyPI:
6666
````
6767
pip install pathml
6868
````
6969

7070
## Installation option 2: clone repo and install from source
7171

72-
Clone repo
72+
Clone repo:
7373
````
7474
git clone https://github.com/Dana-Farber-AIOS/pathml.git
7575
cd pathml
7676
````
7777

78-
Create conda environment
78+
Create conda environment:
7979
````
8080
conda env create -f environment.yml
8181
conda activate pathml
8282
````
8383

8484
Optionally install CUDA (instructions [here](#CUDA))
8585

86-
Install `PathML`:
86+
Install `PathML` from source:
8787
````
8888
pip install -e .
8989
````
9090

91-
## Installation option 3: docker
91+
## Installation option 3: Docker
9292

93-
Build the PathML docker container:
94-
````
95-
docker build -t pathml-analysis .
96-
````
93+
First, download or build the PathML Docker container:
94+
95+
- Option A: download PathML container from Docker Hub
96+
````
97+
docker pull pathml/pathml:latest
98+
````
99+
Optionally specify a tag for a particular version, e.g. `docker pull pathml/pathml:2.0.2`. To view possible tags,
100+
please refer to the [PathML DockerHub page](https://hub.docker.com/r/pathml/pathml).
101+
102+
- Option B: build docker container from source
103+
````
104+
git clone https://github.com/Dana-Farber-AIOS/pathml.git
105+
cd pathml
106+
docker build -t pathml/pathml .
107+
````
97108

98-
Connect to the container:
109+
Then connect to the container:
99110
````
100-
docker run -it -p 8888:8888 pathml-analysis
111+
docker run -it -p 8888:8888 pathml/pathml
101112
````
102113

103114
The above command runs the container, which is configured to spin up a jupyter lab session and expose it on port 8888.
104-
The terminal should display a URL to the jupyter lab session starting with http://127.0.0.1:8888/lab?token=<...>.
115+
The terminal should display a URL to the jupyter lab session starting with `http://127.0.0.1:8888/lab?token=<.....>`.
105116
Navigate to that page and you should connect to the jupyter lab session running on the container with the pathml
106-
environment fully configured.
117+
environment fully configured. If a password is requested, copy the string of characters following the `token=` in the
118+
url.
107119

108120
Note that the docker container requires extra configurations to use with GPU.
109121
Note that these instructions assume that there are no other processes using port 8888.

pathml/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
License: GNU GPL 2.0
44
"""
55

6-
__version__ = "2.0.dev4"
6+
__version__ = "2.0.2"

0 commit comments

Comments
 (0)