Table of Contents
Building programs is made using a independant environment.
The indenpendant environement is basically a folder you can chroot in and compile programs from. The build toolchain is located in an non standard location (/tools in our case), in oder to copy compiled programs in standard locations (/bin, /usr/bin, etc).
The Wakes independant build environment (the toolchain) is widely based on the LFS 7.5 temporary system. In addition to it, the following programs were added:
ksh zlib iproute2 openssl openssh vi wget procps libtar libarchive libcurl
The goal is to create a docker image instead of using a basic chroot script to enter the image. Once the toolchain folder is ready, create the docker image:
tar -C /toolchain -c . | docker import - toolchain
Then you can start a container from this image:
docker run -d -p 2222:22 -it toolchain /tools/sbin/sshd -D
and enter the image using ssh:
ssh -p 2222 root@0