Skip to content

Commit

Permalink
Merge pull request #66 from IGNF/fix-docker-name
Browse files Browse the repository at this point in the history
Fix docker image name
  • Loading branch information
leavauchier authored Aug 20, 2024
2 parents 3b9af9d + b3b69cd commit 8bb8201
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 16 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# 1.1.1
### 1.1.2

- Correction des noms d'image docker dans l'utilisation en gpao

### 1.1.1

- L'image docker est maintenant stockée sur ghcr.io

# 1.1.0
## 1.1.0

- MOBJ0 : Utilisation de la 4-connexité au lieu de 8-connexité pour la génération des formes à partir de la carte
d'occupation (pour éviter la création de formes non-valides, et c'est plus cohérent avec les opérations morphologiques
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ install-precommit:
# Docker
##############################

PROJECT_NAME=ignimagelidar/coclico
PROJECT_NAME=ghcr.io/ignf/coclico
VERSION=`python -m coclico.version`

docker-build:
Expand Down
2 changes: 1 addition & 1 deletion coclico/csv_manipulation/merge_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def create_merge_all_results_job(
{' '.join(volumes)}
-v {store.to_unix(output.parent)}:/out
-v {store.to_unix(config_file.parent)}:/config
ignimagelidar/coclico:{__version__}
ghcr.io/ignf/coclico:{__version__}
python -m coclico.csv_manipulation.merge_results
-i {' '.join(inputs)}
--output /out/{output.name}
Expand Down
2 changes: 1 addition & 1 deletion coclico/csv_manipulation/results_by_tile.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def create_job_merge_results(
-v {store.to_unix(metrics_root_folder)}:/input
-v {store.to_unix(out.parent)}:/out
-v {store.to_unix(config_file.parent)}:/config
ignimagelidar/coclico:{__version__}
ghcr.io/ignf/coclico:{__version__}
python -m coclico.csv_manipulation.results_by_tile
--metrics-root-folder /input
--output-path {PurePosixPath("/out") / out.name}
Expand Down
4 changes: 2 additions & 2 deletions coclico/malt0/malt0.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def create_metric_intrinsic_one_job(self, name: str, input: Path, output: Path):
-v {self.store.to_unix(input)}:/input
-v {self.store.to_unix(output)}:/output
-v {self.store.to_unix(self.config_file.parent)}:/config
ignimagelidar/coclico:{__version__}
ghcr.io/ignf/coclico:{__version__}
python -m coclico.malt0.malt0_intrinsic
--input-file /input
--output-mnx-file /output/{input.stem}.tif
Expand All @@ -51,7 +51,7 @@ def create_metric_relative_to_ref_jobs(
-v {self.store.to_unix(out_ref)}:/ref
-v {self.store.to_unix(output)}:/output
-v {self.store.to_unix(self.config_file.parent)}:/config
ignimagelidar/coclico:{__version__}
ghcr.io/ignf/coclico:{__version__}
python -m coclico.malt0.malt0_relative
--input-dir /input
--ref-dir /ref
Expand Down
4 changes: 2 additions & 2 deletions coclico/mobj0/mobj0.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def create_metric_intrinsic_one_job(self, name: str, input: Path, output: Path):
-v {self.store.to_unix(input)}:/input
-v {self.store.to_unix(output)}:/output
-v {self.store.to_unix(self.config_file.parent)}:/config
ignimagelidar/coclico:{__version__}
ghcr.io/ignf/coclico:{__version__}
python -m coclico.mobj0.mobj0_intrinsic \
--input-file /input \
--output-geojson /output/{input.stem}.json \
Expand All @@ -52,7 +52,7 @@ def create_metric_relative_to_ref_jobs(
-v {self.store.to_unix(out_ref)}:/ref
-v {self.store.to_unix(output)}:/output
-v {self.store.to_unix(self.config_file.parent)}:/config
ignimagelidar/coclico:{__version__}
ghcr.io/ignf/coclico:{__version__}
python -m coclico.mobj0.mobj0_relative \
--input-dir /input
--ref-dir /ref
Expand Down
4 changes: 2 additions & 2 deletions coclico/mpap0/mpap0.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def create_metric_intrinsic_one_job(self, name: str, input: Path, output: Path):
-v {self.store.to_unix(input)}:/input
-v {self.store.to_unix(output)}:/output
-v {self.store.to_unix(self.config_file.parent)}:/config
ignimagelidar/coclico:{__version__}
ghcr.io/ignf/coclico:{__version__}
python -m coclico.mpap0.mpap0_intrinsic
--input-file /input
--output-file /output/{input.stem}.json
Expand All @@ -48,7 +48,7 @@ def create_metric_relative_to_ref_jobs(
-v {self.store.to_unix(out_ref)}:/ref
-v {self.store.to_unix(output)}:/output
-v {self.store.to_unix(self.config_file.parent)}:/config
ignimagelidar/coclico:{__version__}
ghcr.io/ignf/coclico:{__version__}
python -m coclico.mpap0.mpap0_relative
--input-dir /input
--ref-dir /ref
Expand Down
4 changes: 2 additions & 2 deletions coclico/mpla0/mpla0.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def create_metric_intrinsic_one_job(self, name: str, input: Path, output: Path):
-v {self.store.to_unix(input)}:/input
-v {self.store.to_unix(output)}:/output
-v {self.store.to_unix(self.config_file.parent)}:/config
ignimagelidar/coclico:{__version__}
ghcr.io/ignf/coclico:{__version__}
python -m coclico.mpla0.mpla0_intrinsic
--input-file /input
--output-file /output/{input.stem}.tif
Expand All @@ -52,7 +52,7 @@ def create_metric_relative_to_ref_jobs(
-v {self.store.to_unix(out_ref)}:/ref
-v {self.store.to_unix(output)}:/output
-v {self.store.to_unix(self.config_file.parent)}:/config
ignimagelidar/coclico:{__version__}
ghcr.io/ignf/coclico:{__version__}
python -m coclico.mpla0.mpla0_relative
--input-dir /input
--ref-dir /ref
Expand Down
2 changes: 1 addition & 1 deletion coclico/unlock.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def create_unlock_job(name: str, tile_names: List[str], input_path: Path, store:
command = f"""
docker run -t --rm --userns=host --shm-size=2gb
-v {store.to_unix(input_path)}:/input
ignimagelidar/coclico:{__version__}
ghcr.io/ignf/coclico:{__version__}
python -c "from pdaltools.unlock_file import unlock_file
for tile in {tile_names}: unlock_file('/input/' + tile)"
"""
Expand Down
2 changes: 1 addition & 1 deletion coclico/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "1.1.1"
__version__ = "1.1.2"


if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def use_gpao_server():
images_list = [im.attrs["RepoTags"] for im in client.images.list()]
images_list_flat = [item for sublist in images_list for item in sublist]

coclico_image = f"ignimagelidar/coclico:{__version__}"
coclico_image = f"ghcr.io/ignf/coclico:{__version__}"
if coclico_image not in images_list_flat:
logging.info(f"Docker images are: {images_list_flat}")
raise Exception(f"Could not find image {coclico_image} on computer. Aborting")
Expand Down

0 comments on commit 8bb8201

Please sign in to comment.