forked from feast-dev/feast
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SAASMLOPS-910 add the setuptools_scm pretend version
- Loading branch information
1 parent
8dc6135
commit 3dddca9
Showing
5 changed files
with
34 additions
and
3 deletions.
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
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,27 @@ | ||
FROM 406205545357.dkr.ecr.us-east-1.amazonaws.com/sailpoint/python3.10:1 AS build | ||
|
||
RUN dnf install --refresh -y git | ||
|
||
WORKDIR /bytewax | ||
|
||
# Copy dataflow code | ||
COPY sdk/python/feast/infra/materialization/contrib/bytewax/bytewax_materialization_dataflow.py /bytewax | ||
COPY sdk/python/feast/infra/materialization/contrib/bytewax/dataflow.py /bytewax | ||
|
||
# Copy entrypoint | ||
COPY sdk/python/feast/infra/materialization/contrib/bytewax/entrypoint.sh /bytewax | ||
|
||
# Copy necessary parts of the Feast codebase | ||
COPY sdk/python sdk/python | ||
COPY protos protos | ||
COPY go go | ||
COPY setup.py setup.py | ||
COPY pyproject.toml pyproject.toml | ||
COPY README.md README.md | ||
|
||
# Install Feast for AWS with Bytewax dependencies | ||
# We need this mount thingy because setuptools_scm needs access to the | ||
# git dir to infer the version of feast we're installing. | ||
# https://github.com/pypa/setuptools_scm#usage-from-docker | ||
# I think it also assumes that this dockerfile is being built from the root of the directory. | ||
RUN --mount=source=.git,target=.git,type=bind SETUPTOOLS_SCM_PRETEND_VERSION=1 pip3 install --no-cache-dir '.[aws,gcp,bytewax,snowflake,postgres]' |
5 changes: 3 additions & 2 deletions
5
sdk/python/feast/infra/materialization/contrib/bytewax/Dockerfile
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