From 77788e36d1743ff76d2588bea25fa4c38d7250bf Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Fri, 10 Apr 2015 15:09:00 +0200 Subject: [PATCH] tests: add Dockerfile for fedora 21 Signed-off-by: Loic Dachary --- src/test/Makefile.am | 3 +++ src/test/fedora-21/Dockerfile.in | 29 +++++++++++++++++++++++++++++ src/test/fedora-21/ceph.spec.in | 1 + src/test/fedora-21/install-deps.sh | 1 + 4 files changed, 34 insertions(+) create mode 100644 src/test/fedora-21/Dockerfile.in create mode 120000 src/test/fedora-21/ceph.spec.in create mode 120000 src/test/fedora-21/install-deps.sh diff --git a/src/test/Makefile.am b/src/test/Makefile.am index 140df2051cc65..b1dd7ddb298db 100644 --- a/src/test/Makefile.am +++ b/src/test/Makefile.am @@ -103,6 +103,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/fedora-21/Dockerfile.in \ + $(srcdir)/test/fedora-21/install-deps.sh \ + $(srcdir)/test/fedora-21/ceph.spec.in \ $(srcdir)/test/centos-6/Dockerfile.in \ $(srcdir)/test/centos-6/install-deps.sh \ $(srcdir)/test/centos-6/ceph.spec.in \ diff --git a/src/test/fedora-21/Dockerfile.in b/src/test/fedora-21/Dockerfile.in new file mode 100644 index 0000000000000..9b606ea46f2ca --- /dev/null +++ b/src/test/fedora-21/Dockerfile.in @@ -0,0 +1,29 @@ +# +# 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 fedora:%%os_version%% +COPY install-deps.sh /root/ +COPY ceph.spec.in /root/ +# 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/fedora-21/ceph.spec.in b/src/test/fedora-21/ceph.spec.in new file mode 120000 index 0000000000000..9abcafd12dbb9 --- /dev/null +++ b/src/test/fedora-21/ceph.spec.in @@ -0,0 +1 @@ +../../../ceph.spec.in \ No newline at end of file diff --git a/src/test/fedora-21/install-deps.sh b/src/test/fedora-21/install-deps.sh new file mode 120000 index 0000000000000..fc9c78b27ff6f --- /dev/null +++ b/src/test/fedora-21/install-deps.sh @@ -0,0 +1 @@ +../../../install-deps.sh \ No newline at end of file -- 2.39.5