Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions 2.4/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# The container includes:
#
# azukiapp/ruby:
# * MRI Ruby 2.4.0
# * Bundler
# * Image Magick
#

FROM azukiapp/node
MAINTAINER Azuki <support@azukiapp.com>

ENV RUBY_MAJOR 2.4
ENV RUBY_VERSION 2.4.1

# Set $PATH so that non-login shells will see the Ruby binaries
ENV PATH $PATH:/opt/rubies/ruby-$RUBY_VERSION/bin

# Install MRI Ruby $RUBY_VERSION
RUN curl -O http://ftp.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.gz && \
tar -zxvf ruby-$RUBY_VERSION.tar.gz && \
cd ruby-$RUBY_VERSION && \
./configure --disable-install-doc && \
make && \
make install && \
cd .. && \
rm -r ruby-$RUBY_VERSION ruby-$RUBY_VERSION.tar.gz && \
echo 'gem: --no-document' > /usr/local/etc/gemrc

# ==============================================================================
# Rubygems and Bundler
# ==============================================================================

ENV RUBYGEMS_MAJOR 2.6
ENV RUBYGEMS_VERSION 2.6.12

# Install rubygems and bundler
ADD http://production.cf.rubygems.org/rubygems/rubygems-$RUBYGEMS_VERSION.tgz /tmp/
RUN cd /tmp && \
tar -zxf /tmp/rubygems-$RUBYGEMS_VERSION.tgz && \
cd /tmp/rubygems-$RUBYGEMS_VERSION && \
ruby setup.rb && \
/bin/bash -l -c 'gem install bundler --no-rdoc --no-ri' && \
echo "gem: --no-ri --no-rdoc" > ~/.gemrc

# Define working directory
WORKDIR /app

# Set bash as a default process
CMD ["bash"]
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
# `adocker` is alias to `azk docker`
all:
# latest
adocker build -t azukiapp/ruby ./2.2
adocker build -t azukiapp/ruby ./2.4

# version tagged
adocker build -t azukiapp/ruby:1.9 ./1.9
adocker build -t azukiapp/ruby:2.0 ./2.0
adocker build -t azukiapp/ruby:2.1 ./2.1
adocker build -t azukiapp/ruby:2.2 ./2.2
adocker build -t azukiapp/ruby:2.3 ./2.3
adocker build -t azukiapp/ruby:2.4 ./2.4

--no-cache:
# latest
adocker build --rm --no-cache -t azukiapp/ruby ./2.3
adocker build --rm --no-cache -t azukiapp/ruby ./2.4

# version tagged
adocker build --rm --no-cache -t azukiapp/ruby:1.9 ./1.9
adocker build --rm --no-cache -t azukiapp/ruby:2.0 ./2.0
adocker build --rm --no-cache -t azukiapp/ruby:2.1 ./2.1
adocker build --rm --no-cache -t azukiapp/ruby:2.2 ./2.2
adocker build --rm --no-cache -t azukiapp/ruby:2.3 ./2.3
adocker build --rm --no-cache -t azukiapp/ruby:2.4 ./2.4
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ Versions (tags)
---

<versions>
- [`latest`, `2`, `2.3`, `2.3.1`](https://github.com/azukiapp/docker-ruby/blob/master/2.3/Dockerfile)
- [`latest`, `2`, `2.4`, `2.4.1`](https://github.com/azukiapp/docker-ruby/blob/master/2.4/Dockerfile)
- [`2.3`, `2.3.1`](https://github.com/azukiapp/docker-ruby/blob/master/2.3/Dockerfile)
- [`2.2`, `2.2.6`](https://github.com/azukiapp/docker-ruby/blob/master/2.2/Dockerfile)
- [`2.2-node12`](https://github.com/azukiapp/docker-ruby/blob/master/2.2-node12/Dockerfile)
- [`2.2.5`](https://github.com/azukiapp/docker-ruby/blob/2.2.5/Dockerfile)
Expand Down Expand Up @@ -88,7 +89,7 @@ systems({
To create the image `azukiapp/ruby`, execute the following command on the docker-ruby folder:

```sh
$ docker build -t azukiapp/ruby 2.3/
$ docker build -t azukiapp/ruby 2.4/
```

To run the image and bind to port 3000:
Expand All @@ -113,4 +114,3 @@ $ docker logs <CONTAINER_ID>
Azuki Dockerfiles distributed under the [Apache License][license].

[license]: ./LICENSE