]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: add Debian jessie dockerfile 3882/head
authorLoic Dachary <ldachary@redhat.com>
Thu, 5 Mar 2015 11:34:48 +0000 (12:34 +0100)
committerLoic Dachary <ldachary@redhat.com>
Sat, 7 Mar 2015 01:40:13 +0000 (02:40 +0100)
Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/test/Makefile.am
src/test/debian-jessie/Dockerfile.in [new file with mode: 0644]
src/test/debian-jessie/debian [new symlink]
src/test/debian-jessie/install-deps.sh [new symlink]

index 023e797bd29b5b1ec178ab83f9ee44330e4f4a74..48ff7dba870e03e13848768b554daff64be0f375 100644 (file)
@@ -265,6 +265,9 @@ check_SCRIPTS += test/ceph-disk.sh
 endif
 
 EXTRA_DIST += \
+       $(srcdir)/test/debian-jessie/Dockerfile.in \
+       $(srcdir)/test/debian-jessie/install-deps.sh \
+       $(srcdir)/test/debian-jessie/debian \
        $(srcdir)/test/ubuntu-12.04/Dockerfile.in \
        $(srcdir)/test/ubuntu-12.04/install-deps.sh \
        $(srcdir)/test/ubuntu-12.04/debian \
diff --git a/src/test/debian-jessie/Dockerfile.in b/src/test/debian-jessie/Dockerfile.in
new file mode 100644 (file)
index 0000000..c9287bd
--- /dev/null
@@ -0,0 +1,31 @@
+#
+# 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 debian:%%os_version%%
+
+COPY install-deps.sh /root/
+RUN mkdir /root/debian
+COPY debian /root/debian/
+RUN apt-get update
+# build dependencies
+RUN cd /root ; ./install-deps.sh
+# development tools
+RUN apt-get install -y ccache valgrind gdb python-virtualenv gdisk kpartx hdparm jq xmlstarlet
+RUN useradd -M --uid %%user_id%% %%USER%% && echo '%%USER%% ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
diff --git a/src/test/debian-jessie/debian b/src/test/debian-jessie/debian
new file mode 120000 (symlink)
index 0000000..dfdd39e
--- /dev/null
@@ -0,0 +1 @@
+../../../debian
\ No newline at end of file
diff --git a/src/test/debian-jessie/install-deps.sh b/src/test/debian-jessie/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