- Copy
.env.example
file as.env
. Replace the values of the file. These are currently hardcoded, but would be dynamically returned by the lookup service.- FILEURLS: The go service wasn't able to respond to all requests, due to the fact that the file server returned 503 (unavailable). The current solution is to pass in multiple URLs - each being served by a different file server. The file-service itself then picks randomly between one of the passed in URLs.
docker build -t file-service --platform linux/amd64 .
docker run -e PORT=3000 -p 3000:3000 file-service
- What happens on network downtime?
- Look into request and response timeouts
- grpc vs REST
az login
az acr login --name <container-registry-name>
docker build -t file-service:v1 . --no-cache --platform linux/amd64
docker tag file-service:v1 <container-registry-name>.azurecr.io/file-service:v1
docker push <container-registry-name>.azurecr.io/file-service:v1