-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Ruby 3.3 #507
Merged
Merged
Add Ruby 3.3 #507
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
FROM quay.io/sclorg/s2i-base-c8s:c8s | ||
|
||
# This image provides a Ruby environment you can use to run your Ruby | ||
# applications. | ||
|
||
EXPOSE 8080 | ||
|
||
ENV RUBY_MAJOR_VERSION=3 \ | ||
RUBY_MINOR_VERSION=3 | ||
|
||
ENV RUBY_VERSION="${RUBY_MAJOR_VERSION}.${RUBY_MINOR_VERSION}" \ | ||
RUBY_SCL_NAME_VERSION="${RUBY_MAJOR_VERSION}${RUBY_MINOR_VERSION}" | ||
|
||
ENV RUBY_SCL="ruby-${RUBY_SCL_NAME_VERSION}" \ | ||
IMAGE_NAME="ubi8/ruby-${RUBY_SCL_NAME_VERSION}" \ | ||
SUMMARY="Platform for building and running Ruby $RUBY_VERSION applications" \ | ||
DESCRIPTION="Ruby $RUBY_VERSION available as container is a base platform for \ | ||
building and running various Ruby $RUBY_VERSION applications and frameworks. \ | ||
Ruby is the interpreted scripting language for quick and easy object-oriented programming. \ | ||
It has many features to process text files and to do system management tasks (as in Perl). \ | ||
It is simple, straight-forward, and extensible." | ||
|
||
LABEL summary="$SUMMARY" \ | ||
description="$DESCRIPTION" \ | ||
io.k8s.description="$DESCRIPTION" \ | ||
io.k8s.display-name="Ruby ${RUBY_VERSION}" \ | ||
io.openshift.expose-services="8080:http" \ | ||
io.openshift.tags="builder,ruby,ruby${RUBY_SCL_NAME_VERSION},${RUBY_SCL}" \ | ||
com.redhat.component="${RUBY_SCL}-container" \ | ||
name="${IMAGE_NAME}" \ | ||
version="1" \ | ||
com.redhat.license_terms="https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI" \ | ||
usage="s2i build https://github.com/sclorg/s2i-ruby-container.git \ | ||
--context-dir=${RUBY_VERSION}/test/puma-test-app/ ${IMAGE_NAME} ruby-sample-app" \ | ||
maintainer="SoftwareCollections.org <[email protected]>" | ||
|
||
RUN yum -y module enable ruby:$RUBY_VERSION && \ | ||
INSTALL_PKGS=" \ | ||
libffi-devel \ | ||
ruby \ | ||
ruby-devel \ | ||
rubygem-rake \ | ||
rubygem-bundler \ | ||
ruby-bundled-gems \ | ||
redhat-rpm-config \ | ||
" && \ | ||
yum install -y --setopt=tsflags=nodocs ${INSTALL_PKGS} && \ | ||
yum reinstall -y --setopt=tsflags=nodocs tzdata && \ | ||
yum -y clean all --enablerepo='*' && \ | ||
ruby -v | grep -qe "^ruby $RUBY_VERSION\." && echo "Found VERSION $RUBY_VERSION" && \ | ||
rpm -V ${INSTALL_PKGS} | ||
|
||
# Copy the S2I scripts from the specific language image to $STI_SCRIPTS_PATH | ||
COPY ./s2i/bin/ $STI_SCRIPTS_PATH | ||
|
||
# Copy extra files to the image. | ||
COPY ./root/ / | ||
|
||
# Drop the root user and make the content of /opt/app-root owned by user 1001 | ||
RUN chown -R 1001:0 ${APP_ROOT} && chmod -R ug+rwx ${APP_ROOT} && \ | ||
rpm-file-permissions | ||
|
||
USER 1001 | ||
|
||
# Set the default CMD to print the usage of the language image | ||
CMD $STI_SCRIPTS_PATH/usage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
FROM quay.io/sclorg/s2i-base-c9s:c9s | ||
|
||
# This image provides a Ruby environment you can use to run your Ruby | ||
# applications. | ||
|
||
EXPOSE 8080 | ||
|
||
ENV RUBY_MAJOR_VERSION=3 \ | ||
RUBY_MINOR_VERSION=3 | ||
|
||
ENV RUBY_VERSION="${RUBY_MAJOR_VERSION}.${RUBY_MINOR_VERSION}" \ | ||
RUBY_SCL_NAME_VERSION="${RUBY_MAJOR_VERSION}${RUBY_MINOR_VERSION}" | ||
|
||
ENV RUBY_SCL="ruby-${RUBY_SCL_NAME_VERSION}" \ | ||
IMAGE_NAME="ubi8/ruby-${RUBY_SCL_NAME_VERSION}" \ | ||
SUMMARY="Platform for building and running Ruby $RUBY_VERSION applications" \ | ||
DESCRIPTION="Ruby $RUBY_VERSION available as container is a base platform for \ | ||
building and running various Ruby $RUBY_VERSION applications and frameworks. \ | ||
Ruby is the interpreted scripting language for quick and easy object-oriented programming. \ | ||
It has many features to process text files and to do system management tasks (as in Perl). \ | ||
It is simple, straight-forward, and extensible." | ||
|
||
LABEL summary="$SUMMARY" \ | ||
description="$DESCRIPTION" \ | ||
io.k8s.description="$DESCRIPTION" \ | ||
io.k8s.display-name="Ruby ${RUBY_VERSION}" \ | ||
io.openshift.expose-services="8080:http" \ | ||
io.openshift.tags="builder,ruby,ruby${RUBY_SCL_NAME_VERSION},${RUBY_SCL}" \ | ||
com.redhat.component="${RUBY_SCL}-container" \ | ||
name="${IMAGE_NAME}" \ | ||
version="1" \ | ||
com.redhat.license_terms="https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI" \ | ||
usage="s2i build https://github.com/sclorg/s2i-ruby-container.git \ | ||
--context-dir=${RUBY_VERSION}/test/puma-test-app/ ${IMAGE_NAME} ruby-sample-app" \ | ||
maintainer="SoftwareCollections.org <[email protected]>" | ||
|
||
RUN yum -y module enable ruby:$RUBY_VERSION && \ | ||
INSTALL_PKGS=" \ | ||
libffi-devel \ | ||
ruby \ | ||
ruby-devel \ | ||
rubygem-rake \ | ||
rubygem-bundler \ | ||
ruby-bundled-gems \ | ||
redhat-rpm-config \ | ||
" && \ | ||
yum install -y --setopt=tsflags=nodocs ${INSTALL_PKGS} && \ | ||
yum reinstall -y --setopt=tsflags=nodocs tzdata && \ | ||
yum -y clean all --enablerepo='*' && \ | ||
ruby -v | grep -qe "^ruby $RUBY_VERSION\." && echo "Found VERSION $RUBY_VERSION" && \ | ||
rpm -V ${INSTALL_PKGS} | ||
|
||
# Copy the S2I scripts from the specific language image to $STI_SCRIPTS_PATH | ||
COPY ./s2i/bin/ $STI_SCRIPTS_PATH | ||
|
||
# Copy extra files to the image. | ||
COPY ./root/ / | ||
|
||
# Drop the root user and make the content of /opt/app-root owned by user 1001 | ||
RUN chown -R 1001:0 ${APP_ROOT} && chmod -R ug+rwx ${APP_ROOT} && \ | ||
rpm-file-permissions | ||
|
||
USER 1001 | ||
|
||
# Set the default CMD to print the usage of the language image | ||
CMD $STI_SCRIPTS_PATH/usage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
FROM quay.io/fedora/s2i-base:40 | ||
|
||
# This image provides a Ruby environment you can use to run your Ruby | ||
# applications. | ||
|
||
EXPOSE 8080 | ||
|
||
ENV NAME=ruby \ | ||
RUBY_VERSION=3.3 \ | ||
RUBY_SHORT_VER=33 \ | ||
VERSION=0 | ||
|
||
ENV SUMMARY="Platform for building and running Ruby $RUBY_VERSION applications" \ | ||
DESCRIPTION="Ruby $RUBY_VERSION available as container is a base platform for \ | ||
building and running various Ruby $RUBY_VERSION applications and frameworks. \ | ||
Ruby is the interpreted scripting language for quick and easy object-oriented programming. \ | ||
It has many features to process text files and to do system management tasks (as in Perl). \ | ||
It is simple, straight-forward, and extensible." | ||
|
||
LABEL summary="$SUMMARY" \ | ||
description="$DESCRIPTION" \ | ||
io.k8s.description="$DESCRIPTION" \ | ||
io.k8s.display-name="Ruby ${RUBY_VERSION}" \ | ||
io.openshift.expose-services="8080:http" \ | ||
io.openshift.tags="builder,ruby,ruby${RUBY_SHORT_VER}" \ | ||
com.redhat.component="$NAME" \ | ||
name="fedora/$NAME-$RUBY_SHORT_VER" \ | ||
version="$VERSION" \ | ||
usage="s2i build https://github.com/sclorg/s2i-ruby-container.git --context-dir=${RUBY_VERSION}/test/puma-test-app/ quay.io/fedora/$NAME-$RUBY_SHORT_VER ruby-sample-app" \ | ||
maintainer="SoftwareCollections.org <[email protected]>" | ||
|
||
# Install required packages | ||
RUN INSTALL_PKGS="ruby ruby-devel rubygem-bundler ruby-bundled-gems rubygem-rake rubygems-devel redhat-rpm-config libffi-devel" && \ | ||
dnf install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \ | ||
rpm -V $INSTALL_PKGS && \ | ||
ruby -v | grep -qe "^ruby $RUBY_VERSION\." && echo "Found VERSION $RUBY_VERSION" && \ | ||
dnf clean all | ||
|
||
# Copy the S2I scripts from the specific language image to $STI_SCRIPTS_PATH | ||
COPY ./s2i/bin/ $STI_SCRIPTS_PATH | ||
|
||
# Copy extra files to the image. | ||
COPY ./root/ / | ||
|
||
# Drop the root user and make the content of /opt/app-root owned by user 1001 | ||
RUN chown -R 1001:0 ${APP_ROOT} && chmod -R ug+rwx ${APP_ROOT} && \ | ||
rpm-file-permissions | ||
|
||
USER 1001 | ||
|
||
# Set the default CMD to print the usage of the language image | ||
CMD $STI_SCRIPTS_PATH/usage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
FROM ubi8/s2i-base | ||
|
||
# This image provides a Ruby environment you can use to run your Ruby | ||
# applications. | ||
|
||
EXPOSE 8080 | ||
|
||
ENV RUBY_MAJOR_VERSION=3 \ | ||
RUBY_MINOR_VERSION=3 | ||
|
||
ENV RUBY_VERSION="${RUBY_MAJOR_VERSION}.${RUBY_MINOR_VERSION}" \ | ||
RUBY_SCL_NAME_VERSION="${RUBY_MAJOR_VERSION}${RUBY_MINOR_VERSION}" | ||
|
||
ENV RUBY_SCL="ruby-${RUBY_SCL_NAME_VERSION}" \ | ||
IMAGE_NAME="ubi8/ruby-${RUBY_SCL_NAME_VERSION}" \ | ||
SUMMARY="Platform for building and running Ruby $RUBY_VERSION applications" \ | ||
DESCRIPTION="Ruby $RUBY_VERSION available as container is a base platform for \ | ||
building and running various Ruby $RUBY_VERSION applications and frameworks. \ | ||
Ruby is the interpreted scripting language for quick and easy object-oriented programming. \ | ||
It has many features to process text files and to do system management tasks (as in Perl). \ | ||
It is simple, straight-forward, and extensible." | ||
|
||
LABEL summary="$SUMMARY" \ | ||
description="$DESCRIPTION" \ | ||
io.k8s.description="$DESCRIPTION" \ | ||
io.k8s.display-name="Ruby ${RUBY_VERSION}" \ | ||
io.openshift.expose-services="8080:http" \ | ||
io.openshift.tags="builder,ruby,ruby${RUBY_SCL_NAME_VERSION},${RUBY_SCL}" \ | ||
com.redhat.component="${RUBY_SCL}-container" \ | ||
name="${IMAGE_NAME}" \ | ||
version="1" \ | ||
com.redhat.license_terms="https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI" \ | ||
usage="s2i build https://github.com/sclorg/s2i-ruby-container.git \ | ||
--context-dir=${RUBY_VERSION}/test/puma-test-app/ ${IMAGE_NAME} ruby-sample-app" \ | ||
maintainer="SoftwareCollections.org <[email protected]>" | ||
|
||
RUN yum -y module enable ruby:$RUBY_VERSION && \ | ||
INSTALL_PKGS=" \ | ||
libffi-devel \ | ||
ruby \ | ||
ruby-devel \ | ||
rubygem-rake \ | ||
rubygem-bundler \ | ||
ruby-bundled-gems \ | ||
redhat-rpm-config \ | ||
" && \ | ||
yum install -y --setopt=tsflags=nodocs ${INSTALL_PKGS} && \ | ||
yum -y clean all --enablerepo='*' && \ | ||
ruby -v | grep -qe "^ruby $RUBY_VERSION\." && echo "Found VERSION $RUBY_VERSION" && \ | ||
rpm -V ${INSTALL_PKGS} | ||
|
||
# Copy the S2I scripts from the specific language image to $STI_SCRIPTS_PATH | ||
COPY ./s2i/bin/ $STI_SCRIPTS_PATH | ||
|
||
# Copy extra files to the image. | ||
COPY ./root/ / | ||
|
||
# Drop the root user and make the content of /opt/app-root owned by user 1001 | ||
RUN chown -R 1001:0 ${APP_ROOT} && chmod -R ug+rwx ${APP_ROOT} && \ | ||
rpm-file-permissions | ||
|
||
USER 1001 | ||
|
||
# Set the default CMD to print the usage of the language image | ||
CMD $STI_SCRIPTS_PATH/usage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
FROM ubi9/s2i-base | ||
|
||
# This image provides a Ruby environment you can use to run your Ruby | ||
# applications. | ||
|
||
EXPOSE 8080 | ||
|
||
ENV RUBY_MAJOR_VERSION=3 \ | ||
RUBY_MINOR_VERSION=3 | ||
|
||
ENV RUBY_VERSION="${RUBY_MAJOR_VERSION}.${RUBY_MINOR_VERSION}" \ | ||
RUBY_SCL_NAME_VERSION="${RUBY_MAJOR_VERSION}${RUBY_MINOR_VERSION}" | ||
|
||
ENV RUBY_SCL="ruby-${RUBY_SCL_NAME_VERSION}" \ | ||
IMAGE_NAME="ubi9/ruby-${RUBY_SCL_NAME_VERSION}" \ | ||
SUMMARY="Platform for building and running Ruby $RUBY_VERSION applications" \ | ||
DESCRIPTION="Ruby $RUBY_VERSION available as container is a base platform for \ | ||
building and running various Ruby $RUBY_VERSION applications and frameworks. \ | ||
Ruby is the interpreted scripting language for quick and easy object-oriented programming. \ | ||
It has many features to process text files and to do system management tasks (as in Perl). \ | ||
It is simple, straight-forward, and extensible." | ||
|
||
LABEL summary="$SUMMARY" \ | ||
description="$DESCRIPTION" \ | ||
io.k8s.description="$DESCRIPTION" \ | ||
io.k8s.display-name="Ruby ${RUBY_VERSION}" \ | ||
io.openshift.expose-services="8080:http" \ | ||
io.openshift.tags="builder,ruby,ruby${RUBY_SCL_NAME_VERSION},${RUBY_SCL}" \ | ||
com.redhat.component="${RUBY_SCL}-container" \ | ||
name="${IMAGE_NAME}" \ | ||
version="1" \ | ||
com.redhat.license_terms="https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI" \ | ||
usage="s2i build https://github.com/sclorg/s2i-ruby-container.git \ | ||
--context-dir=${RUBY_VERSION}/test/puma-test-app/ ${IMAGE_NAME} ruby-sample-app" \ | ||
maintainer="SoftwareCollections.org <[email protected]>" | ||
|
||
RUN yum -y module enable ruby:$RUBY_VERSION && \ | ||
INSTALL_PKGS=" \ | ||
libffi-devel \ | ||
ruby \ | ||
ruby-devel \ | ||
rubygem-rake \ | ||
rubygem-bundler \ | ||
ruby-bundled-gems \ | ||
redhat-rpm-config \ | ||
" && \ | ||
yum install -y --setopt=tsflags=nodocs ${INSTALL_PKGS} && \ | ||
yum -y clean all --enablerepo='*' && \ | ||
ruby -v | grep -qe "^ruby $RUBY_VERSION\." && echo "Found VERSION $RUBY_VERSION" && \ | ||
rpm -V ${INSTALL_PKGS} | ||
|
||
# Copy the S2I scripts from the specific language image to $STI_SCRIPTS_PATH | ||
COPY ./s2i/bin/ $STI_SCRIPTS_PATH | ||
|
||
# Copy extra files to the image. | ||
COPY ./root/ / | ||
|
||
# Drop the root user and make the content of /opt/app-root owned by user 1001 | ||
RUN chown -R 1001:0 ${APP_ROOT} && chmod -R ug+rwx ${APP_ROOT} && \ | ||
rpm-file-permissions | ||
|
||
USER 1001 | ||
|
||
# Set the default CMD to print the usage of the language image | ||
CMD $STI_SCRIPTS_PATH/usage |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please set the VERSION to empty string?
To fix this issue:
#530