Skip to content

Commit

Permalink
link to configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvaingaudan committed Feb 1, 2024
1 parent 5bbdfe0 commit ed256fc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
```
6 changes: 6 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit ed256fc

Please sign in to comment.