Skip to content

Commit

Permalink
ubuntu 18.04, python3, los16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sky321 committed Nov 23, 2019
1 parent 3ada691 commit e27c721
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ This project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased][unreleased]

## [0.9.0] - 2019-11-23
### Added by sky
- Ubuntu 18.04
- Adjust LineageOS version to lineage-16.0
- link python to python3

## [0.8.0] - 2018-11-19
### Added
- Update build dependencies
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Build environment for LineageOS

FROM ubuntu:16.04
FROM ubuntu:18.04
MAINTAINER Michael Stucki <[email protected]>


Expand Down Expand Up @@ -76,6 +76,8 @@ RUN \
RUN curl https://storage.googleapis.com/git-repo-downloads/repo > /usr/local/bin/repo \
&& chmod a+x /usr/local/bin/repo

RUN ln -s /usr/bin/python3 /usr/bin/python

# Add sudo permission
RUN echo "build ALL=NOPASSWD: ALL" > /etc/sudoers.d/build

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ docker-lineageos

Create a [Docker] based environment to build [LineageOS].

This Dockerfile will create a docker container which is based on Ubuntu 16.04.
This Dockerfile will create a docker container which is based on Ubuntu 18.04.
It will install the "repo" utility and any other build dependencies which are required to compile LineageOS (formerly known as CyanogenMod).

The main working directory is a shared folder on the host system, so the Docker container can be removed at any time.

**NOTE:** Remember that LineageOS is a huge project. It will consume a large amount of disk space (~80 GB) and it can easily take hours to build.
**NOTE:** Remember that LineageOS is a huge project. It will consume a large amount of disk space (~120 GB) and it can easily take hours to build.

### How to run/build

Expand Down Expand Up @@ -38,7 +38,7 @@ If you're on Linux and want to use adb from within the container running with `-
### How to build LineageOS for your device

```
repo init -u git://github.com/lineageos/android.git -b lineage-15.1
repo init -u git://github.com/lineageos/android.git -b lineage-16.0
repo sync -c -j 16
source build/envsetup.sh
breakfast <device codename> # example: breakfast grouper
Expand Down
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ CCACHE=$(pwd)/ccache
CONTAINER_HOME=/home/build
CONTAINER=lineageos
REPOSITORY=stucki/lineageos
TAG=lineage-15.1
TAG=lineage-16.0
FORCE_BUILD=0
PRIVILEGED=
ENVIRONMENT=
Expand Down

0 comments on commit e27c721

Please sign in to comment.