1
0
mirror of https://github.com/kylemanna/docker-aosp synced 2025-06-07 16:06:17 +00:00

18 Commits

Author SHA1 Message Date
Kyle Manna
ecca921d2e Dockerfile: Install graphviz to enable product-graph
* This enables the `make product-graph` command to build a PDF
* Closes #16
2017-01-01 15:07:07 -08:00
Kyle Manna
92b000310e nougat: First pass at building 7.0
* Doesn't work, hangs-up with a java error.
* Work in progress.
2016-10-12 19:01:31 -07:00
Jean-Christophe Fillion-Robin
91ae4a8cdc utils/aosp: Update script and Dockerfile to work with any host user uid/gid
This commit introduces the "docker_entrypoint" script that will create
a user with uid/gid matching given `USER_ID` and `GROUP_ID` (or default to
`1000` if not provided).

Fixes #9

This approach works around missing docker feature discussed in
docker/docker#7198 and allow to have executable in the docker container
manipulating files in the shared volume owned by the `USER_ID:GROUP_ID`

The utility script `aosp` has also been updated to automatically
set `USER_ID` and `GROUP_ID` to the value matching the current user
by invoking "docker run" with

```
-e USER_ID=$(id -u) -e GROUP_ID=$(id -g)
```

Finally, the output has also been updated to be more verbose. For example:

```
$ AOSP_VOL=/home/jcfr/Projects/aosp-root/ aosp id
aosp: Checking if /home/jcfr/Projects/aosp-root/aosp exists
aosp: Checking if /home/jcfr/Projects/aosp-root/aosp exists - ok
aosp: Checking if /home/jcfr/Projects/aosp-root/ccache exists
aosp: Checking if /home/jcfr/Projects/aosp-root/ccache exists - ok

docker_entrypoint: Creating user UID/GID [1000/1000]
docker_entrypoint: Creating user UID/GID [1000/1000] - done
docker_entrypoint: Copying .gitconfig and .ssh/config to new user home
docker_entrypoint: Copying .gitconfig and .ssh/config to new user home - done
docker_entrypoint: Creating /tmp/ccache and /asop directory
docker_entrypoint: Creating /tmp/ccache and /asop directory - done

uid=1000(aosp) gid=1000(aosp) groups=1000(aosp)
```
2016-04-20 13:08:40 -04:00
Jean-Christophe Fillion-Robin
2ee12e4ebb Dockerfile: install latest version of JDK
The image now provides both openjdk-7 and openjdk-8
2016-04-19 20:40:24 -04:00
Jean-Christophe Fillion-Robin
d91e17da46 Dockerfile: Change ownership of /tmp/cache and /aosp directories
Suggested-by: Philipp Hug <philipp@hug.cx>
2016-04-19 13:48:45 -04:00
Jean-Christophe Fillion-Robin
6cbbd6c162 Dockerfile: Fix ownership of .gitconfig and .ssh 2016-04-19 13:48:14 -04:00
Jean-Christophe Fillion-Robin
ee01698be3 Dockerfile: Prefer COPY instead of ADD
See https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/#add-or-copy
2016-04-19 13:48:14 -04:00
Jean-Christophe Fillion-Robin
4d16a0fa30 Dockerfile: Add "aosp" group
See https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/#user

Suggested-by: Mathieu Maret <mmaret@genymobile.com>
2016-04-19 13:47:46 -04:00
Kyle Manna
08e85058e1 lollipop: Update to use OpenJDK 7
* Upstream uses OpenJDK 7, no more Oracle Java!
2015-03-02 14:47:04 -08:00
Kyle Manna
5aa929c97a Dockerfile: Point /bin/sh to bash instead of dash
* Per Android build directions.  Goal is to support older and random ROM
  forks that are broken for the forseeable future.
2014-12-15 15:45:49 -08:00
Kyle Manna
de575b73d6 Dockerfile: Add the bc package
* Apparently some kernels use bc to do math. Add it.
2014-12-05 10:51:59 -08:00
Kyle Manna
a549be5b6a Dockerfile: Squash VOLUME statements
* Merge VOLUME statements in to a simple statement to help make the
  resulting image slightly "flatter".
2014-11-21 12:25:34 -08:00
Kyle Manna
192cba106d Dockerfile: Add default SSH config
* Add a default ssh config that won't blow up due to empty/missing
  known_hosts file.
* Those concerned about security are expected to fork the repo and
  update the Dockerfile to include trusted values.
2014-11-21 12:24:31 -08:00
Kyle Manna
bdc92d0d06 Dockerfile: Fix CCACHE_DIR env variable
* Use the proper environmental variable
2014-11-16 13:57:45 -08:00
Davy Leggieri
8a6dee7c84 Fixed .gitconfig owner 2014-11-15 14:37:38 -08:00
Kyle Manna
55e5d196d2 Dockerfile: Use Oracle Java instead of OpenJDK
* Android complains otherwise.  It's apparenty there will need to be
  multiple docker versions with different JDKs for different Android
  builds.
2014-11-11 21:02:35 -08:00
Kyle Manna
afa8810c40 gitconfig: Add default gitconfig to ease repo init
* Provide a default gitconfig so that repo init won't prompt the user.
2014-11-11 12:18:35 -08:00
Kyle Manna
75cef9ca0f Dockerfile: Initial commit
* First attempt at a minimal Dockerfile.  Will need testing.
2014-11-10 21:11:52 -08:00