{"id":13785242,"url":"https://github.com/jrasell/nomadfiles","last_synced_at":"2025-03-23T23:31:11.166Z","repository":{"id":144238709,"uuid":"79438688","full_name":"jrasell/nomadfiles","owner":"jrasell","description":"A collection of Nomad job files for deploying applications to a cluster","archived":false,"fork":false,"pushed_at":"2018-03-08T12:48:43.000Z","size":18,"stargazers_count":125,"open_issues_count":4,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-19T00:53:45.312Z","etag":null,"topics":["continuous-deployment","hashicorp","hcl","jenkins","jenkins-job-dsl","jenkinsfile","job-specification","jobdsl","nomad","nomad-jobs"],"latest_commit_sha":null,"homepage":"","language":"Groovy","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jrasell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-01-19T09:46:05.000Z","updated_at":"2025-02-01T16:13:23.000Z","dependencies_parsed_at":"2023-03-30T14:09:18.871Z","dependency_job_id":null,"html_url":"https://github.com/jrasell/nomadfiles","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrasell%2Fnomadfiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrasell%2Fnomadfiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrasell%2Fnomadfiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrasell%2Fnomadfiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jrasell","download_url":"https://codeload.github.com/jrasell/nomadfiles/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245186613,"owners_count":20574551,"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":["continuous-deployment","hashicorp","hcl","jenkins","jenkins-job-dsl","jenkinsfile","job-specification","jobdsl","nomad","nomad-jobs"],"created_at":"2024-08-03T19:00:58.404Z","updated_at":"2025-03-23T23:31:10.823Z","avatar_url":"https://github.com/jrasell.png","language":"Groovy","funding_links":[],"categories":["DevOps tools"],"sub_categories":["User Interfaces and Dashboards"],"readme":"# nomadfiles\n\nContinuous delivery examples for Nomad jobs.\n\nThis is a repository to hold the various [Nomad](https://www.nomadproject.io/) job files I create and use. Included is also the corresponding [Jenkinsfile](https://jenkins.io/doc/book/pipeline/jenkinsfile/) for automated deployments and the [Jenkins JobDSL](https://github.com/jenkinsci/job-dsl-plugin) file for configuring the Jenkins job.\n\nThis project sacrifices [DRY](https://en.wikipedia.org/wiki/Don't_repeat_yourself) in order to make the structure and usage clearer.\n\n## Levant\n\nThis example repository is configured to use [Levant](https://github.com/jrasell/levant), an open source templating and deployment tool for HashiCorp Nomad jobs that provides realtime feedback and detailed failure messages upon deployment issues. Levant was written because Nomad does not support some important templating and deployment features, and this repository represents a simple way to use the tool in a large scale, multi-environment setup.\n\n## Directory Structure\n\nThe directory structure is designed to be easy to navigate, yet highly descriptive of your Nomad deployments throughout you environments.\n\n### Jobs Directory\n\nThe `/jobs` holds the Nomad job specification and deployment scripts. The directory is split into sub-directories named by the Nomad job.\n\n* **job-name.groovy** The `.groovy` files are Jenkins JobDSL which can be used to configure the deployment job correctly and in an automated, codified manner. Details about the JobDSL plugin and basic usage information can be found on the [GitHub](https://github.com/jenkinsci/job-dsl-plugin) page.\n\n* **job-name.nomad** The Nomad job specification template file.\n\n* **Jenkinsfile** A Jenkinsfile is a text definition of the unit of work which the Jenkins deployment job will undertake.\n\n### Variables Directory\n\nThe `/variables` directory holds environment specific variables for each Nomad job. The directory can be split to better suit your needs, in this example, it is split by environment like `/variables/prod`. Within the subdirectory sits the variables files which correspond to a job that is held within the `/jobs` directory.\n\nThe variables configured for the nonprod environment should work in a local development setup when Nomad is run with `nomad agent -dev`.\n\n### Util Directory\n\nThe `/util` directory contains utility scripts which can be used from CI infrastructure to run common tasks on the desired job such as stop.\n\n## Contributing\n\nAny contributions are much appreciated. Please submit Pull Requests and Issues to the [nomadfiles project on GitHub](https://github.com/jrasell/nomadfiles).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrasell%2Fnomadfiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjrasell%2Fnomadfiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrasell%2Fnomadfiles/lists"}