Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
pass region to s3 client only if set
Signed-off-by: tokoko <togurg14@freeuni.edu.ge>
  • Loading branch information
tokoko committed Apr 25, 2024
commit a00c583ba417f017e51d577e3eaa65f61634b82f
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,14 @@ Storage googleStorage(ApplicationProperties applicationProperties) {

@Provides
public AmazonS3 awsStorage(ApplicationProperties applicationProperties) {
return AmazonS3ClientBuilder.standard()
.withRegion(applicationProperties.getFeast().getAwsRegion())
.build();
AmazonS3ClientBuilder builder = AmazonS3ClientBuilder.standard();
String region = applicationProperties.getFeast().getAwsRegion();

if (region != null) {
builder = builder.withRegion(region);
}

return builder.build();
}

@Provides
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
FROM python:3.9

WORKDIR /app
COPY java/serving/src/test/resources/docker-compose/feast10/ .
COPY sdk/python /mnt/feast/sdk/python
COPY protos /mnt/feast/protos
COPY setup.py /mnt/feast/setup.py
COPY pyproject.toml /mnt/feast/pyproject.toml
COPY README.md /mnt/feast/README.md
RUN cd /mnt/feast && SETUPTOOLS_SCM_PRETEND_VERSION="0.1.0" pip install .[grpcio,redis]
COPY Makefile /mnt/feast/Makefile
ENV SETUPTOOLS_SCM_PRETEND_VERSION=0.1.0
RUN pip install uv
RUN cd /mnt/feast && uv pip install --system .[grpcio,redis]
COPY java/serving/src/test/resources/docker-compose/feast10/ .
EXPOSE 8080

CMD ["./entrypoint.sh"]