https://github.com/valtech-ch/go-file-server-poc
https://github.com/valtech-ch/go-file-server-poc
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/valtech-ch/go-file-server-poc
- Owner: valtech-ch
- Created: 2024-11-14T14:10:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-18T15:42:07.000Z (over 1 year ago)
- Last Synced: 2025-02-10T20:13:31.370Z (over 1 year ago)
- Language: Go
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# File service
## Start
1. 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.
2. `docker build -t file-service --platform linux/amd64 .`
3. `docker run -e PORT=3000 -p 3000:3000 file-service`
## Further considerations
- What happens on network downtime?
- Look into request and response timeouts
- grpc vs REST
## Azure instructions
1. `az login`
2. `az acr login --name `
3. `docker build -t file-service:v1 . --no-cache --platform linux/amd64`
4. `docker tag file-service:v1 .azurecr.io/file-service:v1`
5. `docker push .azurecr.io/file-service:v1`