SLE BCI Ruby 2.5

Ruby 2.5 container based on the SLE Base Container Image.

Get Image
Digest:
sha256:d4377a00a7abdfe0a8a3017d8f5dc3bcaf3b6918d852efd0f2d67eed56a42248
d4377a00a
Repository:
registry.suse.com/bci/ruby:latest

Ruby 2.5 Container Image

Redistributable SLSA Provenance: Available

Description

Ruby is a dynamic, reflective, object-oriented, general-purpose, open-source programming language. It supports multiple programming paradigms, including functional, object-oriented, and imperative. It also has a dynamic type system and automatic memory management.

Usage

To deploy an application, install dependencies, copy the sources, and configure the application's main script:

FROM registry.suse.com/bci/ruby:2.5

# displays an error message if Gemfile and Gemfile.lock are not in sync
RUN bundle config --global frozen 1

WORKDIR /app

COPY Gemfile Gemfile.lock ./
RUN bundle install

COPY . .

CMD [ "ruby", "./main-script.rb" ]

Build and run the container image:

$ podman build -t my-ruby-app .
$ podman run -it --rm my-ruby-app

The example above assumes that there is a Gemfile.lock file in the application directory. To generate a Gemfile.lock file, use the following command:

$ podman run --rm -v "$PWD":/app:Z -w /app registry.suse.com/bci/ruby:2.5 bundle lock

To run a single script inside a container, use the following command:

$ podman run --rm -v "$PWD":/app:Z -w /app registry.suse.com/bci/ruby:2.5 ruby script.rb

Encoding

The Ruby image sets the locale environment variable LANG to C.UTF-8.

Additional tools

The following additional tools are included in the image:

  • curl
  • gawk
  • gcc-c++
  • git-core
  • make
  • sqlite3-devel
  • timezone
  • util-linux

Licensing

SPDX-License-Identifier: MIT

This documentation and the build recipe are licensed as MIT. The container itself contains various software components under various open source licenses listed in the associated Software Bill of Materials (SBOM).

This image is based on SLE BCI, a stable and redistributable foundation for software innovation. SLE BCI is enterprise-ready, and it comes with an option for support.

See the SLE BCI EULA for further information.

  • Image Data

    Last Built: 13 Jun 15:51 UTC

    Size: 146.3 MB

    Support Level: L3


  • Health Index
    A

    No vulnerabilities found

    Last Scan:

    about 14 hours ago