diff --git a/.gitignore b/.gitignore index 087ad42..45f59fd 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,7 @@ env/ venv/ cache/ config.py -docker-compose* +docker-compose*.yml error.log *.ipynb derby.log diff --git a/README.md b/README.md index 7c3047e..71aa605 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,15 @@ * [Apollo](/analytics_platform/kronos/apollo) * [Uranus](/analytics_platform/kronos/uranus) +## To Deploy Locally: + +```bash +cp docker-compose-katappa.template docker-compose-katappa.yml +#Add the necessary key-values in docker-compose.yml. +docker build -t kronos -f Dockerfile +docker-compose -f docker-compose-katappa.yml up kronos +``` + ## To Test Locally `python -m unittest discover tests -v` diff --git a/docker-compose-katappa.template b/docker-compose-katappa.template new file mode 100644 index 0000000..05e181b --- /dev/null +++ b/docker-compose-katappa.template @@ -0,0 +1,23 @@ +version: "2" +services: + kronos: + build: + context: . + dockerfile: Dockerfile + image: kronos:latest + network_mode: bridge + entrypoint: + - /bin/entrypoint.sh + environment: + AWS_S3_ACCESS_KEY_ID: "<>" + AWS_S3_SECRET_ACCESS_KEY: "<>" + KRONOS_SCORING_REGION: "" + DEPLOYMENT_PREFIX: " affects where the data and log for training gets stored." + SERVICE_PORT: "6006" + SERVICE_TIMEOUT: "900" + SPARK_HOME: "/usr/local/spark" + PY4J_VERSION: "py4j-0.10.4-src.zip" + GREMLIN_REST_URL: ":" + FLASK_LOGGING_LEVEL: "DEBUG" + ports: + - "6006:6006" \ No newline at end of file