{"id":17188285,"url":"https://github.com/jclem/nomad-cache","last_synced_at":"2026-01-05T16:41:56.829Z","repository":{"id":52486762,"uuid":"234340555","full_name":"jclem/nomad-cache","owner":"jclem","description":null,"archived":false,"fork":false,"pushed_at":"2021-04-27T18:00:52.000Z","size":10,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-13T12:48:11.746Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HCL","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/jclem.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}},"created_at":"2020-01-16T14:40:07.000Z","updated_at":"2020-01-22T19:06:56.000Z","dependencies_parsed_at":"2022-09-21T03:30:44.344Z","dependency_job_id":null,"html_url":"https://github.com/jclem/nomad-cache","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jclem/nomad-cache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jclem%2Fnomad-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jclem%2Fnomad-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jclem%2Fnomad-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jclem%2Fnomad-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jclem","download_url":"https://codeload.github.com/jclem/nomad-cache/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jclem%2Fnomad-cache/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28217665,"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","status":"online","status_checked_at":"2026-01-05T02:00:06.358Z","response_time":57,"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":[],"created_at":"2024-10-15T01:08:35.633Z","updated_at":"2026-01-05T16:41:56.812Z","avatar_url":"https://github.com/jclem.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Install Dependencies\n\n1. Docker `brew cask install docker`\n1. Consul `brew install consul`\n1. Nomad `brew install nomad`\n1. [Optional] Terraform `brew install terraform`\n\n# Use\n\n*Note that by default, these configuration files open a port dynamically on the host for Redis inspection, and `8080` for the service itself. You'll want to ensure no other services have these ports open (or change these configuration files).*\n\n1. Build the Docker image: `docker build -t nomad-cache:v3 .` (the `cache.hcl` assumes this is the container name—**do not** use a `latest` tag, because Consul will always want to pull from a container registry)\n1. Start Redis: `nomad run config/redis.hcl`\n1. Start cache: `nomad run config/cache.hcl`\n1. Start Nginx: `nomad run config/nginx.hcl`\n\n## Terraform\n\nIf you want to start the services in a simpler manner, you can use local Terraform.\n\n1. Build the Docker image as described above.\n1. Install Terraform plugins: `terraform init`\n1. Apply the Terraform config: `terraform apply`\n\nNow you can GET `http://localhost:8080/${key}` and PUT `http://localhost:8080/${key}` with a `{\"value\":$value}` JSON body. Notice responses have `X-Nomad-Alloc-ID`, showing you that requests are load balanced by Nginx across different Cache instances.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjclem%2Fnomad-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjclem%2Fnomad-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjclem%2Fnomad-cache/lists"}