Skip to content

Commit

Permalink
remove features
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalu committed Jul 29, 2023
1 parent 7885e4b commit 23471e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
8 changes: 1 addition & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,9 @@ RUN mkdir -p container-output
ARG ci_commit
ENV CI_COMMIT=$ci_commit

ARG features

# Uses docker buildkit to cache the image.
# /usr/local/cargo/git needed for crossbeam patch
RUN --mount=type=cache,mode=0777,target=/geyser-grpc-plugin/target \
--mount=type=cache,mode=0777,target=/usr/local/cargo/registry \
--mount=type=cache,mode=0777,target=/usr/local/cargo/git \
if [ -z "$features" ] ; then \
cargo build --release && cp target/release/libgeyser* ./container-output; \
else \
cargo build --release --features "$features" && cp target/release/libgeyser* ./container-output; \
fi
cargo build --release && cp target/release/libgeyser* ./container-output
6 changes: 1 addition & 5 deletions f
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
# Useful for running on machines that might not have cargo installed but can run docker/podman (Flatcar Linux).
set -eux

# Comma delimited list of feature flags passed to the geyser-grpc-plugin/server crate e.g. jito-solana.
FEATURES=${1:-""}

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"

GIT_SHA="$(git describe --always --dirty)"
Expand Down Expand Up @@ -34,8 +31,7 @@ ${CONTAINER_CMD} build \
--build-arg ci_commit="$GIT_SHA" \
-t geyser-grpc-plugin \
-f Dockerfile . \
--progress=plain \
--build-arg features="$FEATURES"
--progress=plain

# Creates a temporary container, copies geyser-grpc-plugin built inside container there and
# removes the temporary container.
Expand Down

0 comments on commit 23471e2

Please sign in to comment.