-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from filedag-project/feat/milestone3
Feat/milestone3
- Loading branch information
Showing
55 changed files
with
4,094 additions
and
704 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.git | ||
.github | ||
docs | ||
default.etcd | ||
*.gz | ||
*.tar.gz | ||
*.bzip2 | ||
*.zip | ||
/dn-data | ||
/dp-data | ||
/store-data |
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 |
---|---|---|
|
@@ -18,6 +18,7 @@ | |
/dagpool | ||
/datanode | ||
/objectstore | ||
/dp-data | ||
/dn-data | ||
/store-data | ||
/dp-data | ||
/store-data | ||
/iam-tools |
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,27 @@ | ||
FROM golang:1.19.3-alpine AS builder | ||
|
||
LABEL stage=gobuilder | ||
|
||
ENV CGO_ENABLED 0 | ||
ENV GOOS linux | ||
ENV GOPROXY https://goproxy.cn,direct | ||
|
||
WORKDIR /build | ||
COPY . . | ||
RUN go mod download | ||
|
||
# Builds your app with optional configuration | ||
RUN go build -ldflags "-s -w" -o dagpool ./cmd/dagpool | ||
|
||
FROM scratch | ||
|
||
WORKDIR /app | ||
COPY --from=builder /build/dagpool /app/dagpool | ||
|
||
# Tells Docker which network port your container listens on | ||
EXPOSE 50001 | ||
|
||
ENTRYPOINT ["/app/dagpool"] | ||
|
||
# Specifies the executable command that runs when the container starts | ||
CMD ["daemon", "--datadir=/data"] |
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,27 @@ | ||
FROM golang:1.19.3-alpine AS builder | ||
|
||
LABEL stage=gobuilder | ||
|
||
ENV CGO_ENABLED 0 | ||
ENV GOOS linux | ||
ENV GOPROXY https://goproxy.cn,direct | ||
|
||
WORKDIR /build | ||
COPY . . | ||
RUN go mod download | ||
|
||
# Builds your app with optional configuration | ||
RUN go build -ldflags "-s -w" -o datanode ./cmd/datanode | ||
|
||
FROM scratch | ||
|
||
WORKDIR /app | ||
COPY --from=builder /build/datanode /app/datanode | ||
|
||
# Tells Docker which network port your container listens on | ||
EXPOSE 9010 | ||
|
||
ENTRYPOINT ["/app/datanode"] | ||
|
||
# Specifies the executable command that runs when the container starts | ||
CMD ["daemon", "--datadir=/data"] |
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,27 @@ | ||
FROM golang:1.19.3-alpine AS builder | ||
|
||
LABEL stage=gobuilder | ||
|
||
ENV CGO_ENABLED 0 | ||
ENV GOOS linux | ||
ENV GOPROXY https://goproxy.cn,direct | ||
|
||
WORKDIR /build | ||
COPY . . | ||
RUN go mod download | ||
|
||
# Builds your app with optional configuration | ||
RUN go build -ldflags "-s -w" -o objectstore ./cmd/objectstore | ||
|
||
FROM scratch | ||
|
||
WORKDIR /app | ||
COPY --from=builder /build/objectstore /app/objectstore | ||
|
||
# Tells Docker which network port your container listens on | ||
EXPOSE 9985 | ||
|
||
ENTRYPOINT ["/app/objectstore"] | ||
|
||
# Specifies the executable command that runs when the container starts | ||
CMD ["daemon", "--datadir=/data"] |
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.