This part of the system is responsible for adding new Azure containers with redis using the rahuliyer95/csc724-redis-collectd image.
You can obtain the Azure SDK credentials using the following command
az ad sp create-for-rbac --sdk-auth
The application needs the following environment variables configured for it to run.
KAFKA_HOST
- Host where kafka is runningKAFKA_PORT
- Port on which kafka in listening toKAFKA_TOPIC
- Kafka topic to listen for predictions (should be set toprediction
KAFKA_GROUP
- Group Id for Kafka consumerAZURE_CLIENT_ID
- Client ID from azure credentialsAZURE_CLIENT_SECRET
- Client Secret from azure credentialsAZURE_SUBSCRIPTION_ID
- Subscription Id from azure credentialsAZURE_TENANT_ID
- Tenant Id from azure credentialsAZ_RESOURCE_GROUP
- Resource Group in AzureDD_API_KEY
- DataDog API Key (skip if you are not using it)ENV_INTERVAL
- Interval for collectd (needed for newer containers created)DEBUG_FLAG
- Keep it "--no-verbose" if you don't want verbose logs else make it "--verbose"
Run docker build . -t <TAG>
to build the image.
The TAG
should be your Docker Hub repository where you wil be push ing the image to.
Need to deploy it in a Azure Virtual Network named csc724