Build BusyBox in Docker
Build BusyBox in Docker
Download BusyBox
1 2 3 4 5 6 7 8 9 10 11 12 13
|
06/09 13:43:20 [NOTICE] Downloading 1 item(s)
06/09 13:43:21 [NOTICE] Download complete: /tmp/tmp.e6xObfyoNJ/busybox-1.31.1.tar.bz2
Download Results: gid |stat|avg speed |path/URI ======+====+===========+======================================================= 201313|OK | 12MiB/s|/tmp/tmp.e6xObfyoNJ/busybox-1.31.1.tar.bz2
Status Legend: (OK):download completed.
|
Build BusyBox by Fedora
Create the Container
Setup repository mirrors
Only if you are happy with the my repository settings of Fedora.
Install packages
1 2 3
|
bzip2 which findutils diffutils file procps-ng make gcc
|
Build BusyBox
Verification
1 2 3 4 5 6 7 8 9
| 944 busybox 1108 busybox_unstripped
busybox: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=17eedba515201d32d51f6d010dab4058562cd300, for GNU/Linux 3.2.0, stripped busybox_unstripped: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=17eedba515201d32d51f6d010dab4058562cd300, for GNU/Linux 3.2.0, not stripped
|
Build BusyBox by Ubuntu or Debian
Create the Container
For Ubuntu:
For Debian:
Setup repository mirrors
Only if you are happy with the my repository settings of Ubuntu or Debian.
For Ubuntu:
For Debian:
Install packages
1 2 3
|
bzip2 findutils diffutils file procps make gcc libc6-dev
|
Build BusyBox
Verification
For Ubuntu:
1 2 3 4 5 6 7 8 9
| 1024 busybox 1192 busybox_unstripped
busybox: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=716c4b5f55a8fa42cc3d2935320ec949a25a628d, stripped busybox_unstripped: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=716c4b5f55a8fa42cc3d2935320ec949a25a628d, not stripped
|
For Debian:
1 2 3 4 5 6 7 8 9
| 984 busybox 1148 busybox_unstripped
busybox: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=af33517e2bf0576ee99f201ef211b3cf1a1c4d28, stripped busybox_unstripped: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=af33517e2bf0576ee99f201ef211b3cf1a1c4d28, not stripped
|