{"id":16681996,"url":"https://github.com/stevebuik/docker-roll","last_synced_at":"2026-04-21T21:03:53.273Z","repository":{"id":83074083,"uuid":"107053383","full_name":"stevebuik/docker-roll","owner":"stevebuik","description":null,"archived":false,"fork":false,"pushed_at":"2017-10-16T02:11:17.000Z","size":3,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-31T11:45:49.502Z","etag":null,"topics":["ci","clojure","deployment","devops","pipelines","terraform"],"latest_commit_sha":null,"homepage":null,"language":null,"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/stevebuik.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":"2017-10-15T22:20:39.000Z","updated_at":"2018-02-23T07:52:17.000Z","dependencies_parsed_at":"2023-03-21T02:18:17.154Z","dependency_job_id":null,"html_url":"https://github.com/stevebuik/docker-roll","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stevebuik/docker-roll","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevebuik%2Fdocker-roll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevebuik%2Fdocker-roll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevebuik%2Fdocker-roll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevebuik%2Fdocker-roll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stevebuik","download_url":"https://codeload.github.com/stevebuik/docker-roll/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevebuik%2Fdocker-roll/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32110137,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T11:25:29.218Z","status":"ssl_error","status_checked_at":"2026-04-21T11:25:28.499Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ci","clojure","deployment","devops","pipelines","terraform"],"created_at":"2024-10-12T14:05:53.569Z","updated_at":"2026-04-21T21:03:53.245Z","avatar_url":"https://github.com/stevebuik.png","language":null,"readme":"# Docker image for Juxt Roll deployments\n\nUseful when running [Juxt Roll](https://github.com/juxt/roll) deployments in CI systems,\nor on localhost without needing to install all the tools below.\n\nThis image includes the following CLI tools\n\n* Lumo\n* Mach\n* Lein\n* Boot\n* AWS CLI\n* Terraform\n\n## Deploying using this image\n\nHas been tested/use in Bitbucket pipelines but it can be used in any Docker environment.\n\nThis image is available on Dockerhub at https://hub.docker.com/r/steveb8n/roll\ni.e. use **steveb8n/roll** as your Docker tag.\nOr, alternatively, build it yourself from source and push to your own Docker repo.\n\n**AWS Profiles**\n\nRoll uses the *default* profile when invoking the *aws* CLI.\nThis means that you must have a *default* profile present but this can be difficult in Docker instances because the file-system is fresh each time.\nOne solution is to invoke `aws configure` for the 3 required environment variables in the build steps:\n\n`aws --profile default configure set region $AWS_REGION`\n\n`aws --profile default configure set aws_access_key_id $AWS_ACCESS_KEY_ID`\n\n`aws --profile default configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY`\n\n**Terraform State**\n\nTerraform needs a way to store its plans between invocations.\nIn a CI environment, this state cannot be stored locally.\nThis is fixed by using a [*remote backend*](https://www.terraform.io/docs/backends/index.html) for Terraform.\nThere are many backend types but AWS S3 is best suited for a Roll deployment.\nThis can be added by a function in the Mach *produce* thread-first macro:\n\n\u003cpre\u003e\u003ccode\u003e\nproduce (-\u003e config\n            (roll.core/preprocess)\n            (roll.core/deployment-\u003etf)\n            (assoc-in [:terraform :backend \"s3\"] {:bucket \"some-bucket-name\"\n                                                  :key    \"some/key\"\n                                                  :region \"some-aws-region\"})\n            (roll.core/-\u003etf-json))\n\u003c/code\u003e\u003c/pre\u003e\n\n**Terraform Commands**\n\nYou must run [terraform init](https://www.terraform.io/docs/commands/init.html) before `terraform plan` so that the providers and backends are correctly prepared.\nIn other words, the commands for an automated roll deploy using this image are:\n\n`mach upload`\n\n`mach tfjson`\n\n`terraform init`\n\n`terraform plan`\n\n`terraform apply`\n\n## Bitbucket Pipelines Usage\n\nThe example Machfile uses `git describe` to generate a unique artifact name for the uberjar.\nThis can fail if the `git clone` performed by the CI service is *shallow* i.e. not a full clone.\nThis can be fixed in the bitbucket-pipelines.yml file by configuring a full clone.\n\n\u003cpre\u003e\u003ccode\u003e\nimage: steveb8n/roll\nclone:\n  depth: full\n\u003c/code\u003e\u003c/pre\u003e\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevebuik%2Fdocker-roll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstevebuik%2Fdocker-roll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevebuik%2Fdocker-roll/lists"}