Kubernetes, docker and node.js expert needed
Budget: $30 – $250 AUD
I have a code meant to run in K8s deployment. I'm trying to run the same locally on my machine in docker environment but I'm getting some errors. This is a microservice application and not a monolith. I'm able to run 7 of 9 applications without a problem but 2 applications just doesn't want to run. I also have doubts in the port mapping i'm using (since it isn't relevant in k8s deployment).
I need someone to jump on a zoom call with me to fix it. I know it's a quick fix and I'm missing something stupid. Hopefully you should be able to find it out soon enough.
The error I'm getting when trying to run the container is:
➜ ~ docker run --env-file ~/Desktop/env.txt -t -i -p 7080:7080 currencyservice
Profiler enabled.
Tracing disabled.
{"severity":"info","time":1675738701245,"pid":1,"hostname":"c7d12bdcef02","name":"currencyservice-server","message":"Starting gRPC server on port undefined..."}
{"severity":"info","time":1675738701345,"pid":1,"hostname":"c7d12bdcef02","name":"currencyservice-server","message":"CurrencyService gRPC server started on port undefined"}
/usr/src/app/node_modules/@grpc/grpc-js/build/src/server.js:496
throw new Error('server must be bound in order to start');
^
Error: server must be bound in order to start
at Server.start (/usr/src/app/node_modules/@grpc/grpc-js/build/src/server.js:496:19)
at /usr/src/app/server.js:184:14
at /usr/src/app/node_modules/@grpc/grpc-js/build/src/server.js:251:36
at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
Node.js v19.3.0
BTW, here's the code that I'm trying to run. I would appreciate if the person first runs it on his own machine (As a docker container environment and not on Minikube or any k8s deployment):
https://github.com/GoogleCloudPlatform/microservices-demo
I need someone to jump on a zoom call with me to fix it. I know it's a quick fix and I'm missing something stupid. Hopefully you should be able to find it out soon enough.
The error I'm getting when trying to run the container is:
➜ ~ docker run --env-file ~/Desktop/env.txt -t -i -p 7080:7080 currencyservice
Profiler enabled.
Tracing disabled.
{"severity":"info","time":1675738701245,"pid":1,"hostname":"c7d12bdcef02","name":"currencyservice-server","message":"Starting gRPC server on port undefined..."}
{"severity":"info","time":1675738701345,"pid":1,"hostname":"c7d12bdcef02","name":"currencyservice-server","message":"CurrencyService gRPC server started on port undefined"}
/usr/src/app/node_modules/@grpc/grpc-js/build/src/server.js:496
throw new Error('server must be bound in order to start');
^
Error: server must be bound in order to start
at Server.start (/usr/src/app/node_modules/@grpc/grpc-js/build/src/server.js:496:19)
at /usr/src/app/server.js:184:14
at /usr/src/app/node_modules/@grpc/grpc-js/build/src/server.js:251:36
at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
Node.js v19.3.0
BTW, here's the code that I'm trying to run. I would appreciate if the person first runs it on his own machine (As a docker container environment and not on Minikube or any k8s deployment):
https://github.com/GoogleCloudPlatform/microservices-demo