Skip to content
Linux From Scratch build environment
Shell Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
book
image
sources
.bash_profile
.bashrc
.gitignore
Dockerfile
README.md
docker-compose.yml.dist

README.md

Linux From Scratch builder in Docker container

This repository is a collection of scripts created especially to automate the build process of Linux From Scratch (LFS).

Current stable version of LFS is 8.3

How to use

You need to install docker and docker-compose before you begin, if you not have it yet.

Normal usage

Clone from github and prepare the repository:

git clone https://github.com/EvilFreelancer/docker-lfs-build.git
cd docker-lfs-build
cp docker-compose.yml.dist docker-compose.yml

Start container:

docker-compose up -d

Then login to LFS container:

docker-compose exec lfs bash

Start building:

/book/book.sh

Result of building will be in dist folder.

Download from Docker Hub

docker pull evilfreelancer/docker-lfs-build

Create your custom docker-compose.yml file

version: '2'

services:
  lfs:
    restart: unless-stopped
    image: evilfreelancer/docker-lfs-build
    volumes:
      - ./dist:/dist
    # You can set any entrypoint what you like, for example "inf sleep"
    # by default here is ["/book/book.sh"]
    entrypoint: ["sleep", "inf"]

Links

You can’t perform that action at this time.