|
||
---|---|---|
.env | ||
.gitignore | ||
docker-build.sh | ||
docker-compose.yml | ||
docker-entrypoint.sh | ||
Dockerfile | ||
HOW_TO_FLASH.md | ||
LICENSE | ||
README.md |
How to Build UbtouchOS with Docker
Why Docker?
Using Docker ensures all required dependencies are pre-installed and properly configured.
You don’t need to install complex toolchains or modify your host system.
Requirements
Software
-
Docker
Install Docker using the official script:curl -fsSL https://get.docker.com | sh
-
Git Install Git
-
Repo tool Install the Google
repo
tool:mkdir -p ~/bin curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo chmod a+x ~/bin/repo export PATH=~/bin:$PATH
Hardware
-
Disk: ~30 GB (source code and build artifacts). SSD recommended
-
CPU: 64-bit processor (Intel i5/i7 or AMD Ryzen 5/7 and above recommended, 8 cores or more preferred)
-
Memory:
- Minimum: 16 GB RAM
- Bare minimum: 8 GB RAM (with swap; builds will be very slow and unstable)
Usage
-
Clone this repo to your local machine and navigate into it:
git clone https://git.os-source.co/UbuntuTouchOs/build.git cd build
-
Clone the brax3 ubports into the
UbuntuTouchOs/build
checkout directory:git clone https://git.os-source.co/UbuntuTouchOs/brax3-ubports brax3
-
Start the build with Docker:
docker compose up -d
-
Check the build logs and wait:
docker logs -f repo_build_ubtouch
-
Once the "success message" appears in the logs (this typically takes 10-30 minutes, depending on your hardware, navigate to the brax3/out folder to find your fastboot images:
ls -la brax3/out | grep ubuntu.img -rw-r--r-- 1 root root 1433058439 Sep 23 16:50 ubuntu.img
-
After building, follow the flashing instructions in HOW_TO_FLASH.md to install the images onto your phone.
Licensing
LunarOS/build is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.