Skip to content

Commit e51f669

Browse files
committed
temp: re-add c9s and their excludes.
While it doesnt seem we ever shipped for C9S, existance of at least one Dockerfile seems to be assumed for the distro column to exist and for the CI checks to not complain. Further decision on PR, but this commit should NEVER reach main branch.
1 parent 6b54ac3 commit e51f669

6 files changed

Lines changed: 152 additions & 0 deletions

File tree

3.0/.exclude-c9s

Whitespace-only changes.

3.0/Dockerfile.c9s

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# This image provides a Ruby environment you can use to run your Ruby
2+
# applications.
3+
FROM quay.io/sclorg/s2i-base-c9s:c9s
4+
5+
EXPOSE 8080
6+
7+
ENV RUBY_VERSION="3.0"
8+
9+
ENV RUBY_SCL="ruby-30" \
10+
IMAGE_NAME="sclorg/ruby-30-c9s" \
11+
SUMMARY="Platform for building and running Ruby 3.0 applications." \
12+
DESCRIPTION="Ruby 3.0 available as container is a base platform for \
13+
building and running various Ruby 3.0 applications and frameworks. \
14+
Ruby is the interpreted scripting language for quick and easy object-oriented programming. \
15+
It has many features to process text files and to do system management tasks (as in Perl). \
16+
It is simple, straight-forward, and extensible."
17+
18+
LABEL summary="$SUMMARY" \
19+
description="$DESCRIPTION" \
20+
io.k8s.description="$DESCRIPTION" \
21+
io.k8s.display-name="Ruby 3.0" \
22+
io.openshift.expose-services="8080:http" \
23+
io.openshift.tags="builder,ruby,ruby30,ruby-30" \
24+
com.redhat.component="ruby-30-container" \
25+
name="sclorg/ruby-30-c9s" \
26+
version="1" \
27+
usage="s2i build https://github.com/sclorg/s2i-ruby-container.git \
28+
--context-dir=${RUBY_VERSION}/test/puma-test-app/ ${IMAGE_NAME} ruby-sample-app" \
29+
maintainer="SoftwareCollections.org <sclorg@redhat.com>"
30+
31+
RUN INSTALL_PKGS="ruby ruby-devel rubygem-rake rubygem-bundler redhat-rpm-config libffi-devel" && \
32+
dnf install -y --setopt=tsflags=nodocs ${INSTALL_PKGS} && \
33+
dnf -y clean all --enablerepo='*' && \
34+
ruby -v | grep -qe "^ruby $RUBY_VERSION\." && echo "Found VERSION $RUBY_VERSION" && \
35+
rpm -V ${INSTALL_PKGS}
36+
37+
# Copy the S2I scripts from the specific language image to $STI_SCRIPTS_PATH
38+
COPY ./s2i/bin/ $STI_SCRIPTS_PATH
39+
40+
# Copy extra files to the image.
41+
COPY ./root/ /
42+
43+
# Drop the root user and make the content of /opt/app-root owned by user 1001
44+
RUN chown -R 1001:0 ${APP_ROOT} && chmod -R ug+rwx ${APP_ROOT} && \
45+
rpm-file-permissions
46+
47+
USER 1001
48+
49+
# Set the default CMD to print the usage of the language image
50+
CMD $STI_SCRIPTS_PATH/usage

3.3/.exclude-c9s

Whitespace-only changes.

