https://github.com/rabilrbl/aosp-build
https://github.com/rabilrbl/aosp-build
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rabilrbl/aosp-build
- Owner: rabilrbl
- License: mit
- Created: 2023-02-25T12:55:20.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-17T11:34:49.000Z (over 1 year ago)
- Last Synced: 2025-04-05T19:42:24.041Z (6 months ago)
- Language: Dockerfile
- Size: 44.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AOSP-Build
This repository contains a Docker image to compile AOSP (Android Open Source Project) Roms.
> All dependencies on the image will remain up to date as build workflow runs every day at 10:00 UTC.
## Pulling the Docker image
The aosp-build Docker image can be pulled from both ghcr.io and Docker Hub.
### GitHub Container Registry (`ghcr.io`):
```sh
docker pull ghcr.io/rabilrbl/aosp-build:latest
```### Docker Hub:
```sh
docker pull rabilrbl/aosp-build:latest
```## Building the Docker image
The aosp-build Docker image can be built from the Dockerfile in this repository.
```sh
docker build -t aosp-build .
```
All build arguments specified below are optional.### Build arguments
- `GIT_NAME`: Name to use for git commits. Default: `AospB`
- `GIT_EMAIL`: Email to use for git commits. Default: `20230226+aospb@users.noreply.github.com`
- `PULL_REBASE`: Perform rebase instead of merge when pulling. Default: `true`You can pass build arguments to the build command like this:
```sh
docker build -t aosp-build --build-arg GIT_NAME="John Doe" --build-arg GIT_EMAIL="john@doe.com" .
```
## TagsThe aosp-build Docker image is tagged with all available branches in this repository. The `latest` tag is the default branch.
### Using a specific tag or branch
```sh
docker pull ghcr.io/rabilrbl/aosp-build:main
```---
Please note that the Docker image is built on top of the [Ubuntu latest](https://hub.docker.com/_/ubuntu) image.