-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Feature: add celestials * Fix: build * Refactoring: celestials module to separate package * Some improvements * Add statuses * Fix: go.mod * Add joins to grants and delegations * Change interface to address handler
- Loading branch information
1 parent
b7098dd
commit 07f966a
Showing
54 changed files
with
1,909 additions
and
321 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
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# --------------------------------------------------------------------- | ||
# The first stage container, for building the application | ||
# --------------------------------------------------------------------- | ||
FROM golang:1.23.2-alpine AS builder | ||
|
||
ENV CGO_ENABLED=0 | ||
ENV GO111MODULE=on | ||
ENV GOOS=linux | ||
|
||
RUN apk --no-cache add ca-certificates | ||
|
||
RUN mkdir -p $GOPATH/src/github.com/celenium-io/celestia-indexer/ | ||
|
||
COPY ./go.* $GOPATH/src/github.com/celenium-io/celestia-indexer/ | ||
WORKDIR $GOPATH/src/github.com/celenium-io/celestia-indexer | ||
RUN go mod download | ||
|
||
COPY cmd/celestials cmd/celestials | ||
COPY internal internal | ||
COPY pkg pkg | ||
|
||
WORKDIR $GOPATH/src/github.com/celenium-io/celestia-indexer/cmd/celestials/ | ||
RUN go build -a -installsuffix cgo -o /go/bin/celestials . | ||
|
||
# --------------------------------------------------------------------- | ||
# The second stage container, for running the application | ||
# --------------------------------------------------------------------- | ||
FROM scratch | ||
|
||
WORKDIR /app/celestials | ||
|
||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
COPY --from=builder /go/bin/celestials /go/bin/celestials | ||
COPY ./configs/dipdup.yml ./ | ||
COPY database database | ||
|
||
ENTRYPOINT ["/go/bin/celestials", "-c", "dipdup.yml"] |
Oops, something went wrong.