From 7e873a72ee96bda91989459a175ae94261f66ee4 Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Mon, 24 Apr 2023 12:13:22 -0500 Subject: [PATCH] chore: create a fork for gaia which supports historical data Signed-off-by: Kevin Carter --- .github/workflows/matrix-run.yaml | 4 ++-- gaia-sdk-45-fork/Dockerfile | 30 ++++++++++++++++++++++++++++++ gaia-sdk-45-fork/MANIFEST | 1 + gaia-sdk-45-fork/README.md | 4 ++++ gaia-sdk-45-fork/VERSION | 1 + 5 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 gaia-sdk-45-fork/Dockerfile create mode 100644 gaia-sdk-45-fork/MANIFEST create mode 100644 gaia-sdk-45-fork/README.md create mode 100644 gaia-sdk-45-fork/VERSION diff --git a/.github/workflows/matrix-run.yaml b/.github/workflows/matrix-run.yaml index e2d2cc1f..2c628d36 100644 --- a/.github/workflows/matrix-run.yaml +++ b/.github/workflows/matrix-run.yaml @@ -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 @@ -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: diff --git a/gaia-sdk-45-fork/Dockerfile b/gaia-sdk-45-fork/Dockerfile new file mode 100644 index 00000000..ea5ce6c9 --- /dev/null +++ b/gaia-sdk-45-fork/Dockerfile @@ -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 " \ + 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"] diff --git a/gaia-sdk-45-fork/MANIFEST b/gaia-sdk-45-fork/MANIFEST new file mode 100644 index 00000000..d7af726f --- /dev/null +++ b/gaia-sdk-45-fork/MANIFEST @@ -0,0 +1 @@ +/usr/local/bin/gaia-sdk-45-fork diff --git a/gaia-sdk-45-fork/README.md b/gaia-sdk-45-fork/README.md new file mode 100644 index 00000000..b83e8159 --- /dev/null +++ b/gaia-sdk-45-fork/README.md @@ -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. \ No newline at end of file diff --git a/gaia-sdk-45-fork/VERSION b/gaia-sdk-45-fork/VERSION new file mode 100644 index 00000000..e52d3910 --- /dev/null +++ b/gaia-sdk-45-fork/VERSION @@ -0,0 +1 @@ +v9.0.3