summaryrefslogtreecommitdiffstats
path: root/.gitlab/ci/docker/fedora33/install_rvm.sh
blob: 6d4fa97f90119ca9f13d2a4a5d496db9062f359c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

set -e

gpg2 --keyserver hkp://pool.sks-keyservers.net \
     --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 \
                 7D2BAF1CF37B13E2069D6956105BD0E739499BDB

dnf install --setopt=install_weak_deps=False -y \
    findutils \
    procps \
    which

curl -sSL https://get.rvm.io | bash -s stable

# This is intentionally an older version.
# If updating, the associated `env_fedora*_makefiles.cmake` file needs updated
# as well.
/usr/local/rvm/bin/rvm install ruby-2.7.0

tar -C /usr/local -cf /root/rvm.tar rvm