From 1023aa973b78fc9ffd7f5412812625b67e9eb0ca Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Wed, 11 Feb 2015 15:06:44 +0100 Subject: [PATCH] tests: add Dockerfile for centos-6 http://tracker.ceph.com/issues/10755 Fixes: #10755 Signed-off-by: Loic Dachary --- src/test/Makefile.am | 3 +++ src/test/centos-6/Dockerfile.in | 30 ++++++++++++++++++++++++++++++ src/test/centos-6/ceph.spec.in | 1 + src/test/centos-6/install-deps.sh | 1 + 4 files changed, 35 insertions(+) create mode 100644 src/test/centos-6/Dockerfile.in create mode 120000 src/test/centos-6/ceph.spec.in create mode 120000 src/test/centos-6/install-deps.sh diff --git a/src/test/Makefile.am b/src/test/Makefile.am index 049adb8af9d55..ebedb4cabf05d 100644 --- a/src/test/Makefile.am +++ b/src/test/Makefile.am @@ -270,6 +270,9 @@ EXTRA_DIST += \ $(srcdir)/test/ubuntu-14.04/Dockerfile.in \ $(srcdir)/test/ubuntu-14.04/install-deps.sh \ $(srcdir)/test/ubuntu-14.04/debian \ + $(srcdir)/test/centos-6/Dockerfile.in \ + $(srcdir)/test/centos-6/install-deps.sh \ + $(srcdir)/test/centos-6/ceph.spec.in \ $(srcdir)/test/centos-7/Dockerfile.in \ $(srcdir)/test/centos-7/install-deps.sh \ $(srcdir)/test/centos-7/ceph.spec.in \ diff --git a/src/test/centos-6/Dockerfile.in b/src/test/centos-6/Dockerfile.in new file mode 100644 index 0000000000000..a2eece88b1a76 --- /dev/null +++ b/src/test/centos-6/Dockerfile.in @@ -0,0 +1,30 @@ +# +# Copyright (C) 2015 Red Hat +# +# Author: Loic Dachary +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU Library Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Library Public License for more details. +# +# Environment variables are substituted via envsubst(1) +# +# user_id=$(id -u) +# os_version= the desired REPOSITORY TAG +# +FROM centos:%%os_version%% +COPY install-deps.sh /root/ +COPY ceph.spec.in /root/ +RUN yum install -y yum-utils && yum-config-manager --add-repo https://dl.fedoraproject.org/pub/epel/6/x86_64/ && yum install --nogpgcheck -y epel-release && rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 && rm /etc/yum.repos.d/dl.fedoraproject.org* +# build dependencies +RUN yum install -y which ; cd /root ; ./install-deps.sh +# development tools +# nc is required to run make check on firefly only (giant+ do not use nc) +RUN yum install -y ccache valgrind gdb git python-virtualenv gdisk kpartx hdparm jq sudo xmlstarlet parted nc +RUN useradd -M --uid %%user_id%% %%USER%% && echo '%%USER%% ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers diff --git a/src/test/centos-6/ceph.spec.in b/src/test/centos-6/ceph.spec.in new file mode 120000 index 0000000000000..9abcafd12dbb9 --- /dev/null +++ b/src/test/centos-6/ceph.spec.in @@ -0,0 +1 @@ +../../../ceph.spec.in \ No newline at end of file diff --git a/src/test/centos-6/install-deps.sh b/src/test/centos-6/install-deps.sh new file mode 120000 index 0000000000000..fc9c78b27ff6f --- /dev/null +++ b/src/test/centos-6/install-deps.sh @@ -0,0 +1 @@ +../../../install-deps.sh \ No newline at end of file -- 2.39.5