]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: Dockerfile COPY with two arguments 3696/head
authorLoic Dachary <ldachary@redhat.com>
Thu, 12 Feb 2015 10:21:00 +0000 (11:21 +0100)
committerLoic Dachary <ldachary@redhat.com>
Thu, 12 Feb 2015 10:22:12 +0000 (11:22 +0100)
Avoid using COPY with multiple files because it will not behave as
intended with older (1.2) versions of docker.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/test/centos-7/Dockerfile.in
src/test/ubuntu-12.04/Dockerfile.in
src/test/ubuntu-14.04/Dockerfile.in

index 3f07b8189ed5715bb03f196c291f4dd536c2e061..dfde99ae514192bccca9ebc240d1593a06adc9df 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2014 Red Hat <contact@redhat.com>
+# Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
 #
 # Author: Loic Dachary <loic@dachary.org>
 #
@@ -20,7 +20,8 @@
 #
 FROM centos:%%os_version%%
 
-COPY install-deps.sh ceph.spec.in /root/
+COPY install-deps.sh /root/
+COPY ceph.spec.in /root/
 # http://jperrin.github.io/centos/2014/09/25/centos-docker-and-systemd/
 RUN yum -y swap -- remove fakesystemd -- install systemd systemd-libs && (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done) && rm -f /lib/systemd/system/multi-user.target.wants/* && rm -f /etc/systemd/system/*.wants/* && rm -f /lib/systemd/system/local-fs.target.wants/* && rm -f /lib/systemd/system/sockets.target.wants/*udev* && rm -f /lib/systemd/system/sockets.target.wants/*initctl* && rm -f /lib/systemd/system/basic.target.wants/* && rm -f /lib/systemd/system/anaconda.target.wants/* && yum install -y redhat-lsb-core
 RUN yum install -y yum-utils && yum-config-manager --add-repo https://dl.fedoraproject.org/pub/epel/7/x86_64/ && yum install --nogpgcheck -y epel-release && rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 && rm /etc/yum.repos.d/dl.fedoraproject.org*
index 3cf842ebee8eb1785511ba6143d1c7f6f316427f..fddf929324dc29cf899d3e626d5aefc304292c0c 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2014 Red Hat <contact@redhat.com>
+# Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
 #
 # Author: Loic Dachary <loic@dachary.org>
 #
index 3cf842ebee8eb1785511ba6143d1c7f6f316427f..fddf929324dc29cf899d3e626d5aefc304292c0c 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2014 Red Hat <contact@redhat.com>
+# Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
 #
 # Author: Loic Dachary <loic@dachary.org>
 #