https://github.com/sheepdog/sheepdog/commit/df7d08f1513f79be577311759442a3ddf24e20aa
$ git clone https://github.com/sheepdog/sheepdog
$ git -C ./sheepdog/ submodule init
$ git -C ./sheepdog/ submodule update
$ docker build -t local/sheep:el7 -f el7.Dockerfile .
$ docker build -t local/sheep:el6 -f el6.Dockerfile .el6: faild
~~ snip ~~
Processing files: sheepdog-1.0_67_gdf7d08f_dirty-1.el6.x86_64
error: File not found: /root/rpmbuild/BUILDROOT/sheepdog-1.0_67_gdf7d08f_dirty-1.el6.x86_64/usr/lib/systemd/system/sheepdog.service
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.F7wHor
+ umask 022
+ cd /root/sheepdog
+ cd sheepdog-1.0_67_gdf7d08f_dirty
+ DOCDIR=/root/rpmbuild/BUILDROOT/sheepdog-1.0_67_gdf7d08f_dirty-1.el6.x86_64/usr/share/doc/sheepdog-1.0_67_gdf7d08f_dirty
+ export DOCDIR
+ rm -rf /root/rpmbuild/BUILDROOT/sheepdog-1.0_67_gdf7d08f_dirty-1.el6.x86_64/usr/share/doc/sheepdog-1.0_67_gdf7d08f_dirty
+ /bin/mkdir -p /root/rpmbuild/BUILDROOT/sheepdog-1.0_67_gdf7d08f_dirty-1.el6.x86_64/usr/share/doc/sheepdog-1.0_67_gdf7d08f_dirty
+ cp -pr COPYING README INSTALL /root/rpmbuild/BUILDROOT/sheepdog-1.0_67_gdf7d08f_dirty-1.el6.x86_64/usr/share/doc/sheepdog-1.0_67_gdf7d08f_dirty
+ exit 0
RPM build errors:
File not found: /root/rpmbuild/BUILDROOT/sheepdog-1.0_67_gdf7d08f_dirty-1.el6.x86_64/usr/lib/systemd/system/sheepdog.service
make: *** [rpm] Error 1
The command '/bin/sh -c ./autogen.sh && ./configure --enable-zookeeper && LANG=C make -j8 rpm' returned a non-zero code: 2
el7: Success
~~ snip ~~
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.vRRrd8
+ umask 022
+ cd /root/sheepdog
+ cd sheepdog-1.0_67_gdf7d08f
+ rm -rf /root/rpmbuild/BUILDROOT/sheepdog-1.0_67_gdf7d08f-1.el7.centos.x86_64
+ exit 0
---> 4828145d81e6
Removing intermediate container 8be17d20c71c
Successfully built 4828145d81e6