<commit_before>FROM python:3.8-slim-buster



# --> Config
ENV DAPHNEVERSION="EOSS"
ENV VASSAR_HOST="127.0.0.1"
ENV VASSAR_PORT="9090"
ENV DATAMINING_HOST="127.0.0.1"
ENV DATAMINING_PORT="9191"
ENV PYTHONUNBUFFERED="1"
ENV VASSAR_REQUEST_URL="https://sqs.us-east-2.amazonaws.com/923405430231/vassar_request"
ENV VASSAR_RESPONSE_URL="https://sqs.us-east-2.amazonaws.com/923405430231/vassar_response"
ENV GA_REQUEST_URL="https://sqs.us-east-2.amazonaws.com/923405430231/ga_request"
ENV GA_RESPONSE_URL="https://sqs.us-east-2.amazonaws.com/923405430231/ga_response"
ENV DEPLOYMENT_TYPE="aws"
ENV AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
ENV AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}


# --> DBs
ENV SQL_USER="daphne"
ENV SQL_PASSWORD="<PASSWORD>"
ENV USER="daphne"
ENV PASSWORD="<PASSWORD>"
ENV POSTGRES_HOST="daphne-dev-database.csl99y1ur3jh.us-east-2.rds.amazonaws.com"
ENV POSTGRES_PORT="5432"


# --> Services
#ENV REDIS_HOST="redis.daphne.dev"
ENV REDIS_HOST="172.16.58.3"
ENV REDIS_PORT="6379"
#ENV RABBITMQ_HOST="rabbitmq.daphne.dev"
ENV RABBITMQ_HOST="172.16.17.32"
#ENV NEO4J_HOST="neo4j.daphne.dev"
ENV NEO4J_HOST="192.168.3.11"
ENV NEO4J_PORT="7687"
ENV NEO4J_USER="neo4j"
ENV NEO4J_PASSWORD="<PASSWORD>"
#ENV HASURA_HOST="http://graphql.daphne.dev:8080/v1/graphql"
#ENV HASURA_HOST_WS="ws://graphql.daphne.dev:8080/v1/graphql"
ENV HASURA_HOST="http://192.168.3.11:8080/v1/graphql"
ENV HASURA_HOST_WS="ws://192.168.3.11:8080/v1/graphql"

ENV CLUSTER_ARN="arn:aws:ecs:us-east-2:923405430231:cluster/daphne-cluster"
ENV VASSAR_SERVICE_ARN="arn:aws:ecs:us-east-2:923405430231:service/daphne-cluster/evaluator-service"
ENV GA_SERVICE_ARN="arn:aws:ecs:us-east-2:923405430231:service/daphne-cluster/genetic-algorithm"










# --> 0. Preliminary Updates
RUN apt-get -y update &&\
    apt-get -y install build-essential manpages-dev

# --> 1. Copy Brain
WORKDIR /app
COPY ./. /app

# --> 2. Create Logs / Models
WORKDIR /app/logs
RUN touch /app/logs/daphne.logs
WORKDIR /app/dialogue/models<commit_msg>fpush...<commit_after>FROM python:3.8-slim-buster

# --> Config
ENV DAPHNEVERSION=${DAPHNEVERSION}
ENV VASSAR_HOST=${VASSAR_HOST}
ENV VASSAR_PORT=${VASSAR_PORT}
ENV DATAMINING_HOST=${DATAMINING_HOST}
ENV DATAMINING_PORT=${DATAMINING_PORT}
ENV PYTHONUNBUFFERED=${PYTHONUNBUFFERED}
ENV VASSAR_REQUEST_URL=${VASSAR_REQUEST_URL}
ENV VASSAR_RESPONSE_URL=${VASSAR_RESPONSE_URL}
ENV GA_REQUEST_URL=${GA_REQUEST_URL}
ENV GA_RESPONSE_URL=${GA_RESPONSE_URL}
ENV DEPLOYMENT_TYPE=${DEPLOYMENT_TYPE}
ENV AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
ENV AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}

# --> DBs
ENV SQL_USER=${SQL_USER}
ENV SQL_PASSWORD=${SQL_PASSWORD}
ENV USER=${USER}
ENV PASSWORD=${PASSWORD}
ENV POSTGRES_HOST=${POSTGRES_HOST}
ENV POSTGRES_PORT=${POSTGRES_PORT}

# --> Services
ENV REDIS_HOST=${REDIS_HOST}
ENV REDIS_PORT=${REDIS_PORT}
ENV RABBITMQ_HOST=${RABBITMQ_HOST}
ENV NEO4J_HOST=${NEO4J_HOST}
ENV NEO4J_PORT=${NEO4J_PORT}
ENV NEO4J_USER=${NEO4J_USER}
ENV NEO4J_PASSWORD=${<PASSWORD>}
ENV HASURA_HOST=${HASURA_HOST}
ENV HASURA_HOST_WS=${HASURA_HOST_WS}
ENV CLUSTER_ARN=${CLUSTER_ARN}
ENV VASSAR_SERVICE_ARN=${VASSAR_SERVICE_ARN}
ENV GA_SERVICE_ARN=${GA_SERVICE_ARN}










# --> 0. Preliminary Updates
RUN apt-get -y update &&\
    apt-get -y install build-essential manpages-dev

# --> 1. Copy Brain
WORKDIR /app
COPY ./. /app

# --> 2. Create Logs / Models
WORKDIR /app/logs
RUN touch /app/logs/daphne.logs
WORKDIR /app/dialogue/models
{'fraction_non_alphanumeric': 0.14500723589001446, 'fraction_numerical': 0.06280752532561505, 'mean_word_length': 6.400428265524625, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 19, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 7, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4752620', 'n_tokens_mistral': 1640, 'n_tokens_neox': 1499, 'n_words': 203}