-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
314 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# LARA Stack Deployment | ||
|
||
## Pre-requisites | ||
1. A Python 3.10 environment | ||
1. An activated NGROK account and token (see [https://ngrok.com/docs/getting-started/]) | ||
1. An OpenAI API key | ||
1. A Google Cloud Vision API JSON key *file* | ||
1. A CriticalMAAS CDR API key (contact Jataware) | ||
|
||
## Setup | ||
|
||
Install Jinja-2 CLI: | ||
```console | ||
pip install jinja2-cli | ||
``` | ||
|
||
Make a copy of the `vars_example.json` file found in this directory and update it with the information specific to your environment. | ||
|
||
```console | ||
cp vars_example.json deploy_vars.json | ||
``` | ||
|
||
The fields are: | ||
|
||
* `work_dir`: A directory on the deployment host system that will store intermediate pipeline outputs | ||
* `image_dir`: A directory on the deployment host system that will store COGs fetched from the CDR | ||
* `cdr_api_token`: A CDR API token string provided by Jataware | ||
* `ngrok_authtoken`: NGROK auth token string | ||
* `openai_api_key`: Open AI API key string | ||
* `google_application_credentials`: The path to the Google Cloud Vision API JSON key file | ||
* `tag`: The docker tag of the LARA images to deploy (ie. `latest`) | ||
|
||
Generate a docker compose file from your variables: | ||
```console | ||
./gen_compose.sh deploy_vars.json | ||
``` | ||
|
||
This should create a new `docker-compose.yml` files with values derived from the `deploy_var.json` file. LARA containers can now be pulled by running: | ||
```console | ||
docker compose pull | ||
``` | ||
|
||
The system can be started by running: | ||
```console | ||
docker compose up | ||
``` | ||
|
||
and stopped by running: | ||
```console | ||
docker compose stop | ||
``` | ||
|
||
Once running, the system will respond to maps by being added to the CDR by executing the LARA pipelines and uploading results. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
{ | ||
"cdr_api_token": "", | ||
"cdr_workdir": "", | ||
"georef_workdir": "", | ||
"point_extract_workdir": "", | ||
"segmentation_workdir": "", | ||
"metadata_workdir": "", | ||
"image_dir": "", | ||
"ngrok_authtoken": "", | ||
"openai_api_key": "", | ||
"google_application_credentials": "", | ||
"segmentation_model_weights": "", | ||
"point_model_weights": "", | ||
"tag": "" | ||
"work_dir": "~/lara/working", | ||
"image_dir": "~/lara/images", | ||
"cdr_api_token": "3b8df2be0b494c50ab3562b0c429bb58", | ||
"ngrok_authtoken": "585d02d615e74454833baa5533c6ed33", | ||
"openai_api_key": "fee7e90ea27b49ef9b9fcb49c3ee4ceb", | ||
"google_application_credentials": "~/lara/credentials/google_vision_api_key.json", | ||
"tag": "latest" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.