Go to file
2024-12-03 13:55:02 +00:00
_constraints [info=eb5dd6b7a533ac721b8e46f8757ef73d] 2024-09-12 10:47:40 +00:00
_service [info=bffce313cdcccbd68bfa42980c1ca4ba] 2024-12-03 13:55:02 +00:00
.gitattributes [info=eb5dd6b7a533ac721b8e46f8757ef73d] 2024-09-12 10:47:40 +00:00
.gitignore [info=eb5dd6b7a533ac721b8e46f8757ef73d] 2024-09-12 10:47:40 +00:00
Dockerfile [info=568dc54b6a76bfab4df0e592b4b425b9] 2024-10-30 15:43:16 +00:00
README.md [info=eb5dd6b7a533ac721b8e46f8757ef73d] 2024-09-12 10:47:40 +00:00
ruby-3.3-image.changes [info=bffce313cdcccbd68bfa42980c1ca4ba] 2024-12-03 13:55:02 +00:00

Ruby 3.3 Container Image

Redistributable

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.opensuse.org/opensuse/bci/ruby:3.3

# 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.opensuse.org/opensuse/bci/ruby:3.3 bundle lock

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

$ podman run --rm -v "$PWD":/app:Z -w /app registry.opensuse.org/opensuse/bci/ruby:3.3 ruby script.rb

Encoding

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

Additional tools

In addition to the standard SLE BCI development packages the following additional tools are included in the image:

  • gcc-c++
  • make
  • sqlite3-devel
  • timezone

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 openSUSE Tumbleweed.