{"id":16560007,"url":"https://github.com/adamvduke/docker-ruby-build","last_synced_at":"2026-04-10T02:06:21.274Z","repository":{"id":137253544,"uuid":"49313224","full_name":"adamvduke/docker-ruby-build","owner":"adamvduke","description":"build ruby debs in a docker container","archived":false,"fork":false,"pushed_at":"2016-11-18T00:25:02.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-15T13:20:05.673Z","etag":null,"topics":["deb","docker","ruby","ubuntu"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/adamvduke.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":"2016-01-09T06:10:38.000Z","updated_at":"2017-04-18T18:28:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"40ff1ccf-4102-461d-a53b-7a44d8a9486d","html_url":"https://github.com/adamvduke/docker-ruby-build","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/adamvduke%2Fdocker-ruby-build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamvduke%2Fdocker-ruby-build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamvduke%2Fdocker-ruby-build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamvduke%2Fdocker-ruby-build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adamvduke","download_url":"https://codeload.github.com/adamvduke/docker-ruby-build/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241956005,"owners_count":20048561,"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":["deb","docker","ruby","ubuntu"],"created_at":"2024-10-11T20:27:48.407Z","updated_at":"2025-12-04T06:01:44.490Z","avatar_url":"https://github.com/adamvduke.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"build ruby debs in a docker container\n\n1. Make sure to update build.sh to add/remove the correct `--conflicts` and `--replaces` lines.\n1. Set the `RUBY_PKG_ITERATION` and `RUBY_PKG_MAINTAINER` environment variables for your build.\n1. Build the container(s) for the ubuntu release you want the ruby package to be build on.\n\n```\n# build the containers\ndocker build -t adamvduke/docker-ruby-build:precise -f Dockerfile.precise .\ndocker build -t adamvduke/docker-ruby-build:trusty -f Dockerfile.trusty .\n\n# build the default 2.3.0 ruby and output the debs\ndocker run -it --rm -v /path/to/host/output/directory:/tmp/ruby-build/dist adamvduke/docker-ruby-build:precise\ndocker run -it --rm -v /path/to/host/output/directory:/tmp/ruby-build/dist adamvduke/docker-ruby-build:trusty\n\n# override the environment variables to build ruby 2.2.2 and outut the debs\ndocker run -it --rm -v /path/to/host/output/directory:/tmp/ruby-build/dist \\\n-e \"RUBY_PKG_VERSION=2.2\" \\\n-e \"RUBY_VERSION=2.2.2\" \\\nadamvduke/docker-ruby-build:precise\n\ndocker run -it --rm -v /path/to/host/output/directory:/tmp/ruby-build/dist \\\n-e \"RUBY_PKG_VERSION=2.2\" \\\n-e \"RUBY_VERSION=2.2.2\" \\\nadamvduke/docker-ruby-build:trusty\n\n# use dpkg --info to inspect the package that you built and make sure it looks correct\ndocker run -it --rm -v ~/tmp/precise/dist:/tmp/ruby-build/dist adamvduke/docker-ruby-build:precise bash\nroot@4ca002d5435b:/# dpkg --info /tmp/ruby-build/dist/ruby2.3_2.3.0-2_amd64.deb\n new debian package, version 2.0.\n size 32744464 bytes: control archive= 36418 bytes.\n     559 bytes,    15 lines      control\n  106372 bytes,  1244 lines      md5sums\n Package: ruby2.3\n Version: 2.3.0-2\n License: 2-clause BSDL\n Vendor: ruby\n Architecture: amd64\n Maintainer: adamduke@twitter.com\n Installed-Size: 114330\n Depends: libc6 (\u003e= 2.6), libffi6 (\u003e= 3.0.10), libgdbm3 (\u003e= 1.8.3), libncurses5 (\u003e= 5.7), libreadline6 (\u003e= 6.1), libssl1.0.0 (\u003e= 1.0.0), libstdc++6 (\u003e= 4.4.3), libyaml-0-2 (\u003e= 0.1.3), zlib1g (\u003e= 1:1.2.2)\n Conflicts: ruby1.9.1, ruby1.9.3, ruby2.1\n Provides: ruby, ruby-interpreter\n Replaces: ruby1.9.1, ruby1.9.3, ruby2.1\n Section: default\n Priority: extra\n Homepage: https://ruby-lang.org\n Description: Ruby 2.3.0 stable\n\ndocker run -it --rm -v ~/tmp/trusty/dist:/tmp/ruby-build/dist adamvduke/docker-ruby-build:trusty bash\nroot@74d487e05ac5:/# dpkg --info /tmp/ruby-build/dist/ruby2.3_2.3.0-2_amd64.deb\n new debian package, version 2.0.\n size 30693586 bytes: control archive=36422 bytes.\n     559 bytes,    15 lines      control\n  106372 bytes,  1244 lines      md5sums\n Package: ruby2.3\n Version: 2.3.0-2\n License: 2-clause BSDL\n Vendor: ruby\n Architecture: amd64\n Maintainer: adamduke@twitter.com\n Installed-Size: 102406\n Depends: libc6 (\u003e= 2.6), libffi6 (\u003e= 3.0.10), libgdbm3 (\u003e= 1.8.3), libncurses5 (\u003e= 5.7), libreadline6 (\u003e= 6.1), libssl1.0.0 (\u003e= 1.0.0), libstdc++6 (\u003e= 4.4.3), libyaml-0-2 (\u003e= 0.1.3), zlib1g (\u003e= 1:1.2.2)\n Conflicts: ruby1.9.1, ruby1.9.3, ruby2.1\n Provides: ruby, ruby-interpreter\n Replaces: ruby1.9.1, ruby1.9.3, ruby2.1\n Section: default\n Priority: extra\n Homepage: https://ruby-lang.org\n Description: Ruby 2.3.0 stable\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamvduke%2Fdocker-ruby-build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadamvduke%2Fdocker-ruby-build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamvduke%2Fdocker-ruby-build/lists"}