forked from nirmallab/cspot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdockerExample.sh
37 lines (24 loc) · 1 KB
/
dockerExample.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# remove existing container
docker rmi --force cspot
docker system prune --all --force --volumes
# build a new image
docker build -t nirmallab/cspot:20230329 -t nirmallab/cspot:latest .
# login to push
docker login
# push to docker hub
docker push nirmallab/cspot --all-tags
# pull from docker hub
docker pull nirmallab/cspot:latest
# interactive
docker run -it --mount type=bind,source=/Users/aj/Desktop/csExampleData,target=/data --name cspot cspot /bin/bash
# full script
export projectDir="/Users/aj/Desktop/csExampleData"
docker run -it --mount type=bind,source=$projectDir,target=/$projectDir \
cspot \
python /app/generateThumbnails.py \
--spatialTablePath $projectDir/quantification/exampleSpatialTable.csv \
--imagePath $projectDir/image/exampleImage.tif \
--markerChannelMapPath $projectDir/markers.csv \
--markers ECAD CD3D \
--maxThumbnails 100 \
--projectDir $projectDir