Skip to content

Commit

Permalink
Test build
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Rubets committed Jun 13, 2024
1 parent e9b3604 commit b16846d
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 176 deletions.
65 changes: 0 additions & 65 deletions .github/workflows/docker-release-jito.yml

This file was deleted.

5 changes: 2 additions & 3 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release docker image
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+\-geyser\-jito\-plugin'

jobs:
docker:
Expand All @@ -29,7 +29,6 @@ jobs:
ghcr.io/${{ github.repository }}
tags: |
type=raw,value=${{ github.ref_name }}
type=raw,value=latest
- name: Build and push
uses: docker/build-push-action@v5
with:
Expand All @@ -40,7 +39,7 @@ jobs:
uses: ncipollo/release-action@v1
with:
name: ${{ github.event.repository.name }} ${{ github.ref_name }}
makeLatest: true
makeLatest: false
generateReleaseNotes: true
body: |
## Docker images
Expand Down
49 changes: 0 additions & 49 deletions .github/workflows/update-jito.yml.disabled

This file was deleted.

49 changes: 0 additions & 49 deletions .github/workflows/update-upstream.yml

This file was deleted.

49 changes: 49 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,50 @@
FROM rust:1.73-bullseye as jitobuild
# keep rust version in sync to avoid re-downloading rust
# use https://github.com/solana-labs/solana/blob/db9fdf5811ecd8a84ea446591854974d386681ef/ci/rust-version.sh#L21

RUN set -x \
&& apt-get -qq update \
&& apt-get -qq -y install \
clang \
cmake \
libudev-dev \
unzip \
libssl-dev \
pkg-config \
zlib1g-dev \
curl \
git \
&& rustup component add rustfmt \
&& rustup component add clippy \
&& rustc --version \
&& cargo --version

ENV PROTOC_VERSION 21.12
ENV PROTOC_ZIP protoc-$PROTOC_VERSION-linux-x86_64.zip

RUN curl -OL https://github.com/google/protobuf/releases/download/v$PROTOC_VERSION/$PROTOC_ZIP \
&& unzip -o $PROTOC_ZIP -d /usr/local bin/protoc \
&& unzip -o $PROTOC_ZIP -d /usr/local include/* \
&& rm -f $PROTOC_ZIP
WORKDIR /
RUN git clone --depth=1 --branch v1.17.20 https://github.com/jito-foundation/geyser-grpc-plugin.git
WORKDIR /geyser-grpc-plugin


ARG ci_commit
ENV CI_COMMIT=v1.17.20

ARG features

# Uses docker buildkit to cache the image.
# /usr/local/cargo/git needed for crossbeam patch
RUN if [ -z "$features" ] ; then \
cargo build --release; \
else \
cargo build --release --features "$features"; \
fi


FROM solanalabs/solana:v1.17.34

ENV DEBIAN_FRONTEND noninteractive
Expand All @@ -8,3 +55,5 @@ RUN apt-get update -y \
curl \
jq \
&& rm -rf /var/lib/apt/lists/*

COPY --from=jitobuild /geyser-grpc-plugin/target/release/libgeyser_grpc_plugin_server.so /lib/
10 changes: 0 additions & 10 deletions Dockerfile.jito

This file was deleted.

0 comments on commit b16846d

Please sign in to comment.