From ed256fc1f74b6f66b052596e8139aa1a2fae5646 Mon Sep 17 00:00:00 2001 From: Sylvain Gaudan Date: Thu, 1 Feb 2024 16:42:51 +0100 Subject: [PATCH] link to configuration --- README.md | 7 ++++++- scripts/release.sh | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2f00225..0aa24e6 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ arlas_cli ``` ## Configuration -The confiuration file `~/.arlas/cli/configuration.yaml` must contain the different ARLAS/elasticsearch endpoints you want to interact with. One is automatically created for your convinience at the first launch. It contains the demo endpoint and the localhost endpoint. +The confiuration file `~/.arlas/cli/configuration.yaml` must contain the different ARLAS/elasticsearch endpoints you want to interact with. [One is automatically created for your convinience at the first launch](configuration.yaml). It contains the demo endpoint and the localhost endpoint. The configuration must contain references to collection models for creating collections. A default one is provided for ARLAS EO. A reference can be an http url or a path to a local file. It must also contain references to index mappings for creating indices. A default one is provided for ARLAS EO. A reference can be an http url or a path to a local file. @@ -125,3 +125,8 @@ Note: by default, it is not allowed to delete an index for a given configuration ```shell arlas_cli local collections delete arlas_eo ``` + +### Adding data +```shell +arlas_cli local indices data arlas_eo --help +``` diff --git a/scripts/release.sh b/scripts/release.sh index f9ee688..8888de4 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -14,6 +14,12 @@ echo "Build and releas the image with version ${VERSION}" # PYTHON PIP ./scripts/publish.sh $VERSION +# CONFIG FILE +rm $HOME/.arlas/cli/configuration.yaml +python -m arlas.cli.cli +cp $HOME/.arlas/cli/configuration.yaml . +git add configuration.yaml +git commit -m "ARLAS Command line ${VERSION}" # TAG git tag -a ${VERSION} -m "ARLAS Command line ${VERSION}" git push origin ${VERSION}