]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: add Dockerfile for centos-6
authorLoic Dachary <ldachary@redhat.com>
Wed, 11 Feb 2015 14:06:44 +0000 (15:06 +0100)
committerLoic Dachary <ldachary@redhat.com>
Thu, 12 Feb 2015 10:22:04 +0000 (11:22 +0100)
http://tracker.ceph.com/issues/10755 Fixes: #10755

Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/test/Makefile.am
src/test/centos-6/Dockerfile.in [new file with mode: 0644]
src/test/centos-6/ceph.spec.in [new symlink]
src/test/centos-6/install-deps.sh [new symlink]

index 049adb8af9d559b8637d7eab42a4d9b674913dd7..ebedb4cabf05dcc47ec00bcf2ff050a60016ad70 100644 (file)
@@ -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 (file)
index 0000000..a2eece8
--- /dev/null
@@ -0,0 +1,30 @@
+#
+# Copyright (C) 2015 Red Hat <contact@redhat.com>
+#
+# Author: Loic Dachary <loic@dachary.org>
+#
+# 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 (symlink)
index 0000000..9abcafd
--- /dev/null
@@ -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 (symlink)
index 0000000..fc9c78b
--- /dev/null
@@ -0,0 +1 @@
+../../../install-deps.sh
\ No newline at end of file