diff --git a/.env b/.env index cb3dd4d..8ff9c47 100644 --- a/.env +++ b/.env @@ -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..amazonaws.com/default/testCueobserveAnomalyDetection diff --git a/.env.dev b/.env.dev index 683fd1b..ceee939 100644 --- a/.env.dev +++ b/.env.dev @@ -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..amazonaws.com/default/testCueobserveAnomalyDetection diff --git a/aws_lambda_setup.sh b/aws_lambda_setup.sh old mode 100644 new mode 100755 diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml index a2204d7..0d7ccee 100644 --- a/docker-compose-dev.yml +++ b/docker-compose-dev.yml @@ -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: diff --git a/docker-compose-prod.yml b/docker-compose-prod.yml index 33d011d..0f775bf 100644 --- a/docker-compose-prod.yml +++ b/docker-compose-prod.yml @@ -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 @@ -41,7 +43,7 @@ services: - "cueo-backend" - "cueo-redis" volumes: - - djangoStaticFiles:/home/staticfiles:rw + - djangoStaticFiles:/home/staticfiles:ro cueo-redis: image: redis diff --git a/docker-compose.yml b/docker-compose.yml index 6c74989..e5228e1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 diff --git a/ui/package.json b/ui/package.json index 01ed1d7..366fd4c 100644 --- a/ui/package.json +++ b/ui/package.json @@ -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",