-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild_kernel_modules.sh
executable file
·33 lines (25 loc) · 1.09 KB
/
build_kernel_modules.sh
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
#!/bin/bash
function build {
echo Building $1 $2 $3
KERNEL=$1
UNAME_R=$2
DOCKERFILE=$3
UNAME_R=$UNAME_R ./zfs-builder sh -c "docker build --build-arg KERNEL_VERSION=$KERNEL -t clusterhq/build-zfs-$DOCKERFILE:${UNAME_R} -f Dockerfile.$DOCKERFILE . && docker run -e UNAME_R=$UNAME_R -v ${PWD}/rootfs:/rootfs clusterhq/build-zfs-$DOCKERFILE:${UNAME_R} /build_zfs.sh && cp rootfs/zfs-${UNAME_R}.tar.gz ."
}
# boot2docker
# look up docker version -> kernel mapping here:
# https://github.com/boot2docker/boot2docker/releases
build 4.1.19 4.1.19-boot2docker boot2docker
build 4.1.18 4.1.18-boot2docker boot2docker
build 4.1.17 4.1.17-boot2docker boot2docker
build 4.1.13 4.1.13-boot2docker boot2docker
build 4.1.12 4.1.12-boot2docker boot2docker
# XXX fails
#build 4.0.10 4.0.10-boot2docker boot2docker
# XXX fails
#build 4.0.9 4.0.9-boot2docker boot2docker
# travis trusty XXX TODO create Dockerfile.ubuntu-trusty and
# kernel_config.ububtu-trusty
#build 3.19 3.19.0-30-generic ubuntu-trusty
# travis precise, probably an ubuntu kernel
#build 3.13 3.13.0-63-generic ubuntu-precise # XXX fails