-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile.travis
45 lines (36 loc) · 1.56 KB
/
Dockerfile.travis
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
# building zfs for boot2docker
#FROM ubuntu:16.04
FROM ubuntu:trusty
RUN apt-get update && apt-get -y install \
xz-utils \
curl \
bc \
git \
build-essential \
golang \
cpio \
gcc libc6 libc6-dev \
kmod \
automake \
pkg-config
# https://www.kernel.org/
ARG KERNEL_VERSION
# like "-boot2docker", ends up in module magic and must match running
# kernel for modules to be loadable
ARG LOCALVERSION
# boot2docker or docker4mac
ARG KERN_CONF_SUFFIX
# Fetch the kernel sources
#RUN curl --retry 10 -o linux-$KERNEL_VERSION.tar.xz https://www.kernel.org/pub/linux/kernel/v${KERNEL_VERSION%%.*}.x/linux-$KERNEL_VERSION.tar.xz
#RUN sleep 5; tar xf linux-$KERNEL_VERSION.tar.xz
#RUN mv /linux-$KERNEL_VERSION /linux-kernel
RUN apt-get update && apt-get -y install shtool libtool build-essential gawk alien fakeroot zlib1g-dev uuid-dev libblkid-dev libselinux-dev parted lsscsi wget libattr1-dev software-properties-common
RUN add-apt-repository ppa:canonical-kernel-team/ppa ; apt-get update
RUN apt-get -y install linux-headers-4.4.0-101-generic
#RUN cd /linux-kernel && \
# make defconfig && \
# echo 'CONFIG_ZLIB_INFLATE=y' >> /linux-kernel/.config && \
# echo 'CONFIG_CRYPTO_DEFLATE=y' >> /linux-kernel/.config && \
# make -j8
ADD build_zfs.sh /
RUN sed -i s/USE_SYSTEM_LINUX=NO/USE_SYSTEM_LINUX=YES/ /build_zfs.sh