Provides a Ruby focused Alpine Docker image with current tooling for development purposes. Great for local development and/or continuous integration builds using the most up-to-date tooling.
Features
-
Uses the Docker Alpine Base image.
-
Installs jemalloc.
-
Updates RubyGems.
Requirements
Setup
To set up the project, run:
git clone https://github.com/bkuhlmann/docker-alpine-ruby.git
cd docker-alpine-ruby
git checkout 5.13.0
Usage
All versions of this image can be found on Docker Hub. The image can be pulled as follows:
docker pull bkuhlmann/alpine-ruby:latest # <= Pull latest version.
docker pull bkuhlmann/alpine-ruby:5.13.0 # <= Pull specific version.
You can also build on top of this image via your Dockerfile:
FROM bkuhlmann/alpine-ruby:latest # <= Latest version.
FROM bkuhlmann/alpine-ruby:5.13.0 # <= Specific version.
Development
To contribute, run:
git clone https://github.com/bkuhlmann/docker-alpine-ruby.git
cd docker-alpine-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.