Skip to content

Commit b1bb914

Browse files
chore(local dev): Allow for custom GRPC port to be specified
1 parent 36ceb56 commit b1bb914

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# recent enough version of protobuf-compiler
44
FROM rust:1-bookworm AS build
55

6-
RUN apt-get update && apt-get upgrade -y
6+
RUN apt-get update && apt-get upgrade -y
77
RUN apt-get install -y cmake pkg-config libssl-dev librdkafka-dev protobuf-compiler
88

99
RUN USER=root cargo new --bin taskbroker
@@ -41,6 +41,7 @@ RUN groupadd taskbroker --gid 1000 && useradd --gid taskbroker --uid 1000 taskbr
4141
RUN apt-get update && apt-get upgrade -y && apt-get install -y libssl-dev libsqlite3-dev libsqlite3-0 openssl ca-certificates
4242

4343
EXPOSE 50051
44+
EXPOSE 50055
4445

4546
# For the sqlite to be mounted too
4647
RUN mkdir /opt/sqlite
@@ -54,4 +55,4 @@ WORKDIR /opt
5455
CMD ["/opt/taskbroker"]
5556

5657
# To build and run locally:
57-
# docker build -t taskbroker --no-cache . && docker rm taskbroker && docker run --name taskbroker -p 127.0.0.1:50051:50051 -e TASKBROKER_KAFKA_CLUSTER=sentry_kafka:9093 --network sentry taskbroker
58+
# docker build -t taskbroker --no-cache . && docker rm taskbroker && docker run --name taskbroker -p 127.0.0.1:50055:50055 -e TASKBROKER_KAFKA_CLUSTER=sentry_kafka:9093 --network sentry taskbroker

devservices/config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ services:
2525
environment:
2626
TASKBROKER_KAFKA_CLUSTER: "kafka-kafka-1:9093"
2727
TASKBROKER_CREATE_MISSING_TOPICS: "true"
28+
TASKBROKER_GRPC_PORT: "50055"
2829
ports:
29-
- 127.0.0.1:50051:50051
30+
- 127.0.0.1:50055:50055
3031
networks:
3132
- devservices
3233
labels:

0 commit comments

Comments
 (0)