-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from essentialkaos/develop
Version 3.0.0
- Loading branch information
Showing
20 changed files
with
700 additions
and
826 deletions.
There are no files selected for viewing
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,41 @@ | ||
## REGISTRY CONFIGURATION ###################################################### | ||
|
||
ARG REGISTRY="docker.io" | ||
|
||
## BUILDER ##################################################################### | ||
|
||
FROM ${REGISTRY}/essentialkaos/oraclelinux:8 as installer | ||
|
||
ARG RUBY_VERSION=9.3.9.0 | ||
|
||
RUN dnf -y -q install https://yum.kaos.st/kaos-repo-latest.el8.noarch.rpm && \ | ||
dnf -y -q install rbenv rbinstall jre11 && \ | ||
dnf -y -q module disable "*" && dnf clean all && rm -rf /var/cache/dnf /var/log/dnf.* && \ | ||
rbinstall jruby-${RUBY_VERSION} --no-progress | ||
|
||
## FINAL IMAGE ################################################################ | ||
|
||
FROM ${REGISTRY}/essentialkaos/oraclelinux:8 | ||
|
||
ARG RUBY_VERSION=9.3.9.0 | ||
|
||
LABEL org.opencontainers.image.title="rbinstall-ruby" \ | ||
org.opencontainers.image.description="RBEnv with prebuilt Ruby" \ | ||
org.opencontainers.image.vendor="ESSENTIAL KAOS" \ | ||
org.opencontainers.image.authors="Anton Novojilov" \ | ||
org.opencontainers.image.licenses="Apache-2.0" \ | ||
org.opencontainers.image.url="https://kaos.sh/rbinstall" \ | ||
org.opencontainers.image.source="https://github.com/essentialkaos/rbinstall" | ||
|
||
COPY --from=installer /usr/local/rbenv/versions/jruby-${RUBY_VERSION} \ | ||
/usr/local/rbenv/versions/jruby-${RUBY_VERSION} | ||
|
||
RUN dnf -y -q install https://yum.kaos.st/kaos-repo-latest.el8.noarch.rpm && \ | ||
dnf -y -q install rbenv jre11 && \ | ||
dnf -y -q module disable "*" && dnf clean all && rm -rf /var/cache/dnf /var/log/dnf.* && \ | ||
source /etc/profile.d/rbenv.sh && \ | ||
rbenv global jruby-${RUBY_VERSION} | ||
|
||
ENV PATH /usr/local/rbenv/shims:$PATH | ||
|
||
CMD [ "irb" ] |
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,45 @@ | ||
## REGISTRY CONFIGURATION ###################################################### | ||
|
||
ARG REGISTRY="docker.io" | ||
|
||
## BUILDER ##################################################################### | ||
|
||
FROM ${REGISTRY}/essentialkaos/oraclelinux:8 as installer | ||
|
||
ARG RUBY_VERSION=3.2.0 | ||
ARG WITH_STATIC=no | ||
|
||
RUN dnf -y -q install https://yum.kaos.st/kaos-repo-latest.el8.noarch.rpm && \ | ||
dnf -y -q install rbenv rbinstall libyaml jemalloc && \ | ||
dnf -y -q module disable "*" && dnf clean all && rm -rf /var/cache/dnf /var/log/dnf.* && \ | ||
rbinstall ${RUBY_VERSION}-jemalloc --no-progress && \ | ||
if [ "${WITH_STATIC}" != "no" ] ; then rm -f /usr/local/rbenv/versions/${RUBY_VERSION}/lib/libruby-static.a ; fi | ||
|
||
## FINAL IMAGE ################################################################ | ||
|
||
FROM ${REGISTRY}/essentialkaos/oraclelinux:8 | ||
|
||
ARG RUBY_VERSION=3.2.0 | ||
ARG WITH_GCC=no | ||
|
||
LABEL org.opencontainers.image.title="rbinstall-ruby" \ | ||
org.opencontainers.image.description="RBEnv with prebuilt Ruby" \ | ||
org.opencontainers.image.vendor="ESSENTIAL KAOS" \ | ||
org.opencontainers.image.authors="Anton Novojilov" \ | ||
org.opencontainers.image.licenses="Apache-2.0" \ | ||
org.opencontainers.image.url="https://kaos.sh/rbinstall" \ | ||
org.opencontainers.image.source="https://github.com/essentialkaos/rbinstall" | ||
|
||
COPY --from=installer /usr/local/rbenv/versions/${RUBY_VERSION}-jemalloc \ | ||
/usr/local/rbenv/versions/${RUBY_VERSION}-jemalloc | ||
|
||
RUN dnf -y -q install https://yum.kaos.st/kaos-repo-latest.el8.noarch.rpm && \ | ||
dnf -y -q install rbenv libyaml jemalloc && \ | ||
if [ "${WITH_GCC}" != "no" ] ; then dnf -y -q install gcc ; fi && \ | ||
dnf -y -q module disable "*" && dnf clean all && rm -rf /var/cache/dnf /var/log/dnf.* && \ | ||
source /etc/profile.d/rbenv.sh && \ | ||
rbenv global ${RUBY_VERSION}-jemalloc | ||
|
||
ENV PATH /usr/local/rbenv/shims:$PATH | ||
|
||
CMD [ "irb" ] |
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,45 @@ | ||
## REGISTRY CONFIGURATION ###################################################### | ||
|
||
ARG REGISTRY="docker.io" | ||
|
||
## BUILDER ##################################################################### | ||
|
||
FROM ${REGISTRY}/essentialkaos/oraclelinux:8 as installer | ||
|
||
ARG RUBY_VERSION=3.2.0 | ||
ARG WITH_STATIC=no | ||
|
||
RUN dnf -y -q install https://yum.kaos.st/kaos-repo-latest.el8.noarch.rpm && \ | ||
dnf -y -q install rbenv rbinstall libyaml && \ | ||
dnf -y -q module disable "*" && dnf clean all && rm -rf /var/cache/dnf /var/log/dnf.* && \ | ||
rbinstall ${RUBY_VERSION}-railsexpress --no-progress && \ | ||
if [ "${WITH_STATIC}" != "no" ] ; then rm -f /usr/local/rbenv/versions/${RUBY_VERSION}/lib/libruby-static.a ; fi | ||
|
||
## FINAL IMAGE ################################################################ | ||
|
||
FROM ${REGISTRY}/essentialkaos/oraclelinux:8 | ||
|
||
ARG RUBY_VERSION=3.2.0 | ||
ARG WITH_GCC=no | ||
|
||
LABEL org.opencontainers.image.title="rbinstall-ruby" \ | ||
org.opencontainers.image.description="RBEnv with prebuilt Ruby" \ | ||
org.opencontainers.image.vendor="ESSENTIAL KAOS" \ | ||
org.opencontainers.image.authors="Anton Novojilov" \ | ||
org.opencontainers.image.licenses="Apache-2.0" \ | ||
org.opencontainers.image.url="https://kaos.sh/rbinstall" \ | ||
org.opencontainers.image.source="https://github.com/essentialkaos/rbinstall" | ||
|
||
COPY --from=installer /usr/local/rbenv/versions/${RUBY_VERSION}-railsexpress \ | ||
/usr/local/rbenv/versions/${RUBY_VERSION}-railsexpress | ||
|
||
RUN dnf -y -q install https://yum.kaos.st/kaos-repo-latest.el8.noarch.rpm && \ | ||
dnf -y -q install rbenv libyaml && \ | ||
if [ "${WITH_GCC}" != "no" ] ; then dnf -y -q install gcc ; fi && \ | ||
dnf -y -q module disable "*" && dnf clean all && rm -rf /var/cache/dnf /var/log/dnf.* && \ | ||
source /etc/profile.d/rbenv.sh && \ | ||
rbenv global ${RUBY_VERSION}-railsexpress | ||
|
||
ENV PATH /usr/local/rbenv/shims:$PATH | ||
|
||
CMD [ "irb" ] |
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,45 @@ | ||
## REGISTRY CONFIGURATION ###################################################### | ||
|
||
ARG REGISTRY="docker.io" | ||
|
||
## BUILDER ##################################################################### | ||
|
||
FROM ${REGISTRY}/essentialkaos/oraclelinux:8 as installer | ||
|
||
ARG RUBY_VERSION=3.2.0 | ||
ARG WITH_STATIC=no | ||
|
||
RUN dnf -y -q install https://yum.kaos.st/kaos-repo-latest.el8.noarch.rpm && \ | ||
dnf -y -q install rbenv rbinstall libyaml && \ | ||
dnf -y -q module disable "*" && dnf clean all && rm -rf /var/cache/dnf /var/log/dnf.* && \ | ||
rbinstall ${RUBY_VERSION} --no-progress && \ | ||
if [ "${WITH_STATIC}" != "no" ] ; then rm -f /usr/local/rbenv/versions/${RUBY_VERSION}/lib/libruby-static.a ; fi | ||
|
||
## FINAL IMAGE ################################################################ | ||
|
||
FROM ${REGISTRY}/essentialkaos/oraclelinux:8 | ||
|
||
ARG RUBY_VERSION=3.2.0 | ||
ARG WITH_GCC=no | ||
|
||
LABEL org.opencontainers.image.title="rbinstall-ruby" \ | ||
org.opencontainers.image.description="RBEnv with prebuilt Ruby" \ | ||
org.opencontainers.image.vendor="ESSENTIAL KAOS" \ | ||
org.opencontainers.image.authors="Anton Novojilov" \ | ||
org.opencontainers.image.licenses="Apache-2.0" \ | ||
org.opencontainers.image.url="https://kaos.sh/rbinstall" \ | ||
org.opencontainers.image.source="https://github.com/essentialkaos/rbinstall" | ||
|
||
COPY --from=installer /usr/local/rbenv/versions/${RUBY_VERSION} \ | ||
/usr/local/rbenv/versions/${RUBY_VERSION} | ||
|
||
RUN dnf -y -q install https://yum.kaos.st/kaos-repo-latest.el8.noarch.rpm && \ | ||
dnf -y -q install rbenv libyaml && \ | ||
if [ "${WITH_GCC}" != "no" ] ; then dnf -y -q install gcc ; fi && \ | ||
dnf -y -q module disable "*" && dnf clean all && rm -rf /var/cache/dnf /var/log/dnf.* && \ | ||
source /etc/profile.d/rbenv.sh && \ | ||
rbenv global ${RUBY_VERSION} | ||
|
||
ENV PATH /usr/local/rbenv/shims:$PATH | ||
|
||
CMD [ "irb" ] |
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
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,4 @@ | ||
ignored: | ||
- DL3031 | ||
- DL3041 | ||
- SC1091 |
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
Oops, something went wrong.