Skip to content

Commit

Permalink
Merge pull request #23 from gisaia/feat/init_confs
Browse files Browse the repository at this point in the history
Feat/init confs
  • Loading branch information
WilliGautier authored Oct 16, 2024
2 parents 044f4ef + 92acf7d commit c143f79
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions arlas/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,20 @@ def init(
os.makedirs(os.path.dirname(variables["configuration_file"]), exist_ok=True)
Configuration.settings = Settings(
arlas={
"demo": ARLAS(server=Resource(location="https://demo.cloud.arlas.io/arlas/server", headers={"Content-Type": "application/json"})),
"local": ARLAS(
server=Resource(location="http://localhost/server", headers={"Content-Type": "application/json"}),
server=Resource(location="http://localhost/arlas", headers={"Content-Type": "application/json"}),
persistence=Resource(location="http://localhost/persist", headers={"Content-Type": "application/json"}),
elastic=Resource(location="http://localhost:9200", headers={"Content-Type": "application/json"}),
allow_delete=True
)
},
mappings={
"arlas_eo": Resource(location="https://raw.githubusercontent.com/gisaia/ARLAS-EO/master/mapping.json")
},
models={
"arlas_eo": Resource(location="https://raw.githubusercontent.com/gisaia/ARLAS-EO/master/collection.json")
}
)
Configuration.save(variables["configuration_file"])
print("Warning : no configuration file found, we created an empty one for you ({}).".format(variables["configuration_file"]), file=sys.stderr)
print("Warning : no configuration file found, we created a default one with a 'local' confs accessing local ARLAS exploration stack ({}).".format(variables["configuration_file"]), file=sys.stderr)
sys.exit(0)


Expand Down

0 comments on commit c143f79

Please sign in to comment.