forked from PolusAI/image-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dimension Stacking: Fixed Dockerfile and build script (PolusAI#554)
* chore: some initial cleanup * ci: updated Dockerfile and build script * Bump version: 0.1.1-dev0 → 0.1.1-dev1 * build: updated bfio to 2.3.6 * Bump version: 0.1.1-dev1 → 0.1.1-dev2
- Loading branch information
1 parent
5d2b925
commit 0518ee3
Showing
11 changed files
with
46 additions
and
25 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
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 +1 @@ | ||
0.1.1-dev | ||
0.1.1-dev2 |
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,4 +1,22 @@ | ||
#!/bin/bash | ||
|
||
# TODO: Change the name of the tool here | ||
tool_dir="formats" | ||
tool_name="image-dimension-stacking-tool" | ||
|
||
# The version is read from the VERSION file | ||
version=$(<VERSION) | ||
docker build . -t polusai/image-dimension-stacking-tool:${version} | ||
tag="polusai/${tool_name}:${version}" | ||
echo "Building docker image with tag: ${tag}" | ||
|
||
# The current directory and the repository root are saved in variables | ||
cur_dir=$(pwd) | ||
repo_root=$(git rev-parse --show-toplevel) | ||
|
||
# The Dockerfile and .dockerignore files are copied to the repository root before building the image | ||
cd ${repo_root} | ||
cp ./${tool_dir}/${tool_name}/Dockerfile . | ||
cp .gitingore .dockerignore | ||
docker build . -t ${tag} | ||
rm Dockerfile .dockerignore | ||
cd ${cur_dir} |
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
3 changes: 2 additions & 1 deletion
3
...age-dimension-stacking-tool/src/polus/images/formats/image_dimension_stacking/__init__.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
"""Image dimension stacking package.""" | ||
__version__ = "0.1.1-dev" | ||
|
||
__version__ = "0.1.1-dev2" |
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
Set up all data used in tests. | ||
""" | ||
|
||
import shutil | ||
import tempfile | ||
from pathlib import Path | ||
|
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
1 change: 1 addition & 0 deletions
1
formats/image-dimension-stacking-tool/tests/test_dimension_stacking.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Testing of image dimension stacking.""" | ||
|
||
from pathlib import Path | ||
from typing import Union | ||
|
||
|