@@ -217,6 +217,14 @@ For external DB-backed offline stores (BigQuery, Snowflake, Spark, Trino, etc.),
217217` persistence.store.type` and a Secret with the matching key. See
218218[Offline Stores](../reference/offline-stores/) in the SDK docs.
219219
220+ > **Important — contrib store drivers require a custom image.**
221+ > The published `quay.io/feastdev/feature-server` image ships with `feast[minimal]`
222+ > (aws, gcp, snowflake, redis, go, mysql, postgres-c, opentelemetry,
223+ > grpcio, k8s, duckdb, mcp, milvus). Contrib offline stores such as **Trino, Iceberg,
224+ > Spark, Athena, ClickHouse**, and others are **not** included in the base image. To use
225+ > them, build a custom feature-server image that adds the required extras. See
226+ > [Building a custom feature-server image](#building-a-custom-feature-server-image) below.
227+
220228# ## Registry
221229
222230| `type` | Secret key | Notes |
@@ -985,6 +993,200 @@ See [Guide 6 — Batch & Jobs](06-batch-and-jobs.md) for full details.
985993
986994---
987995
996+ # # Building a custom feature-server image
997+
998+ The published `quay.io/feastdev/feature-server` image includes a curated subset of Feast
999+ extras. Contrib store drivers (Trino, Iceberg, Spark, Athena, ClickHouse, etc.) and any
1000+ additional Python packages your feature transformations depend on are **not** included. To
1001+ use them, build a custom image that extends the base image with the packages you need.
1002+
1003+ > **You do not need to clone the Feast repository.** Extend the published base image and
1004+ > install extra packages on top.
1005+
1006+ # ## Writing the Dockerfile
1007+
1008+ Create a `Dockerfile` in your own infrastructure repository (or the repository that holds
1009+ your Feast feature definitions) :
1010+
1011+ ` ` ` dockerfile
1012+ FROM quay.io/feastdev/feature-server:0.65.0
1013+
1014+ RUN uv pip install --no-cache-dir \
1015+ "feast[trino,redis,iceberg]==0.65.0"
1016+ ` ` `
1017+
1018+ Pin the Feast version in both the base image tag and the `pip install` command so the
1019+ server and client libraries stay in sync. Add any other Python packages your feature
1020+ transformations need (ML libraries, internal SDKs, etc.) :
1021+
1022+ ` ` ` dockerfile
1023+ FROM quay.io/feastdev/feature-server:0.65.0
1024+
1025+ RUN uv pip install --no-cache-dir \
1026+ "feast[trino,redis,iceberg,mlflow]==0.65.0" \
1027+ "scikit-learn>=1.3,<2" \
1028+ "my-internal-sdk==1.2.3"
1029+ ` ` `
1030+
1031+ # ## Building and pushing via CI/CD
1032+
1033+ The image build and push should run entirely in CI/CD — never from a developer laptop in
1034+ a production workflow.
1035+
1036+ ` ` ` yaml
1037+ # Example: GitHub Actions
1038+ name: Build Feast Feature Server
1039+ on:
1040+ push:
1041+ branches: [main]
1042+ paths:
1043+ - 'feast/Dockerfile'
1044+
1045+ jobs:
1046+ build:
1047+ runs-on: ubuntu-latest
1048+ steps:
1049+ - uses: actions/checkout@v4
1050+ - uses: docker/login-action@v3
1051+ with:
1052+ registry: registry.example.com
1053+ username: ${{ secrets.REGISTRY_USER }}
1054+ password: ${{ secrets.REGISTRY_PASSWORD }}
1055+ - uses: docker/build-push-action@v5
1056+ with:
1057+ context: feast/
1058+ push: true
1059+ tags: registry.example.com/feast/feature-server:0.65.0-custom
1060+ ` ` `
1061+
1062+ # ## Referencing the custom image in the FeatureStore CR
1063+
1064+ Point the operator at the custom image using `server.image` on each service that needs it.
1065+ Also set `services.initImage` so the init containers (`feast-init` for git clone/staging
1066+ and `feast-apply` for registry updates) use the same custom image — otherwise they run
1067+ with the default image which lacks the contrib drivers :
1068+
1069+ ` ` ` yaml
1070+ apiVersion: feast.dev/v1
1071+ kind: FeatureStore
1072+ metadata:
1073+ name: my-feature-store
1074+ spec:
1075+ feastProject: my_project
1076+ feastProjectDir:
1077+ git:
1078+ url: https://github.com/my-org/feast-feature-repo
1079+ ref: <pinned-commit-sha>
1080+ services:
1081+ initImage: registry.example.com/feast/feature-server:0.65.0-custom
1082+ offlineStore:
1083+ server:
1084+ image: registry.example.com/feast/feature-server:0.65.0-custom
1085+ persistence:
1086+ store:
1087+ type: trino
1088+ secretRef:
1089+ name: feast-offline-store
1090+ onlineStore:
1091+ server:
1092+ image: registry.example.com/feast/feature-server:0.65.0-custom
1093+ persistence:
1094+ store:
1095+ type: redis
1096+ secretRef:
1097+ name: feast-online-store
1098+ registry:
1099+ local:
1100+ server:
1101+ image: registry.example.com/feast/feature-server:0.65.0-custom
1102+ persistence:
1103+ store:
1104+ type: sql
1105+ secretRef:
1106+ name: feast-data-stores
1107+ ` ` `
1108+
1109+ The `git` section above points to your **feature-definition repository** (not Feast's
1110+ GitHub repository). The operator clones that repository at deployment time to load
1111+ ` feature_store.yaml` and feature definitions.
1112+
1113+ Alternatively, set the image once for all services cluster-wide via the operator
1114+ environment variable :
1115+
1116+ ` ` ` sh
1117+ kubectl set env deployment/feast-operator-controller-manager \
1118+ RELATED_IMAGE_FEATURE_SERVER=registry.example.com/feast/feature-server:0.65.0-custom \
1119+ -n feast-operator-system
1120+ ` ` `
1121+
1122+ See [Guide 3 — Serving & Observability](03-serving-and-observability.md#container-image-and-resources)
1123+ for the full image resolution priority chain.
1124+
1125+ # ## Baking the feature repo into the custom image
1126+
1127+ If the cluster cannot clone a Git repository at runtime (air-gapped environments), combine
1128+ the custom dependencies with the feature repository in one image :
1129+
1130+ ` ` ` dockerfile
1131+ FROM quay.io/feastdev/feature-server:0.65.0
1132+
1133+ RUN uv pip install --no-cache-dir \
1134+ "feast[trino,redis,iceberg]==0.65.0"
1135+
1136+ COPY feature_repo/ /opt/feast/feature_repo/
1137+ ` ` `
1138+
1139+ Then use the `packaged` provisioning mode so the operator reads the baked-in repo :
1140+
1141+ ` ` ` yaml
1142+ spec:
1143+ feastProject: my_project
1144+ feastProjectDir:
1145+ packaged:
1146+ image: registry.example.com/feast/feature-server:0.65.0-custom
1147+ featureRepoPath: /opt/feast/feature_repo
1148+ services:
1149+ runFeastApplyOnInit: false # apply is handled separately
1150+ offlineStore:
1151+ server: {}
1152+ persistence:
1153+ store:
1154+ type: trino
1155+ secretRef:
1156+ name: feast-offline-store
1157+ ` ` `
1158+
1159+ See [Guide 1 — Project Provisioning](01-project-provisioning.md#option-c--use-a-repository-packaged-in-an-image-feastprojectdirpackaged)
1160+ for full `packaged` details.
1161+
1162+ # ## Included extras in the base image
1163+
1164+ For reference, the base `quay.io/feastdev/feature-server` image installs `feast[minimal]`,
1165+ which expands to :
1166+
1167+ ` ` `
1168+ feast[aws, gcp, snowflake, redis, go, mysql, postgres-c, opentelemetry, grpcio, k8s, duckdb, mcp, milvus]
1169+ ` ` `
1170+
1171+ The `minimal` extra is defined in the Feast
1172+ [`pyproject.toml`](https://github.com/feast-dev/feast/blob/stable/pyproject.toml).
1173+
1174+ Extras **not** included in `minimal` (require a custom image) :
1175+
1176+ | Extra | Offline store |
1177+ |-------|---------------|
1178+ | `trino` | [Trino](../reference/offline-stores/trino.md) |
1179+ | `spark` | [Spark](../reference/offline-stores/spark.md) |
1180+ | `athena` | [Athena](../reference/offline-stores/athena.md) |
1181+ | `mssql` | [MSSQL](../reference/offline-stores/mssql.md) |
1182+ | `clickhouse` | [ClickHouse](../reference/offline-stores/clickhouse.md) |
1183+ | `oracle` | [Oracle](../reference/offline-stores/oracle.md) |
1184+ | `couchbase` | [Couchbase](../reference/offline-stores/couchbase.md) |
1185+ | `iceberg` | Apache Iceberg |
1186+ | `mlflow` | MLflow model registry |
1187+
1188+ ---
1189+
9881190# # Troubleshooting
9891191
9901192| Symptom | Likely cause | Fix |
0 commit comments