Skip to content

Commit

Permalink
Include protoc in docker (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
m30m authored Nov 28, 2024
1 parent 5f62443 commit 1c60ce2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/push-rust-services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ jobs:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
version: "28.x"
- name: Extract metadata (tags, labels) for Docker
id: meta_server
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
Expand Down
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ FROM rust:${RUST_VERSION} AS build
RUN rustup default nightly-2024-02-04
RUN cargo install --git https://github.com/coral-xyz/anchor --tag v0.30.1 anchor-cli --locked

# Install protobuf (modify version as needed)
ARG PROTOC_VERSION=28.3
RUN curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-linux-x86_64.zip && \
unzip protoc-${PROTOC_VERSION}-linux-x86_64.zip -d /usr/local && \
rm protoc-${PROTOC_VERSION}-linux-x86_64.zip

# Add /usr/local/bin to PATH if not already present
ENV PATH="/usr/local/bin:$PATH"

# Set default toolchain
RUN rustup default nightly-2024-04-10

Expand Down

0 comments on commit 1c60ce2

Please sign in to comment.