Skip to content

Commit a137740

Browse files
committed
.
1 parent ad575f0 commit a137740

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

e2fsprogs/.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*

e2fsprogs/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/out

e2fsprogs/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
33
RUN sed -i 's|security.debian.org|mirrors.ustc.edu.cn/debian-security|g' /etc/apt/sources.list
44
RUN apt update
55
RUN apt install -y gcc dietlibc-dev aria2 make
6-
RUN cd /
6+
RUN mkdir /src
7+
RUN cd /src
78
RUN aria2c -k 1048576 -s 32768 -j 32768 -x 16 -k 1M http://prdownloads.sourceforge.net/e2fsprogs/e2fsprogs-1.45.2.tar.gz
89
RUN tar -xzvf e2fsprogs-1.45.2.tar.gz
9-
RUN cd /e2fsprogs-1.45.2
10-
RUN ./configure --disable-threads --disable-tls --disable-nls --with-diet-libc --disable-imager --disable-debugfs --disable-defrag --disable-fuse2fs --disable-fsck --disable-e2initrd-helper
10+
RUN cd /src/e2fsprogs-1.45.2
11+
RUN ./configure --prefix=/src --disable-threads --disable-tls --disable-nls --with-diet-libc --disable-imager --disable-debugfs --disable-defrag --disable-fuse2fs --disable-fsck --disable-e2initrd-helper
1112
RUN make -j4
13+
RUN make install

e2fsprogs/run.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
set -e
3+
img="$(basename "$(mktemp -u)")"
4+
docker build -t "$img" .
5+
rm -fr out
6+
mkdir out
7+
docker run -it --rm -v "$(pwd)/out:/out" "$img" cp -vr /src/ /out/
8+
docker rmi "$img"

0 commit comments

Comments
 (0)