-
Notifications
You must be signed in to change notification settings - Fork 88
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
1 parent
2812c9e
commit 2e10263
Showing
6 changed files
with
20 additions
and
526 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 |
---|---|---|
|
@@ -4,6 +4,3 @@ dist | |
|
||
test/gethData | ||
test/coverage.out | ||
|
||
db/db-packr.go | ||
packrd/ |
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 |
---|---|---|
|
@@ -9,8 +9,6 @@ release: | |
before: | ||
hooks: | ||
- go mod download | ||
- go install github.com/gobuffalo/packr/v2/[email protected] | ||
- packr2 | ||
|
||
builds: | ||
- main: ./cmd/ | ||
|
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,23 +1,21 @@ | ||
# CONTAINER FOR BUILDING BINARY | ||
FROM golang:1.21 AS build | ||
|
||
WORKDIR $GOPATH/src/github.com/0xPolygon/cdk-data-availability | ||
|
||
# INSTALL DEPENDENCIES | ||
RUN go install github.com/gobuffalo/packr/v2/[email protected] | ||
COPY go.mod go.sum /src/ | ||
WORKDIR /src | ||
COPY go.mod go.sum ./ | ||
RUN go mod download | ||
|
||
# BUILD BINARY | ||
COPY . /src | ||
|
||
WORKDIR /src/db | ||
RUN packr2 | ||
|
||
WORKDIR /src | ||
COPY . . | ||
RUN make build | ||
|
||
# CONTAINER FOR RUNNING BINARY | ||
FROM alpine:3.16.0 | ||
COPY --from=build /src/dist/cdk-data-availability /app/cdk-data-availability | ||
|
||
COPY --from=build /go/src/github.com/0xPolygon/cdk-data-availability/dist/cdk-data-availability /app/cdk-data-availability | ||
|
||
EXPOSE 8444 | ||
|
||
CMD ["/bin/sh", "-c", "/app/cdk-data-availability run"] |
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.