1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
6 MAINTAINER Arvados Package Maintainers <packaging@arvados.org>
8 # Install dependencies.
9 RUN yum -q -y install scl-utils centos-release-scl which tar wget
12 ADD generated/mpapis.asc /tmp/
13 ADD generated/pkuczynski.asc /tmp/
14 RUN touch /var/lib/rpm/* && \
15 gpg --import --no-tty /tmp/mpapis.asc && \
16 gpg --import --no-tty /tmp/pkuczynski.asc && \
17 curl -L https://get.rvm.io | bash -s stable && \
18 /usr/local/rvm/bin/rvm install 2.5 && \
19 /usr/local/rvm/bin/rvm alias create default ruby-2.5 && \
20 /usr/local/rvm/bin/rvm-exec default gem install bundler --version 2.0.2
22 # Install Bash 4.4.12 // see https://dev.arvados.org/issues/15612
23 RUN cd /usr/local/src \
24 && wget http://ftp.gnu.org/gnu/bash/bash-4.4.12.tar.gz \
25 && wget http://ftp.gnu.org/gnu/bash/bash-4.4.12.tar.gz.sig \
26 && tar xzf bash-4.4.12.tar.gz \
28 && ./configure --prefix=/usr/local/$( basename $( pwd ) ) \
31 && ln -sf /usr/local/src/bash-4.4.12/bash /bin/bash
33 # Add epel, we need it for the python-pam dependency
34 RUN wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
35 RUN rpm -ivh epel-release-latest-7.noarch.rpm
37 COPY localrepo.repo /etc/yum.repos.d/localrepo.repo