-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* modify dockerfile Signed-off-by: zeminzhou <[email protected]> * fix comment: Signed-off-by: zeminzhou <[email protected]> Signed-off-by: zeminzhou <[email protected]> Co-authored-by: Ping Yu <[email protected]>
- Loading branch information
Showing
17 changed files
with
31 additions
and
27 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,14 @@ | ||
FROM golang:1.18.0-alpine3.15 as builder | ||
RUN apk add --no-cache git make bash | ||
WORKDIR /go/src/github.com/tikv/migration/cdc | ||
COPY . . | ||
ENV CDC_ENABLE_VENDOR=0 | ||
RUN make release | ||
|
||
FROM alpine:3.15 | ||
RUN apk add --no-cache tzdata bash curl socat | ||
COPY --from=builder /go/src/github.com/tikv/migration/cdc/bin/tikv-cdc /usr/bin/ | ||
# TiKV-CDC use TiCDC operator to run TiKV-CDC server, TiCDC operator will use '/cdc' to start server | ||
COPY --from=builder /go/src/github.com/tikv/migration/cdc/bin/tikv-cdc /cdc | ||
EXPOSE 8600 | ||
CMD [ "tikv-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM golang:1.18.0-alpine3.15 as builder | ||
RUN apk add --no-cache git make bash | ||
WORKDIR /go/src/github.com/tikv/migration/cdc | ||
COPY . . | ||
ENV CDC_ENABLE_VENDOR=1 | ||
RUN go mod vendor | ||
RUN make failpoint-enable | ||
RUN make | ||
RUN make failpoint-disable | ||
|
||
FROM alpine:3.15 | ||
RUN apk add --no-cache tzdata bash curl socat | ||
COPY --from=builder /go/src/github.com/tikv/migration/cdc/bin/tikv-cdc /usr/bin/ | ||
# TiKV-CDC use TiCDC operator to run TiKV-CDC server, TiCDC operator will use '/cdc' to start server | ||
COPY --from=builder /go/src/github.com/tikv/migration/cdc/bin/tikv-cdc /cdc | ||
EXPOSE 8600 | ||
CMD [ "tikv-cdc" ] |
File renamed without changes.