-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'increase-claim-timeout' into feat/implement-logic-for-h…
…andling-token-economics
- Loading branch information
Showing
20 changed files
with
293 additions
and
97 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# | ||
# Arkeo | ||
# | ||
|
||
ARG GO_VERSION="1.21" | ||
|
||
# | ||
# Build | ||
# | ||
FROM golang:${GO_VERSION} as builder | ||
|
||
ARG GIT_VERSION | ||
ARG GIT_COMMIT | ||
|
||
ENV GOBIN=/go/bin | ||
ENV GOPATH=/go | ||
ENV CGO_ENABLED=0 | ||
ENV GOOS=linux | ||
|
||
RUN go install github.com/jackc/tern/v2@latest | ||
|
||
# Download go dependencies | ||
WORKDIR /app | ||
COPY go.mod go.sum ./ | ||
RUN go mod download | ||
COPY . . | ||
ARG TAG=testnet | ||
RUN make install | ||
|
||
# | ||
# Main | ||
# | ||
FROM ubuntu:lunar | ||
|
||
# hadolint ignore=DL3008,DL4006 | ||
RUN apt-get update -y && \ | ||
apt-get upgrade -y && \ | ||
apt-get install -y --no-install-recommends \ | ||
jq curl htop vim ca-certificates && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN update-ca-certificates | ||
|
||
# Copy the compiled binaries over. | ||
COPY --from=builder /go/bin/sentinel /go/bin/arkeod /go/bin/indexer /go/bin/api /go/bin/tern /usr/bin/ | ||
COPY scripts /scripts | ||
|
||
ARG TAG=testnet | ||
ENV NET=$TAG | ||
|
||
EXPOSE 1317 | ||
|
||
EXPOSE 26656 | ||
|
||
EXPOSE 26657 | ||
|
||
ENTRYPOINT ["scripts/genesis.sh"] | ||
|
||
# default to fullnode | ||
CMD ["arkeod", "start"] |
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
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,16 +1,21 @@ | ||
--- | ||
version: "3" | ||
|
||
services: | ||
node: | ||
image: ghcr.io/arkeonetwork/arkeo-dev:${IMAGE_TAG} | ||
image: ${IMAGE_TAG} | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.localnet # Ensure the Dockerfile is correctly referenced | ||
entrypoint: | ||
- sh | ||
- /opt/genesis.sh | ||
- bash | ||
- -c | ||
- | | ||
./genesis.sh && \ | ||
arkeod start | ||
ports: | ||
- 9090:9090 | ||
- 1317:1317 | ||
- 26657:26657 | ||
- 26656:26656 | ||
volumes: | ||
- ./scripts:/opt:z | ||
working_dir: /opt | ||
- ./scripts:/scripts:z | ||
working_dir: /scripts |
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.