You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 2.5/README.md
+14-10Lines changed: 14 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,10 @@
1
1
Ruby 2.5 container image
2
2
========================
3
3
This container image includes Ruby 2.5 as a [S2I](https://github.com/openshift/source-to-image) base image for your Ruby 2.5 applications.
4
-
Only the RHEL8 based builder image is available.
5
-
The RHEL images are available in the [Red Hat Container Catalog](https://access.redhat.com/containers/).
4
+
Users can choose between RHEL, CentOS Stream and Fedora based builder images.
5
+
The RHEL images are available in the [Red Hat Container Catalog](https://access.redhat.com/containers/),
6
+
the CentOS Stream images are available on [Quay.io](https://quay.io/organization/sclorg),
7
+
and the Fedora images are available in [Quay.io](https://quay.io/organization/fedora).
6
8
The resulting image can be run using [podman](https://github.com/containers/libpod).
7
9
8
10
Note: while the examples in this README are calling `podman`, you can replace any such calls by `docker` with the same arguments
@@ -16,7 +18,7 @@ Ruby is the interpreted scripting language for quick and easy object-oriented pr
16
18
It has many features to process text files and to do system management tasks (as in Perl).
17
19
It is simple, straight-forward, and extensible.
18
20
19
-
This container image includes a npm utility, so users can use it to install JavaScript
21
+
This container image includes an npm utility, so users can use it to install JavaScript
20
22
modules for their web applications. There is no guarantee for any specific npm or nodejs
21
23
version, that is included in the image; those versions can be changed anytime and
22
24
the nodejs itself is included just to make the npm work.
@@ -25,7 +27,7 @@ See [the Red Hat Enterprise Linux Application Streams Life Cycle page](https://a
25
27
26
28
Usage in Openshift
27
29
------------------
28
-
For this, we will assume that you are using the `ubi8/ruby-25 image`, available via `ruby:2.5` imagestream tag in Openshift.
30
+
For this, we will assume that you are using the `registry.access.redhat.com/ubi8/ruby-25` image, available via `ruby:2.5` imagestream tag in Openshift.
29
31
Building a simple [ruby-sample-app](https://github.com/sclorg/s2i-ruby-container/tree/master/2.5/test/puma-test-app) application
30
32
in Openshift can be achieved with the following step:
This image supports the [Source-to-Image](https://docs.openshift.com/container-platform/4.14/openshift_images/create-images.html#images-create-s2i_create-images)
46
+
This image supports the [Source-to-Image](https://docs.openshift.com/container-platform/4.4/builds/build-strategies.html#images-create-s2i_build-strategies)
45
47
(S2I) strategy in OpenShift. The Source-to-Image is an OpenShift framework
46
48
which makes it easy to write images that take application source code as
47
49
an input, use a builder image like this Ruby container image, and produce
@@ -64,10 +66,10 @@ To use the Ruby image in a Dockerfile, follow these steps:
An RHEL8 image `ubi8/ruby-25` is used in this example.
72
+
The `registry.access.redhat.com/ubi8/ruby-25` container image is used in this example.
71
73
72
74
#### 2. Pull and application code
73
75
@@ -89,7 +91,7 @@ For all these three parts, users can use the Source-to-Image scripts inside the
89
91
90
92
##### 3.1 To use the Source-to-Image scripts and build an image using a Dockerfile, create a Dockerfile with this content:
91
93
```
92
-
FROM ubi8/ruby-25
94
+
FROM registry.access.redhat.com/ubi8/ruby-25
93
95
94
96
# Add application sources to a directory that the assemble scriptexpects them
95
97
# and set permissions so that the container runs without root access
@@ -110,7 +112,7 @@ CMD /usr/libexec/s2i/run
110
112
The s2i scripts are used to set-up and run common Ruby applications. More information about the scripts can be found in [Source-to-Image](#source-to-image-framework-and-scripts) section.
111
113
##### 3.2 To use your own setup, create a Dockerfile with this content:
112
114
```
113
-
FROM ubi8/ruby-25
115
+
FROM registry.access.redhat.com/ubi8/ruby-25
114
116
115
117
USER 0
116
118
ADD app-src ./
@@ -225,4 +227,6 @@ See also
225
227
--------
226
228
Dockerfile and other sources are available on https://github.com/sclorg/s2i-ruby-container.
227
229
In that repository you also can find another versions of Ruby environment Dockerfiles.
228
-
The Dockerfile for RHEL8 is called `Dockerfile.rhel8`.
230
+
Dockerfile for RHEL8 is called `Dockerfile.rhel8`, for RHEL9 it's `Dockerfile.rhel9`,
231
+
for CentOS Stream 9 it's `Dockerfile.c9s`, for CentOS Stream 10 it's `Dockerfile.c10s`,
232
+
and the Fedora Dockerfile is called `Dockerfile.fedora`.
0 commit comments