-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docker-compose file with Jupyer notebook (#328)
* Add docker-compose file with Jupyer notebook * Add development version of dockerfile for Feast developer, to avoid mvn dependencies download * Add end to end test runner * Add documentation * Add batch serving functionality to docker compose setup
- Loading branch information
1 parent
7aae72b
commit 4d1b4f9
Showing
19 changed files
with
1,348 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
docs | ||
charts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
COMPOSE_PROJECT_NAME=feast | ||
|
||
FEAST_VERSION=latest | ||
|
||
FEAST_CORE_IMAGE=gcr.io/kf-feast/feast-core | ||
FEAST_CORE_CONFIG=direct-runner | ||
FEAST_CORE_GCP_SERVICE_ACCOUNT_KEY=placeholder | ||
|
||
FEAST_SERVING_IMAGE=gcr.io/kf-feast/feast-serving | ||
FEAST_ONLINE_SERVING_CONFIG=online-serving | ||
FEAST_ONLINE_STORE_CONFIG=redis-store | ||
FEAST_BATCH_SERVING_CONFIG=batch-serving | ||
FEAST_BATCH_STORE_CONFIG=bq-store | ||
FEAST_BATCH_SERVING_GCP_SERVICE_ACCOUNT_KEY=placeholder | ||
FEAST_JOB_STAGING_LOCATION=gs://your-gcp-project/bucket | ||
|
||
FEAST_JUPYTER_IMAGE=gcr.io/kf-feast/feast-jupyter | ||
FEAST_JUPYTER_GCP_SERVICE_ACCOUNT_KEY=placeholder | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
feast: | ||
jobs: | ||
runner: DirectRunner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
version: "3.7" | ||
|
||
services: | ||
batch-serving: | ||
image: ${FEAST_SERVING_IMAGE}:${FEAST_VERSION} | ||
volumes: | ||
- ./serving/${FEAST_BATCH_SERVING_CONFIG}.yml:/etc/feast/application.yml | ||
- ./serving/${FEAST_BATCH_STORE_CONFIG}.yml:/etc/feast/store.yml | ||
- ./gcp-service-accounts/${FEAST_BATCH_SERVING_GCP_SERVICE_ACCOUNT_KEY}.json:/etc/gcloud/service-accounts/key.json | ||
depends_on: | ||
- core | ||
- redis | ||
ports: | ||
- 6567:6567 | ||
restart: on-failure | ||
environment: | ||
GOOGLE_APPLICATION_CREDENTIALS: /etc/gcloud/service-accounts/key.json | ||
FEAST_JOB_STAGING_LOCATION: ${FEAST_JOB_STAGING_LOCATION} | ||
command: | ||
- "java" | ||
- "-Xms1024m" | ||
- "-Xmx1024m" | ||
- "-jar" | ||
- "/opt/feast/feast-serving.jar" | ||
- "--spring.config.location=classpath:/application.yml,file:/etc/feast/application.yml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
version: "3.7" | ||
|
||
services: | ||
core: | ||
image: ${FEAST_CORE_IMAGE}:${FEAST_VERSION} | ||
volumes: | ||
- ./core/${FEAST_CORE_CONFIG}.yml:/etc/feast/application.yml | ||
- ./gcp-service-accounts/${FEAST_CORE_GCP_SERVICE_ACCOUNT_KEY}.json:/etc/gcloud/service-accounts/key.json | ||
environment: | ||
DB_HOST: db | ||
GOOGLE_APPLICATION_CREDENTIALS: /etc/gcloud/service-accounts/key.json | ||
restart: on-failure | ||
depends_on: | ||
- db | ||
- kafka | ||
ports: | ||
- 6565:6565 | ||
command: | ||
- java | ||
- -jar | ||
- /opt/feast/feast-core.jar | ||
- --spring.config.location=classpath:/application.yml,file:/etc/feast/application.yaml | ||
|
||
online-serving: | ||
image: ${FEAST_SERVING_IMAGE}:${FEAST_VERSION} | ||
volumes: | ||
- ./serving/${FEAST_ONLINE_SERVING_CONFIG}.yml:/etc/feast/application.yml | ||
- ./serving/${FEAST_ONLINE_STORE_CONFIG}.yml:/etc/feast/store.yml | ||
depends_on: | ||
- core | ||
- redis | ||
ports: | ||
- 6566:6566 | ||
restart: on-failure | ||
command: | ||
- java | ||
- -jar | ||
- /opt/feast/feast-serving.jar | ||
- --spring.config.location=classpath:/application.yml,file:/etc/feast/application.yml | ||
|
||
jupyter: | ||
image: ${FEAST_JUPYTER_IMAGE}:${FEAST_VERSION} | ||
volumes: | ||
- ./jupyter/notebooks:/home/jovyan/feast-notebooks | ||
- ./jupyter/features:/home/jovyan/features | ||
- ./gcp-service-accounts/${FEAST_JUPYTER_GCP_SERVICE_ACCOUNT_KEY}.json:/etc/gcloud/service-accounts/key.json | ||
depends_on: | ||
- core | ||
- online-serving | ||
environment: | ||
FEAST_CORE_URL: core:6565 | ||
FEAST_SERVING_URL: online-serving:6566 | ||
GOOGLE_APPLICATION_CREDENTIALS: /etc/gcloud/service-accounts/key.json | ||
ports: | ||
- 8888:8888 | ||
command: | ||
- start-notebook.sh | ||
- --NotebookApp.token='' | ||
|
||
redis: | ||
image: redis:5-alpine | ||
|
||
kafka: | ||
image: confluentinc/cp-kafka:5.2.1 | ||
environment: | ||
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 | ||
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 | ||
KAFKA_ADVERTISED_LISTENERS: INSIDE://kafka:9092,OUTSIDE://localhost:9094 | ||
KAFKA_LISTENERS: INSIDE://:9092,OUTSIDE://:9094 | ||
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT | ||
KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE | ||
ports: | ||
- 9094:9092 | ||
|
||
depends_on: | ||
- zookeeper | ||
|
||
zookeeper: | ||
image: confluentinc/cp-zookeeper:5.2.1 | ||
environment: | ||
ZOOKEEPER_CLIENT_PORT: 2181 | ||
|
||
db: | ||
image: postgres:12-alpine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: customer_transactions | ||
kind: feature_set | ||
entities: | ||
- name: customer_id | ||
valueType: INT64 | ||
features: | ||
- name: daily_transactions | ||
valueType: FLOAT | ||
- name: total_transactions | ||
valueType: FLOAT | ||
maxAge: 3600s |
13 changes: 13 additions & 0 deletions
13
infra/docker-compose/jupyter/features/cust_trans_fs_updated.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: customer_transactions | ||
kind: feature_set | ||
entities: | ||
- name: customer_id | ||
valueType: INT64 | ||
features: | ||
- name: daily_transactions | ||
valueType: FLOAT | ||
- name: total_transactions | ||
valueType: FLOAT | ||
- name: discounts | ||
valueType: FLOAT | ||
maxAge: 3600s |
Oops, something went wrong.