Skip to content

Commit

Permalink
Merge pull request #215 from cuebook/LambdaDetection
Browse files Browse the repository at this point in the history
Added Lambda detection variables
  • Loading branch information
vincue authored Dec 27, 2021
2 parents a305178 + ed01928 commit c63d8c7
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,8 @@ IS_AUTHENTICATION_REQUIRED=False
EMAIL_HOST="" ### ex smtp.gmail.com
EMAIL_HOST_USER=""
EMAIL_HOST_PASSWORD=""

## LAMBDA
DETECTION_SERVICE_PLATFORM=""
AWS_LAMBDA_URL=""
## AWS_LAMBDA_URL=https://asdf3adf9.execute-api.<YOUR_AWS_REGION>.amazonaws.com/default/testCueobserveAnomalyDetection
5 changes: 5 additions & 0 deletions .env.dev
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,8 @@ IS_AUTHENTICATION_REQUIRED=False
EMAIL_HOST="" ### ex smtp.gmail.com
EMAIL_HOST_USER=""
EMAIL_HOST_PASSWORD=""

## LAMBDA
DETECTION_SERVICE_PLATFORM=""
AWS_LAMBDA_URL=""
## AWS_LAMBDA_URL=https://asdf3adf9.execute-api.<YOUR_AWS_REGION>.amazonaws.com/default/testCueobserveAnomalyDetection
Empty file modified aws_lambda_setup.sh
100644 → 100755
Empty file.
3 changes: 3 additions & 0 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ services:
DJANGO_SUPERUSER_PASSWORD: ${DJANGO_SUPERUSER_PASSWORD}
DJANGO_SUPERUSER_EMAIL: ${DJANGO_SUPERUSER_EMAIL}
IS_AUTHENTICATION_REQUIRED: ${IS_AUTHENTICATION_REQUIRED}
CELERY_RESULT_BACKEND: ${CELERY_RESULT_BACKEND}
DETECTION_SERVICE_PLATFORM:
AWS_LAMBDA_URL:
network_mode: "host"

cueo-alerts:
Expand Down
4 changes: 3 additions & 1 deletion docker-compose-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ services:
IS_AUTHENTICATION_REQUIRED: ${IS_AUTHENTICATION_REQUIRED}
REDIS_BROKER_URL: ${REDIS_BROKER_URL}
CELERY_RESULT_BACKEND: ${CELERY_RESULT_BACKEND}
DETECTION_SERVICE_PLATFORM:
AWS_LAMBDA_URL:
volumes:
- sqliteDB:/code/db:rw
- djangoStaticFiles:/home/staticfiles:rw
Expand All @@ -41,7 +43,7 @@ services:
- "cueo-backend"
- "cueo-redis"
volumes:
- djangoStaticFiles:/home/staticfiles:rw
- djangoStaticFiles:/home/staticfiles:ro

cueo-redis:
image: redis
Expand Down
6 changes: 4 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ services:
DJANGO_SUPERUSER_PASSWORD: ${DJANGO_SUPERUSER_PASSWORD}
DJANGO_SUPERUSER_EMAIL: ${DJANGO_SUPERUSER_EMAIL}
IS_AUTHENTICATION_REQUIRED: ${IS_AUTHENTICATION_REQUIRED}
REDIS_BROKER_URL:
CELERY_RESULT_BACKEND: ${CELERY_RESULT_BACKEND}
REDIS_BROKER_URL: ${REDIS_BROKER_URL}
DETECTION_SERVICE_PLATFORM: ${DETECTION_SERVICE_PLATFORM}
AWS_LAMBDA_URL: ${AWS_LAMBDA_URL}
volumes:
- sqliteDB:/code/db:rw
- djangoStaticFiles:/home/staticfiles:rw

cueo-alerts:
build:
context: alerts-api
Expand Down
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"tailwindcss": "^2.2.16"
},
"scripts": {
"start": "PORT=3030 react-scripts --max_old_space_size=4096 --optimize_for_size start",
"start": "PORT=3030 react-scripts --optimize_for_size start",
"build": "react-scripts --max_old_space_size=4096 --optimize_for_size build && gulp licenses",
"test": "react-scripts test",
"eject": "react-scripts eject",
Expand Down

0 comments on commit c63d8c7

Please sign in to comment.