Provides a Ruby focused Debian Docker image with current tooling for development purposes. Great for local development and/or continuous integration builds using the most up-to-date tooling.
Requirements
Setup
To set up the project, run:
git clone https://github.com/bkuhlmann/docker-debian-ruby.git
cd docker-debian-ruby
git checkout:0.3.0
Usage
All versions of this image can be found on Docker Hub. The image can be pulled as follows:
docker pull bkuhlmann/debian-ruby:latest # <= Pull latest version.
docker pull bkuhlmann/debian-ruby:0.3.0 # <= Pull specific version.
You can also build on top of this image via your Dockerfile:
FROM bkuhlmann/debian-ruby:latest # <= Latest version.
FROM bkuhlmann/debian-ruby:0.3.0 # <= Specific version.
Development
To contribute, run:
git clone https://github.com/bkuhlmann/docker-debian-ruby.git
cd docker-debian-ruby
To build, run:
bin/build
To use the console, run:
bin/console
To deploy the latest version, run:
bin/deploy
To automatically calculate the next logical version and deploy it, run:
bin/deploy p
Versions are calculated and created via the Milestoner gem. Best practice is to deploy both the latest version and next version. Example:
bin/deploy
bin/deploy p
The above will ensure new images are created with the following tags:
-
latest: This is the most recent stable version which may or may not be ahead of the last version released. -
<major>.<minor>.<patch>: This the next logical version as calculated and created by Milestoner.
Tests
To test, run:
bin/console
ruby --version
Credits
-
Built with Rubysmith.
-
Engineered by Brooke Kuhlmann.