-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
integrate embed into vectordb (#101)
* Update build.yml * Update build-embedding.yml * Update build-embedding.yml * Update build-embedding.yml * Update build-embedding.yml * Update build-embedding.yml * Update build-embedding.yml * Update build-embedding.yml * Create Dockerfile.embed * Update build-embedding.yml * Update build-embedding.yml * Update Dockerfile.embed * Update build.yml * Update VERSION * Update build.yml * Update build-embedding.yml * Update build.yml * Update build-embedding.yml * Update Dockerfile.embed * Update build-embedding.yml * Update build.yml * Update build-embedding.yml
- Loading branch information
1 parent
4cf36e3
commit f3a988f
Showing
4 changed files
with
70 additions
and
15 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 |
---|---|---|
@@ -1 +1 @@ | ||
0.3.0-lite | ||
0.3.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,39 @@ | ||
FROM epsilla/embedding:models AS models | ||
|
||
|
||
FROM epsilla/base AS builder | ||
ADD ./ /vectordb | ||
WORKDIR /vectordb | ||
ENV OATPP_INSTALL_PATH=/vectordb/build/dependencies | ||
RUN scripts/install_oatpp_modules.sh | ||
RUN mkdir -p /vectordb/build && cd /vectordb/build && cmake .. && make && chmod +x vectordb | ||
|
||
|
||
FROM epsilla/base | ||
WORKDIR /root | ||
|
||
ARG TARGETARCH | ||
ARG RELEASE_VERSION=latest | ||
ENV ENV_RELEASE_VERSION=$RELEASE_VERSION | ||
ENV PYTHONUNBUFFERED=True | ||
|
||
COPY --from=models /root/models /root/models | ||
COPY --from=builder /vectordb/build/vectordb /vectordb | ||
COPY ./scripts/heartbeat.sh /heartbeat.sh | ||
|
||
COPY ./epsilla-embed /root/ | ||
COPY ./epsilla-embed/launch.conf /etc/supervisor/conf.d/launch.conf | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y procps supervisor && \ | ||
pip install --no-cache-dir boto3 poetry --break-system-packages && \ | ||
poetry update && \ | ||
poetry install --only main && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
|
||
EXPOSE 8888 8889 | ||
|
||
HEALTHCHECK --interval=600s --timeout=30s --retries=1000 CMD bash /heartbeat.sh || exit 0 | ||
|
||
ENTRYPOINT ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"] |