]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: update Dockerfile to support fc-31 34048/head
authorKefu Chai <kchai@redhat.com>
Thu, 19 Mar 2020 03:21:48 +0000 (11:21 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 20 Mar 2020 10:28:31 +0000 (18:28 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/fedora-29/Dockerfile.in [deleted file]
src/test/fedora-29/ceph.spec.in [deleted symlink]
src/test/fedora-29/install-deps.sh [deleted symlink]
src/test/fedora-31/Dockerfile.in [new file with mode: 0644]
src/test/fedora-31/ceph.spec.in [new symlink]
src/test/fedora-31/install-deps.sh [new symlink]

diff --git a/src/test/fedora-29/Dockerfile.in b/src/test/fedora-29/Dockerfile.in
deleted file mode 100644 (file)
index fbb88d8..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-#
-# 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 fedora:%%os_version%%
-COPY install-deps.sh /root/
-COPY ceph.spec.in /root/
-# build dependencies
-RUN dnf 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 dnf install -y ccache valgrind gdb git python-virtualenv gdisk kpartx jq sudo xmlstarlet parted nc
-RUN if test %%USER%% != root ; then useradd -M --uid %%user_id%% %%USER%% && echo '%%USER%% ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers ; fi
diff --git a/src/test/fedora-29/ceph.spec.in b/src/test/fedora-29/ceph.spec.in
deleted file mode 120000 (symlink)
index 9abcafd..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../ceph.spec.in
\ No newline at end of file
diff --git a/src/test/fedora-29/install-deps.sh b/src/test/fedora-29/install-deps.sh
deleted file mode 120000 (symlink)
index fc9c78b..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../install-deps.sh
\ No newline at end of file
diff --git a/src/test/fedora-31/Dockerfile.in b/src/test/fedora-31/Dockerfile.in
new file mode 100644 (file)
index 0000000..3598271
--- /dev/null
@@ -0,0 +1,26 @@
+#
+# 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 fedora:%%os_version%%
+COPY install-deps.sh /root/
+COPY ceph.spec.in /root/
+# build dependencies
+RUN dnf install -y which gdb git sudo; cd /root ; ./install-deps.sh
+RUN if test %%USER%% != root ; then useradd -M --uid %%user_id%% %%USER%% && echo '%%USER%% ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers ; fi
diff --git a/src/test/fedora-31/ceph.spec.in b/src/test/fedora-31/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/fedora-31/install-deps.sh b/src/test/fedora-31/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