Git Product home page Git Product logo

docker-lfs-build's Introduction

本地构建Docker镜像

x86_64平台

sh -x 10.buildDockerImageX86_64.sh

arm64平台

sh -x 11.buildDockerImageAarch64.sh

构建

sh -x 20.buildLFS.sh

sh -x 30.makeiso.sh

最终得到dist/lfs.iso,参考如下

[yeqiang@harbor docker-lfs-build]$ ls -lh dist/
total 1.3G
-rw-r--r-- 1 root root 193M 2021-02-23 11:40:28 lfs.bz2
-rw-r--r-- 1 root root 202M 2021-02-23 11:40:29 lfs.iso
-rw-r--r-- 1 root root 977M 2021-02-23 11:40:28 lfs.ram


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

docker-lfs-build's People

Contributors

evilfreelancer avatar hknarutofk avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.