-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
1,301 additions
and
152 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,24 +1,7 @@ | ||
FROM reg.vesoft-inc.com/ci/golang:1.18-alpine AS builder | ||
|
||
LABEL stage=gobuilder | ||
|
||
ENV CGO_ENABLED 0 | ||
ENV GOOS linux | ||
WORKDIR /build/zero | ||
|
||
ADD go.mod . | ||
ADD go.sum . | ||
COPY pkg pkg | ||
COPY cmd cmd | ||
RUN go mod download | ||
|
||
RUN go build -ldflags="-s -w" -o /usr/bin/nebula-importer ./cmd/nebula-importer | ||
|
||
FROM reg.vesoft-inc.com/ci/alpine | ||
FROM reg.vesoft-inc.com/proxy/library/alpine | ||
|
||
RUN apk update --no-cache && apk add --no-cache ca-certificates tzdata | ||
ENV TZ Asia/Shanghai | ||
|
||
COPY --from=builder /usr/bin/nebula-importer /usr/bin/nebula-importer | ||
ADD nebula-importer /usr/local/bin/nebula-importer | ||
|
||
ENTRYPOINT ["/usr/bin/nebula-importer"] | ||
ENTRYPOINT ["/usr/local/bin/nebula-importer"] |
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
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
Oops, something went wrong.