-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#440: mixed userland zfs tools tarball generator
- Loading branch information
1 parent
1d3b84e
commit 0ca5c14
Showing
2 changed files
with
18 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
FROM ubuntu:bionic | ||
RUN apt-get update && apt-get install -dy zfsutils-linux | ||
RUN apt-get update | ||
RUN apt-get install -y debootstrap | ||
RUN apt-get install -dy zfsutils-linux python3-minimal libssl1.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,29 @@ | ||
#!/bin/sh | ||
set -xe | ||
mkdir -p outputs/zfs-{0.6,0.7} | ||
mkdir -p outputs | ||
|
||
NAME=zfs-builder-$$ | ||
|
||
docker build -f Dockerfile.0-6 -t dotmesh/zfs-userland-0.6 . | ||
#docker build -f Dockerfile.0-7 -t dotmesh/zfs-userland-0.7 . | ||
docker build -f Dockerfile.0-7 -t dotmesh/zfs-userland-0.7 . | ||
|
||
docker run --name $NAME -i --privileged dotmesh/zfs-userland-0.6 bash -c ' | ||
docker run --rm --name $NAME -i --privileged -v ${PWD}/outputs:/outputs dotmesh/zfs-userland-0.6 bash -c ' | ||
debootstrap artful /opt/zfs-0.6 | ||
' | ||
|
||
docker commit $NAME dotmesh/zfs-userland-0.6-debootstrapped | ||
docker rm -f $NAME | ||
|
||
docker run --name $NAME -i --privileged dotmesh/zfs-userland-0.6-debootstrapped bash -c ' | ||
cd /var/cache && find . && \ | ||
groupadd crontab && groupadd messagebus && \ | ||
dpkg --root=/opt/zfs-0.6 -i /var/cache/apt/archives/python3-minimal*.deb | ||
dpkg --root=/opt/zfs-0.6 -i /var/cache/apt/archives/*.deb | ||
cd /opt/ && \ | ||
tar cf /outputs/zfs-0.6.tar zfs-0.6 | ||
' | ||
|
||
docker commit $NAME dotmesh/zfs-userland-0.6-installed | ||
docker rm -f $NAME | ||
docker run --rm --name $NAME -i --privileged -v ${PWD}/outputs:/outputs dotmesh/zfs-userland-0.7 bash -c ' | ||
debootstrap bionic /opt/zfs-0.7 | ||
cd /var/cache && find . && \ | ||
groupadd crontab && groupadd messagebus && \ | ||
dpkg --root=/opt/zfs-0.7 -i /var/cache/apt/archives/libpython3*.deb | ||
dpkg --root=/opt/zfs-0.7 -i /var/cache/apt/archives/python3-minimal*.deb | ||
dpkg --root=/opt/zfs-0.7 -i /var/cache/apt/archives/*.deb | ||
cd /opt/ && \ | ||
tar cf /outputs/zfs-0.7.tar zfs-0.7 | ||
' |