From: Kefu Chai Date: Thu, 7 Feb 2019 08:02:25 +0000 (+0800) Subject: tests: update Dockerfile to support fc-29 X-Git-Tag: v14.1.0~180^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=06383b276890dbec03605a30aee34c58778bc9b0;p=ceph.git tests: update Dockerfile to support fc-29 and s/yum/dnf/ Signed-off-by: Kefu Chai --- diff --git a/src/test/fedora-21/Dockerfile.in b/src/test/fedora-21/Dockerfile.in deleted file mode 100644 index 8c64a052944..00000000000 --- a/src/test/fedora-21/Dockerfile.in +++ /dev/null @@ -1,29 +0,0 @@ -# -# 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 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-21/ceph.spec.in b/src/test/fedora-21/ceph.spec.in deleted file mode 120000 index 9abcafd12db..00000000000 --- a/src/test/fedora-21/ceph.spec.in +++ /dev/null @@ -1 +0,0 @@ -../../../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 deleted file mode 120000 index fc9c78b27ff..00000000000 --- a/src/test/fedora-21/install-deps.sh +++ /dev/null @@ -1 +0,0 @@ -../../../install-deps.sh \ No newline at end of file diff --git a/src/test/fedora-29/Dockerfile.in b/src/test/fedora-29/Dockerfile.in new file mode 100644 index 00000000000..fbb88d86628 --- /dev/null +++ b/src/test/fedora-29/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 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 new file mode 120000 index 00000000000..9abcafd12db --- /dev/null +++ b/src/test/fedora-29/ceph.spec.in @@ -0,0 +1 @@ +../../../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 new file mode 120000 index 00000000000..fc9c78b27ff --- /dev/null +++ b/src/test/fedora-29/install-deps.sh @@ -0,0 +1 @@ +../../../install-deps.sh \ No newline at end of file