3.3/Dockerfile.c9s

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# This image provides a Ruby environment you can use to run your Ruby
2+
# applications.
3+
FROM quay.io/sclorg/s2i-base-c9s:c9s
4+
5+
EXPOSE 8080
6+
7+
ENV RUBY_VERSION="3.3"
8+
9+
ENV RUBY_SCL="ruby-33" \
10+
IMAGE_NAME="sclorg/ruby-33-c9s" \
11+
SUMMARY="Platform for building and running Ruby 3.3 applications." \
12+
DESCRIPTION="Ruby 3.3 available as container is a base platform for \
13+
building and running various Ruby 3.3 applications and frameworks. \
14+
Ruby is the interpreted scripting language for quick and easy object-oriented programming. \
15+
It has many features to process text files and to do system management tasks (as in Perl). \
16+
It is simple, straight-forward, and extensible."
17+
18+
LABEL summary="$SUMMARY" \
19+
description="$DESCRIPTION" \
20+
io.k8s.description="$DESCRIPTION" \
21+
io.k8s.display-name="Ruby 3.3" \
22+
io.openshift.expose-services="8080:http" \
23+
io.openshift.tags="builder,ruby,ruby33,ruby-33" \
24+
com.redhat.component="ruby-33-container" \
25+
name="sclorg/ruby-33-c9s" \
26+
version="1" \
27+
usage="s2i build https://github.com/sclorg/s2i-ruby-container.git \
28+
--context-dir=${RUBY_VERSION}/test/puma-test-app/ ${IMAGE_NAME} ruby-sample-app" \
29+
maintainer="SoftwareCollections.org <sclorg@redhat.com>"
30+
31+
RUN INSTALL_PKGS="ruby ruby-devel rubygem-rake rubygem-bundler ruby-bundled-gems redhat-rpm-config libffi-devel" && \
32+
dnf module enable -y ruby:3.3 && \
33+
dnf install -y --setopt=tsflags=nodocs ${INSTALL_PKGS} && \
34+
dnf -y clean all --enablerepo='*' && \
35+
ruby -v | grep -qe "^ruby $RUBY_VERSION\." && echo "Found VERSION $RUBY_VERSION" && \
36+
rpm -V ${INSTALL_PKGS}
37+
38+
# Copy the S2I scripts from the specific language image to $STI_SCRIPTS_PATH
39+
COPY ./s2i/bin/ $STI_SCRIPTS_PATH
40+
41+
# Copy extra files to the image.
42+
COPY ./root/ /
43+
44+
# Drop the root user and make the content of /opt/app-root owned by user 1001
45+
RUN chown -R 1001:0 ${APP_ROOT} && chmod -R ug+rwx ${APP_ROOT} && \
46+
rpm-file-permissions
47+
48+
USER 1001
49+
50+
# Set the default CMD to print the usage of the language image
51+
CMD $STI_SCRIPTS_PATH/usage

4.0/.exclude-c9s

Whitespace-only changes.

4.0/Dockerfile.c9s

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# This image provides a Ruby environment you can use to run your Ruby
2+
# applications.
3+
FROM quay.io/sclorg/s2i-base-c9s:c9s
4+
5+
EXPOSE 8080
6+
7+
ENV RUBY_VERSION="4.0"
8+
9+
ENV RUBY_SCL="ruby-40" \
10+
IMAGE_NAME="sclorg/ruby-40-c9s" \
11+
SUMMARY="Platform for building and running Ruby 4.0 applications." \
12+
DESCRIPTION="Ruby 4.0 available as container is a base platform for \
13+
building and running various Ruby 4.0 applications and frameworks. \
14+
Ruby is the interpreted scripting language for quick and easy object-oriented programming. \
15+
It has many features to process text files and to do system management tasks (as in Perl). \
16+
It is simple, straight-forward, and extensible."
17+
18+
LABEL summary="$SUMMARY" \
19+
description="$DESCRIPTION" \
20+
io.k8s.description="$DESCRIPTION" \
21+
io.k8s.display-name="Ruby 4.0" \
22+
io.openshift.expose-services="8080:http" \
23+
io.openshift.tags="builder,ruby,ruby40,ruby-40" \
24+
com.redhat.component="ruby-40-container" \
25+
name="sclorg/ruby-40-c9s" \
26+
version="1" \
27+
usage="s2i build https://github.com/sclorg/s2i-ruby-container.git \
28+
--context-dir=${RUBY_VERSION}/test/puma-test-app/ ${IMAGE_NAME} ruby-sample-app" \
29+
maintainer="SoftwareCollections.org <sclorg@redhat.com>"
30+
31+
RUN INSTALL_PKGS="ruby ruby-devel rubygem-rake rubygem-bundler ruby-bundled-gems redhat-rpm-config libffi-devel" && \
32+
dnf module enable -y ruby:4.0 && \
33+
dnf install -y --setopt=tsflags=nodocs ${INSTALL_PKGS} && \
34+
dnf -y clean all --enablerepo='*' && \
35+
ruby -v | grep -qe "^ruby $RUBY_VERSION\." && echo "Found VERSION $RUBY_VERSION" && \
36+
rpm -V ${INSTALL_PKGS}
37+
38+
# Copy the S2I scripts from the specific language image to $STI_SCRIPTS_PATH
39+
COPY ./s2i/bin/ $STI_SCRIPTS_PATH
40+
41+
# Copy extra files to the image.
42+
COPY ./root/ /
43+
44+
# Drop the root user and make the content of /opt/app-root owned by user 1001
45+
RUN chown -R 1001:0 ${APP_ROOT} && chmod -R ug+rwx ${APP_ROOT} && \
46+
rpm-file-permissions
47+
48+
USER 1001
49+
50+
# Set the default CMD to print the usage of the language image
51+
CMD $STI_SCRIPTS_PATH/usage

0 commit comments

Comments
 (0)