{"id":24093265,"url":"https://github.com/umd-lib/boathook","last_synced_at":"2025-10-03T20:32:55.634Z","repository":{"id":147002582,"uuid":"484522160","full_name":"umd-lib/boathook","owner":"umd-lib","description":"Rake tasks for managing an application's Docker images","archived":false,"fork":false,"pushed_at":"2022-06-07T13:55:43.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-02-27T12:42:07.383Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/umd-lib.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-22T17:43:30.000Z","updated_at":"2022-04-22T17:45:23.000Z","dependencies_parsed_at":"2023-06-19T00:41:20.260Z","dependency_job_id":null,"html_url":"https://github.com/umd-lib/boathook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/umd-lib/boathook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umd-lib%2Fboathook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umd-lib%2Fboathook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umd-lib%2Fboathook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umd-lib%2Fboathook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/umd-lib","download_url":"https://codeload.github.com/umd-lib/boathook/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umd-lib%2Fboathook/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267534982,"owners_count":24103216,"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":"2025-07-28T02:00:09.689Z","response_time":68,"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":"2025-01-10T09:26:49.582Z","updated_at":"2025-10-03T20:32:50.600Z","avatar_url":"https://github.com/umd-lib.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# boathook\n\nRake tasks for managing an application's Docker images\n\n## Quick Start\n\n### Installation\n\nIn your `Gemfile`:\n\n```ruby\ngem 'boathook', git: 'https://github.com/umd-lib/boathook', tag: 'main'\n```\n\nThen run `bundle install`.\n\n### Usage\n\nIn your `Rakefile` or `*.rake` task file:\n\n```ruby\nrequire 'boathook'\n\nnamespace :docker do\n  Boathook::DockerTasks.new do |t|\n    t.version = 'app-version'\n    t.image_specs = [\n      {\n        name: 'image-name',\n        dockerfile: 'path/to/Dockerfile',  # defaults to 'Dockerfile'\n        context: 'path/to/context/dir'     # defaults to '.'\n      }\n      # if your project has multiple Docker images to build, you can add\n      # additional image specs here\n    ]\n  end\nend\n```\n\nNow there are three tasks added to your project:\n\n* `docker:tags` shows you the full Docker name:tag value for each image it will build\n* `docker:build` builds the Docker images\n* `docker:push` push the images to a remote repository\n\n## Tags and Labels\n\nIf the `version` includes the string \"dev\", the tag will be \"latest\". Otherwise, it will be the value of `version`.\n\nIn addition to tagging the image with the version, `docker:build` also applies the following labels to the newly created image:\n\n* `org.opencontainer.images.version` is the version as given in the constructor block\n* `org.opencontainer.images.revision` is the current git revision of the project, as determined by running `git rev-parse HEAD` in the working directory\n\nIf you have [jq] installed, you can easily verify these labels by running:\n\n```bash\ndocker image inspect image-name:tag | jq '.[].Config.Labels'\n```\n\n## The Name\n\nThis library is built on top of [Mattock], which itself is built on top of [Rake]. Combine these with the fact that Docker is heavily nautically themed, and you get: [Boathook]!\n\n## License\n\nSee the [LICENSE](LICENSE) file for license rights and limitations (Apache 2.0).\n\n[jq]: https://stedolan.github.io/jq/\n[Mattock]: https://rubygems.org/gems/mattock\n[Rake]: https://ruby.github.io/rake/\n[Boathook]: https://github.com/umd-lib/boathook\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumd-lib%2Fboathook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fumd-lib%2Fboathook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumd-lib%2Fboathook/lists"}