forked from zilliztech/milvus-cdc
-
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.
* update cdc config Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com> * update cdc config Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com> * update cdc config Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com> * update cdc config Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com> * update cdc config Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com> * update cdc config Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com> * update cdc config Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com> --------- Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
- Loading branch information
1 parent
2217d68
commit 82f9dd0
Showing
6 changed files
with
37 additions
and
24 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,19 +1,31 @@ | ||
FROM golang:1.21 AS builder | ||
FROM golang:1.21 AS builder | ||
|
||
ENV CGO_ENABLED=1 | ||
|
||
# Add git to the builder stage | ||
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* | ||
|
||
ARG GIT_COMMIT_ARG | ||
ENV CDC_GIT_COMMIT=${GIT_COMMIT_ARG} | ||
|
||
WORKDIR /app | ||
COPY . . | ||
RUN cd server && make build && mv ../bin/cdc /app/milvus-cdc | ||
|
||
# Modify this line to pass CDC_GIT_COMMIT to make | ||
RUN cd server && make build GIT_COMMIT=${CDC_GIT_COMMIT} && mv ../bin/cdc /app/milvus-cdc | ||
|
||
FROM debian:bookworm | ||
|
||
WORKDIR /app | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
ca-certificates \ | ||
curl \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY --from=builder /app/milvus-cdc ./ | ||
COPY --from=builder /app/server/configs ./configs | ||
|
||
EXPOSE 8444 | ||
|
||
CMD ["/bin/bash", "-c", "cat /app/configs/cdc.yaml;/app/milvus-cdc"] | ||
CMD ["/bin/bash", "-c", "cat /app/configs/cdc.yaml;/app/milvus-cdc"] |
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