UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Ironbank Containers
O
Opensource
ruby
ruby27
Commits
0aa3ee70
Commit
0aa3ee70
authored
May 19, 2020
by
Joshua Eason
Browse files
Corrected registry
parent
0fa46bf7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
18 deletions
+36
-18
Dockerfile
Dockerfile
+22
-14
scripts/install-gdbm.sh
scripts/install-gdbm.sh
+7
-2
scripts/install-ruby.sh
scripts/install-ruby.sh
+7
-2
No files found.
Dockerfile
View file @
0aa3ee70
######################## Base Args ########################
ARG
BASE_REGISTRY=
registry.access.redhat.com
ARG
BASE_IMAGE=ubi8
ARG
BASE_REGISTRY=
nexus-docker-secure.levelup-dev.io
ARG
BASE_IMAGE=
redhat/ubi/
ubi8
ARG
BASE_TAG=8.2
ARG
UBI_BASE_IMAGE=${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG}
FROM
${UBI_BASE_IMAGE}
FROM
${UBI_BASE_IMAGE}
as builder
LABEL
name="Ruby" \
description="Ruby container based off UBI8" \
...
...
@@ -18,17 +18,25 @@ USER 0
COPY
ruby-27.tar.gz gdbm.tar.gz scripts/*.sh /
RUN
dnf
install
-y
--setopt
=
tsflags
=
nodocs
\
# These packages are required for building Ruby and Ruby Gems
gcc-c++ patch readline zlib zlib-devel libffi-devel libedit \
openssl-devel make bzip2 autoconf automake libtool sqlite-devel && \
# End required packages
chmod +x /install-ruby.sh /install-gdbm.sh && \
/install-gdbm.sh && \
/install-ruby.sh && \
rm -f /install-ruby.sh /install-gdbm.sh && \
dnf clean all && \
rm -rf /var/cache/dnf/ /var/tmp/* /tmp/* /var/tmp/.???* /tmp/.???*
ARG
PACKAGES="gcc-c++ patch readline zlib zlib-devel libffi-devel libedit \
openssl-devel make bzip2 autoconf automake libtool sqlite-devel"
RUN
dnf
install
-y
--setopt
=
tsflags
=
nodocs
$PACKAGES
\
&&
chmod
+x /install-ruby.sh /install-gdbm.sh
\
&&
/install-gdbm.sh
\
&&
/install-ruby.sh
\
&&
rm
-f
/install-ruby.sh /install-gdbm.sh
\
&&
rm
-rf
/var/cache/dnf/ /var/tmp/
*
/tmp/
*
/var/tmp/.???
*
/tmp/.???
*
FROM
${UBI_BASE_IMAGE}
RUN
dnf update
-y
\
&&
dnf clean all
\
&&
rm
-rf
/var/cache/dnf/ /var/tmp/
*
/tmp/
*
/var/tmp/.???
*
/tmp/.???
*
COPY
--from=builder /usr/local/bin/ /usr/local/bin/
COPY
--from=builder /usr/local/lib/ /usr/local/lib/
COPY
--from=builder /usr/local/include/ /usr/local/include/
ENV
RUBY_MAJOR=2 \
RUBY_MINOR=7
...
...
scripts/install-gdbm.sh
View file @
0aa3ee70
...
...
@@ -4,8 +4,13 @@ set -e
mkdir
-p
/usr/src
tar
-xzf
gdbm.tar.gz
-C
/usr/src/
rm
-f
gdbm.tar.gz
cd
/usr/src/gdbm-1.18.1
GDBM_DIR
=
$(
ls
/usr/src/ |
grep
gdbm
)
cd
/usr/src/
${
GDBM_DIR
}
./configure
make
-j
"
$(
nproc
)
"
make
install
rm
-rf
/usr/src/gdbm-1.18.1
\ No newline at end of file
rm
-rf
/usr/src/
${
GDBM_DIR
}
scripts/install-ruby.sh
View file @
0aa3ee70
...
...
@@ -4,8 +4,13 @@ set -e
mkdir
-p
/usr/src
tar
-xzf
ruby-27.tar.gz
-C
/usr/src/
rm
-f
ruby-27.tar.gz
cd
/usr/src/ruby-2.7.1
RUBY_DIR
=
$(
ls
/usr/src/ |
grep
ruby
)
cd
/usr/src/
${
RUBY_DIR
}
./configure
--disable-install-doc
--enable-shared
make
-j
"
$(
nproc
)
"
make
install
rm
-rf
/usr/src/ruby-2.7.1
\ No newline at end of file
rm
-rf
/usr/src/
${
RUBY_DIR
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment