Skip to content

Commit

Permalink
fix: Change server addresses, set build to release, clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
darunrs committed Jan 23, 2024
1 parent 535e4b3 commit 0c23fc7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions block-streamer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM rust:1.75 AS build
ARG CARGO_BUILD_MODE=debug
ARG CARGO_BUILD_MODE=release
WORKDIR /tmp/
COPY block-streamer/ block-streamer/
COPY registry/types/ registry/types/
Expand All @@ -12,7 +12,7 @@ RUN if [ "$CARGO_BUILD_MODE" = "debug" ]; then \
fi

FROM ubuntu:22.04
ARG CARGO_BUILD_MODE=debug
ARG CARGO_BUILD_MODE=release
ENV RUST_LOG=info
RUN apt update && apt install -yy openssl ca-certificates
USER nobody
Expand Down
1 change: 0 additions & 1 deletion block-streamer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ async fn main() -> anyhow::Result<()> {
let delta_lake_client =
std::sync::Arc::new(crate::delta_lake_client::DeltaLakeClient::new(s3_client));

tracing::info!("Starting gRPC Server...");
server::init(&server_port, redis_client, delta_lake_client, s3_config).await?;

Ok(())
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ services:
AWS_ACCESS_KEY_ID:
AWS_SECRET_ACCESS_KEY:
GRPC_SERVER_PORT: 7001
ports:
- "7001:7001"

redis:
image: redis
Expand Down
2 changes: 1 addition & 1 deletion runner/src/server/runner-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function startRunnerServer (executors: Map<string, StreamHandler>
assert(process.env.GRPC_SERVER_PORT, 'GRPC_SERVER_PORT is not defined');

server.bindAsync(
`localhost:${process.env.GRPC_SERVER_PORT}`,
`0.0.0.0:${process.env.GRPC_SERVER_PORT}`,
credentials.createInsecure(), // TODO: Use secure credentials with allow for Coordinator
(err: Error | null, port: number) => {
if (err) {
Expand Down

0 comments on commit 0c23fc7

Please sign in to comment.