Skip to content
Snippets Groups Projects
Commit 7e130b27 authored by Daniela Rabe's avatar Daniela Rabe
Browse files

Merge branch '79-add-polygon-to-config' into 'staging'

Resolve "add polygon to config"

See merge request !50
parents bbcce690 f6486617
No related branches found
No related tags found
Loading
Pipeline #77015 passed
......@@ -2,6 +2,10 @@
History
=======
1.4.0 (coming soon...)
------------------
* updated usage instructions
1.3.0 (2024-08-02)
------------------
* Support all bands
......
......@@ -116,6 +116,26 @@ The package expects a configuration file in ``json`` format, like the `default_c
}
}
Simplified example for using a Polygon instead of a bounding box. The bounding_box option has to stay as empty list when a polygon is added.
.. code-block:: json
{
"user_settings": {
"aoi_settings": {
"bounding_box": [],
"polygon": {
"coordinates": [[
[13.015460350735339,52.37318812959998],
[13.065452289464673,52.36922264156371],
[13.064008952650568,52.39609286789508],
[13.015460350735339,52.37318812959998]]],
"type": "Polygon"},
"apply_SCL_band_mask": true
},
},
}
In the following, the parameter configuration is described in detail:
......
#!/usr/bin/env bash
set -e
context_dir="./context"
dockerfile="s2downloader_ci.docker"
......@@ -14,7 +15,9 @@ runner_tag="s2downloader_ci:$runner_version"
gitlab_runner="s2downloader_ci_gitlab_ci_runner_$runner_version"
echo "#### Build runner docker image"
docker rmi ${runner_tag}
if [[ "$(docker images ${runner_tag} | grep ${runner_tag} 2> /dev/null)" != "" ]]; then
docker rmi ${runner_tag}
fi
docker build --network=host -f ${context_dir}/${dockerfile} -m 20G -t ${runner_tag} ${context_dir}
# create the gitlab-runner docker container for the current project
......@@ -22,8 +25,12 @@ docker build --network=host -f ${context_dir}/${dockerfile} -m 20G -t ${runner_t
rm -fr context/s2downloader
echo "#### Create gitlab-runner (daemon) container"
docker stop ${gitlab_runner}
docker rm ${gitlab_runner}
if [ "$(docker ps -qa -f name=${gitlab_runner})" ]; then
if [ "$(docker ps -q -f name=${gitlab_runner})" ]; then
docker stop ${gitlab_runner};
fi
docker rm ${gitlab_runner};
fi
docker run -d --name ${gitlab_runner} --network host --restart always -v /var/run/docker.sock:/var/run/docker.sock gitlab/gitlab-runner:latest
echo "#### Register container at gitlab"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment