{"id":15681720,"url":"https://github.com/binaryphile/docker-ruby","last_synced_at":"2025-05-07T12:43:01.833Z","repository":{"id":143324948,"uuid":"13622152","full_name":"binaryphile/docker-ruby","owner":"binaryphile","description":"General-purpose Ruby Docker image creation","archived":false,"fork":false,"pushed_at":"2014-06-06T19:47:12.000Z","size":190,"stargazers_count":10,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T10:11:12.029Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/binaryphile.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-16T14:57:22.000Z","updated_at":"2019-08-13T15:28:21.000Z","dependencies_parsed_at":"2023-03-17T18:30:18.120Z","dependency_job_id":null,"html_url":"https://github.com/binaryphile/docker-ruby","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/binaryphile%2Fdocker-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binaryphile%2Fdocker-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binaryphile%2Fdocker-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binaryphile%2Fdocker-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binaryphile","download_url":"https://codeload.github.com/binaryphile/docker-ruby/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252880116,"owners_count":21818936,"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":[],"created_at":"2024-10-03T16:59:09.482Z","updated_at":"2025-05-07T12:43:01.810Z","avatar_url":"https://github.com/binaryphile.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# General-purpose Ruby Docker Image\n\n**NOTICE:** due to the heartbleed bug, I've updated the 2.0.0-p247 image\nto the latest Ubuntu 12.04, as of June 6, 2014.  If you were using the\nold one, I strongly suggest you update your image to the new tag,\n`binaryphile/ruby:2.0.0-p247-hb`.  These files and associated images are\nprovided AS-IS under the terms in the included file `LICENSE.txt`.\n\n### Description\n\nCreates a Docker image with Ruby, rubygems and bundler.\n\nBefore you go building 2.0.0-p247, you can already use my image by\nrunning:\n\n    docker pull binaryphile/ruby:2.0.0-p247-hb\n\n**New**: MRI 2.1.2 is also now available as `binaryphile/ruby:2.1.2`.\nEnjoy.\n\nAlso, if you want to know where the Dockerfile is, there isn't one.\n`dockerfile.sh` is a shell script which performs the steps that a\nDockerfile would, which is why it is named that way.\n\nThe image is meant to be reusable, so you should only need to build a\nnew image if you need a version of ruby other than 2.0.0-p247, otherwise\nyou should just use mine.\n\n### Usage\n\n- Copy `sample.env` to `.env`\n- Edit `.env` and set:\n  - **RUBY_VERSION**: the version of Ruby you want to install, as\n  ruby-install would refer to it.  Only specify a patch level if you\n  need something other than the latest released version, e.g.\n  2.0.0-p247.  New minor revisions of Ruby generally do not include the\n  patch level in the download name and so can't include the patch level\n  here.\n  - **RI_VERSION**: the version of [ruby-install] to use\n- (optional) if you have a preferred ubuntu mirror, you can change the\nline in `.env` which refers to \"ubuntu.wikimedia.org\"\n- run `./dockerfile.sh` and wait for it to finish\n- determine the id of the finished container with `docker ps -l` (use\nsudo if need be)\n- (optional) commit the image: `docker commit [id]\n[your-index-name]/[your-repo-name][:optional tag]`\n- (optional) push your image: `docker push\n[your-index-name]/[your-repo-name]`\n\n### Troubleshooting\n\nYou can uncomment the \"CMD=/bin/bash\" line in `.env` to make\n`dockerfile.sh` give you an interactive shell inside the container prior\nto running `install.sh`.\n\n### Contents\n\nThe resulting image will contain a ruby interpreter installed in\n`/usr/local` that will be on your regular path, so you'll have access to\nruby, gem, etc.  If you are running bundler as a regular user, you'll\nwant to pass it the `--path [pathname]` option to tell it not to use the\nsystem gems, since they'll fail when running as a regular user.\n\n[ruby-install]: https://github.com/postmodern/ruby-install\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinaryphile%2Fdocker-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinaryphile%2Fdocker-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinaryphile%2Fdocker-ruby/lists"}