{"id":17723212,"url":"https://github.com/ohbus/ops-interview-task","last_synced_at":"2026-04-15T05:32:05.609Z","repository":{"id":107213638,"uuid":"248018137","full_name":"ohbus/ops-interview-task","owner":"ohbus","description":"Zerodha Ops Task","archived":false,"fork":false,"pushed_at":"2020-03-18T19:18:16.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-04T15:44:03.262Z","etag":null,"topics":["docker","docker-compose","golang","kubernetes","redis","vagrant"],"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/ohbus.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":"2020-03-17T16:23:42.000Z","updated_at":"2021-11-20T12:38:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"71715fe1-cddb-44fc-90d6-75a0112d6a05","html_url":"https://github.com/ohbus/ops-interview-task","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/ohbus/ops-interview-task","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohbus%2Fops-interview-task","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohbus%2Fops-interview-task/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohbus%2Fops-interview-task/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohbus%2Fops-interview-task/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ohbus","download_url":"https://codeload.github.com/ohbus/ops-interview-task/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohbus%2Fops-interview-task/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31828531,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T18:05:02.291Z","status":"online","status_checked_at":"2026-04-15T02:00:06.175Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["docker","docker-compose","golang","kubernetes","redis","vagrant"],"created_at":"2024-10-25T15:42:14.048Z","updated_at":"2026-04-15T05:32:05.589Z","avatar_url":"https://github.com/ohbus.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zerodha Ops Task\n\n## Description\n\nThis is a sample `Go` application which connects to Redis. The app increments a `counter` on an incoming request.\n\n### Setting up the app\n\n- Use `make build` to compile the binary.\n- Set the environment variables:\n    - `DEMO_APP_ADDR`: Address where the app should listen to\n    - `DEMO_REDIS_ADDR`: Address where Redis is running\n\n## Tasks\n\n- Create a `Dockerfile` for the app.\n\n- Create a `docker-compose.yml` for the app which includes\n\n  - `redis` service, with the data directory of `redis` mounted at `/data` in your VM.\n  - `app` service running with port `8000` exposed to the host.\n\n- Write a bash script that creates and boots [Vagrant box](https://vagrant.io) with Ubuntu.\n\n- Using Ansible provision the VM to:\n\n  - Setup hostname of VM as `demo-ops`\n  - Create a user `demo`\n  - Configure `sysctl` for sane defaults. For eg: increasing open files limit. Configure a variety of `sysctl` settings to make the VM a production grade one.\n  - Set the system's timezone to \"Asia/Kolkata\"\n  - Install Docker and Docker-Compose\n  - Configure Docker Daemon to have sane defaults. For eg: to keep logs size in check.\n  - Deploy the `docker-compose.yml` in `/etc/demo-ops` and start the services\n\n- Commit the scripts to Github and share the link.\n\n### Bonus Section\n\nIf you have experience working with Kubernetes, you can attempt the bonus scenario:\n\n- Create a namespace `demo-ops`\n- Create a deployment and service manifest for the app.\n- Configure liveliness check, resource quotas for the deployment.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohbus%2Fops-interview-task","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fohbus%2Fops-interview-task","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohbus%2Fops-interview-task/lists"}