forked from tytso/xfstests-bld
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
63 lines (58 loc) · 1.6 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# This Dockerfile creates an debian image with xfstests-bld build environment
#
# This is more for the sake of showing how to use a Dockerfile to
# build the xfstests.tar.gz file more than anything else. (The resulting
# docker image is almost twice as big as it would be if we didn't try
# building it inside Docker.)
#
# VERSION 0.1
FROM debian
# Install dependencies
RUN apt-get update && \
apt-get install -y \
autoconf \
automake \
bc \
build-essential \
curl \
gettext \
git \
libtool \
libtool-bin \
pkg-config \
pigz \
uuid-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* \
/usr/share/doc /usr/share/doc-base \
/usr/share/man /usr/share/locale /usr/share/zoneinfo
MAINTAINER Theodore Y. Ts'o [email protected]
COPY . /devel/xfstests-bld
RUN cd /devel/xfstests-bld && \
cp config config.custom && \
echo "XFSTESTS_GIT=https://github.com/tytso/xfstests" >> config.custom && \
make && \
make tarball && \
tar -C /root -xf xfstests.tar.gz && \
cd kvm-xfstests/test-appliance && \
cp docker-entrypoint /entrypoint && \
rsync --exclude-from docker-exclude-files -avH files/* / && \
chown -R root:root /root && \
useradd -u 31415 -s /bin/bash -m fsgqa && \
cd /devel && \
rm -rf /devel/xfstests-bld && \
mkdir -p /results && \
apt-get purge -y \
autoconf \
automake \
build-essential \
gettext \
git \
libtool \
libtool-bin \
pkg-config \
pigz \
uuid-dev && \
apt-get autoremove -y
ENTRYPOINT ["/entrypoint"]
CMD ["-g","quick"]