Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IT-division Public
dockerimages
centosfpmcookery
Commits
a6c2615e
Commit
a6c2615e
authored
Nov 30, 2020
by
Torstein Leversund
Browse files
install ruby via rvn
parent
d5b20bf1
Pipeline
#47386
passed with stage
in 4 minutes and 13 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Dockerfile
View file @
a6c2615e
FROM
centos/ruby-26-centos7
RUN
scl
enable
rh-ruby26
"gem install -N fpm-cookery"
USER
root
FROM
centos:7
RUN
yum
-y
install
epel-release
RUN
curl
-sL
https://rpm.nodesource.com/setup_12.x | bash -
RUN
yum
-y
update
RUN
yum
-y
install
\
ansible
\
autoconf
\
automake
\
bison
\
gcc
\
gcc-c++
\
git
\
libffi-devel
\
libtool
\
make
\
nodejs
\
openssh-clients
\
openssl
\
openssl-devel
\
readline-devel
\
rpm-build
\
rsync
\
ruby
\
sqlite-devel
\
wget
\
which
\
zlib-devel
\
&&
yum clean all
# Install RVM
RUN
gpg
--keyserver
hkp://keys.gnupg.net
--recv-keys
\
409B6B1796C275462A1703113804BB82D39DC0E3
\
7D2BAF1CF37B13E2069D6956105BD0E739499BDB
\
&&
curl
-sSL
https://get.rvm.io | bash
-s
--
--autolibs
=
read-fail stable
\
&&
echo
'rvm_silence_path_mismatch_check_flag=1'
>>
~/.rvmrc
SHELL
["/bin/bash", "-lc"]
CMD
["/bin/bash", "-l"]
# Install Ruby
RUN
rvm
install
2.7.0
\
&&
rvm
alias
create 2.7 ruby-2.7.0
\
&&
rvm use
--default
2.7.0
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