{"id":25217345,"url":"https://github.com/valtech-ch/go-file-server-poc","last_synced_at":"2025-04-05T09:22:20.596Z","repository":{"id":262865231,"uuid":"888503703","full_name":"valtech-ch/go-file-server-poc","owner":"valtech-ch","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-18T15:42:07.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T20:13:31.370Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/valtech-ch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-14T14:10:18.000Z","updated_at":"2024-11-18T15:42:21.000Z","dependencies_parsed_at":"2024-11-14T18:39:18.810Z","dependency_job_id":null,"html_url":"https://github.com/valtech-ch/go-file-server-poc","commit_stats":null,"previous_names":["valtech-ch/go-file-server-poc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valtech-ch%2Fgo-file-server-poc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valtech-ch%2Fgo-file-server-poc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valtech-ch%2Fgo-file-server-poc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valtech-ch%2Fgo-file-server-poc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/valtech-ch","download_url":"https://codeload.github.com/valtech-ch/go-file-server-poc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247313254,"owners_count":20918599,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-10T20:13:32.909Z","updated_at":"2025-04-05T09:22:20.561Z","avatar_url":"https://github.com/valtech-ch.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# File service\n\n## Start\n\n1.  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.\n    - 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.\n2.  `docker build -t file-service --platform linux/amd64 .`\n3.  `docker run -e PORT=3000 -p 3000:3000 file-service`\n\n## Further considerations\n\n- What happens on network downtime?\n- Look into request and response timeouts\n- grpc vs REST\n\n## Azure instructions\n\n1. `az login`\n2. `az acr login --name \u003ccontainer-registry-name\u003e`\n3. `docker build -t file-service:v1 . --no-cache --platform linux/amd64`\n4. `docker tag file-service:v1 \u003ccontainer-registry-name\u003e.azurecr.io/file-service:v1`\n5. `docker push \u003ccontainer-registry-name\u003e.azurecr.io/file-service:v1`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaltech-ch%2Fgo-file-server-poc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvaltech-ch%2Fgo-file-server-poc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaltech-ch%2Fgo-file-server-poc/lists"}