The libpam-arvados package on Centos7 has a dependency on the python-pam package.
[arvados.git] / build / package-test-dockerfiles / centos7 / Dockerfile
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 FROM centos:7
6 MAINTAINER Ward Vandewege <wvandewege@veritasgenetics.com>
7
8 # Install dependencies.
9 RUN yum -q -y install scl-utils centos-release-scl which tar wget
10
11 # Install RVM
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.3 && \
19     /usr/local/rvm/bin/rvm alias create default ruby-2.3
20
21 # Add epel, we need it for the python-pam dependency
22 RUN wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
23 RUN rpm -ivh epel-release-latest-7.noarch.rpm
24
25 COPY localrepo.repo /etc/yum.repos.d/localrepo.repo