{"id":17473759,"url":"https://github.com/infrablocks/rake_docker","last_synced_at":"2025-04-22T10:39:01.962Z","repository":{"id":22341460,"uuid":"85443913","full_name":"infrablocks/rake_docker","owner":"infrablocks","description":"Rake tasks for managing images and containers.","archived":false,"fork":false,"pushed_at":"2025-04-22T10:08:23.000Z","size":550,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-04-22T10:38:28.863Z","etag":null,"topics":["docker","infrablocks","rake","rake-task","rake-taskset","ruby","ruby-gem","rubygem","taskset"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/infrablocks.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null}},"created_at":"2017-03-19T01:44:18.000Z","updated_at":"2025-04-22T10:08:27.000Z","dependencies_parsed_at":"2023-11-13T10:27:29.434Z","dependency_job_id":"f140014e-fbd7-4b7f-a546-7e46578be524","html_url":"https://github.com/infrablocks/rake_docker","commit_stats":{"total_commits":304,"total_committers":9,"mean_commits":33.77777777777778,"dds":0.5921052631578947,"last_synced_commit":"cc6fc1e9963748c6b3a494a2df6e6f1af8a13877"},"previous_names":[],"tags_count":96,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infrablocks%2Frake_docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infrablocks%2Frake_docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infrablocks%2Frake_docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infrablocks%2Frake_docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/infrablocks","download_url":"https://codeload.github.com/infrablocks/rake_docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250222055,"owners_count":21394809,"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":["docker","infrablocks","rake","rake-task","rake-taskset","ruby","ruby-gem","rubygem","taskset"],"created_at":"2024-10-18T18:07:02.137Z","updated_at":"2025-04-22T10:39:01.890Z","avatar_url":"https://github.com/infrablocks.png","language":"Ruby","readme":"# RakeDocker\n\nAllows building, tagging and pushing images and creating, starting, stopping\nand removing containers from within rake tasks.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'rake_docker'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install rake_docker\n\n## Usage\n\nTo define tasks for managing a docker image:\n\n```ruby\nRakeDocker.define_image_tasks(\n  image_name: 'my-image'\n) do |t|\n  t.work_directory = 'build/images'\n\n  t.copy_spec = [\n    'src/my-image/Dockerfile',\n    'src/my-image/start.sh'\n  ]\n\n  t.repository_name = 'my-image'\n  t.repository_url = 'my-org/my-image'\n\n  t.credentials = YAML.load_file(\n    'config/secrets/dockerhub/credentials.yaml'\n  )\n\n  t.platform = 'linux/amd64'\n\n  t.tags = ['1.2.3', 'latest']\nend\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run\n`rake spec` to run the tests. You can also run `bin/console` for an interactive\nprompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To\nrelease a new version, update the version number in `version.rb`, and then run\n`bundle exec rake release`, which will create a git tag for the version, push\ngit commits and tags, and push the `.gem` file to\n[rubygems.org](https://rubygems.org).\n\n### Managing CircleCI keys\n\nTo encrypt a GPG key for use by CircleCI:\n\n```bash\nopenssl aes-256-cbc \\\n  -e \\\n  -md sha1 \\\n  -in ./config/secrets/ci/gpg.private \\\n  -out ./.circleci/gpg.private.enc \\\n  -k \"\u003cpassphrase\u003e\"\n```\n\nTo check decryption is working correctly:\n\n```bash\nopenssl aes-256-cbc \\\n  -d \\\n  -md sha1 \\\n  -in ./.circleci/gpg.private.enc \\\n  -k \"\u003cpassphrase\u003e\"\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at \nhttps://github.com/infrablocks/rake_docker. This project is intended to be a \nsafe, welcoming space for collaboration, and contributors are expected to \nadhere to the [Contributor Covenant](http://contributor-covenant.org) code of \nconduct.\n\n## License\n\nThe gem is available as open source under the terms of the \n[MIT License](http://opensource.org/licenses/MIT).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfrablocks%2Frake_docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfrablocks%2Frake_docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfrablocks%2Frake_docker/lists"}