Skip to content
This repository has been archived by the owner on Sep 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #439 from oshied/historical-v9
Browse files Browse the repository at this point in the history
chore: create a fork for gaia which supports historical data
  • Loading branch information
cloudnull authored Apr 24, 2023
2 parents 429ad43 + 3924056 commit 2073ee6
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/matrix-run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
manifest: ${{ steps.manifest_output.outputs.value }}
strategy:
fail-fast: false
max-parallel: 10
max-parallel: 3
matrix: "${{ fromJson(needs.setup.outputs.matrix) }}"
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -133,7 +133,7 @@ jobs:
timeout-minutes: 240
strategy:
fail-fast: false
max-parallel: 10
max-parallel: 3
matrix: "${{ fromJson(needs.setup.outputs.matrix) }}"
if: ${{ needs.build.outputs.manifest != '' }}
steps:
Expand Down
30 changes: 30 additions & 0 deletions gaia-sdk-45-fork/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
FROM ghcr.io/oshied/base-go1.18:bionic as BUILD
ARG git_repository=https://github.com/cosmos/gaia.git
ARG git_version=main
RUN git clone --recursive --branch $git_version $git_repository /build_dir
WORKDIR /build_dir
RUN sed -i 's@github.com/cosmos/cosmos-sdk =>.*@github.com/cosmos/cosmos-sdk => github.com/notional-labs/cosmos-sdk v0.45.16-0.20230409050322-1846175439ec@' go.mod
RUN sed -i 's@github.com/cosmos/cosmos-sdk v0.45.15-ics h1.*@github.com/notional-labs/cosmos-sdk v0.45.16-0.20230409050322-1846175439ec h1:tLRNo92hab2C+sF4GKPeP45K8ZlizcQ0WeX2NC0Kb9k=@' go.sum
RUN sed -i 's@github.com/cosmos/cosmos-sdk v0.45.15-ics/go.mod h1.*@github.com/notional-labs/cosmos-sdk v0.45.16-0.20230409050322-1846175439ec/go.mod h1:bScuNwWAP0TZJpUf+SHXRU3xGoUPp+X9nAzfeIXts40=@' go.sum
RUN make build

FROM gcr.io/distroless/base-debian11:latest
ARG git_repository=https://github.com/cosmos/gaia.git
ARG git_version=main
ARG name="gaia-sdk-45-fork"
ARG summary="Distroless container build for ${name}."
LABEL description="${summary}" \
maintainer="cloudnull.io <kevin@cloudnull.com>" \
app.kubernetes.io/name="${name}" \
app.kubernetes.io/version="${git_version}" \
org.opencontainers.image.title="${name}" \
org.opencontainers.artifact.description="${summary}" \
org.opencontainers.image.url="https://github.com/oshied/protocol-forge" \
org.opencontainers.image.authors="kevin@cloudnull.com" \
org.opencontainers.image.revision="${git_version}" \
org.opencontainers.image.source="${git_repository}" \
org.opencontainers.image.vendor="cloudnull.io" \
org.opencontainers.image.description="${summary}"
WORKDIR /usr/local/bin
COPY --from=BUILD /build_dir/build/gaiad /usr/local/bin/gaia-sdk-45-fork
ENTRYPOINT ["/usr/local/bin/gaia-sdk-45-fork"]
1 change: 1 addition & 0 deletions gaia-sdk-45-fork/MANIFEST
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/usr/local/bin/gaia-sdk-45-fork
4 changes: 4 additions & 0 deletions gaia-sdk-45-fork/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Distroless container build for gaia

This release was created to run a forked Gaia which provides the ability to query
historical data.
1 change: 1 addition & 0 deletions gaia-sdk-45-fork/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v9.0.3

0 comments on commit 2073ee6

Please sign in to comment.