Skip to content

Commit

Permalink
Add protoc to docker image (#725)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwylde authored Aug 24, 2024
1 parent 29edd8e commit 68fb412
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion crates/arroyo-formats/src/proto/schema.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use anyhow::{anyhow, bail, Context};
use arrow_schema::{DataType, Field, Schema};
use arroyo_rpc::schema_resolver::ConfluentSchemaRegistry;
use arroyo_types::ArroyoExtensionType;
use prost_reflect::{Cardinality, DescriptorPool, FieldDescriptor, Kind, MessageDescriptor};
use regex::Regex;
Expand Down
6 changes: 5 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ RUN apt-get update && \
mkdir /config

COPY --from=builder /arroyo ./
COPY --from=builder /usr/local/bin/protoc /usr/local/bin/protoc
COPY --from=builder /app/include/google /usr/local/include/google

ENV INSTALL_RUSTC=true \
INSTALL_CLANG=true \
Expand All @@ -67,11 +69,13 @@ CMD ["cluster"]
FROM rust:slim-bookworm AS arroyo-full
WORKDIR /app
RUN apt-get update && \
apt-get -y install libsasl2-2 ca-certificates curl pkg-config protobuf
apt-get -y install libsasl2-2 ca-certificates curl pkg-config

ENV ARROYO__API__RUN_HTTP_PORT=5115

COPY --from=builder /arroyo ./
COPY --from=builder /usr/local/bin/protoc /usr/local/bin/protoc
COPY --from=builder /app/include/google /usr/local/include/google

EXPOSE 5115
ENTRYPOINT [ "/app/arroyo" ]
Expand Down

0 comments on commit 68fb412

Please sign in to comment.