Kyle Manna
224c2e0c03
Merge pull request #28 from robbyoconnor/6.0-marshmallow
...
Various updates for the MM branch
2017-07-15 21:05:54 -07:00
Robert O'Connor
99329daa31
store ccache volume in the source directory; volume incorrectly mapped
2017-07-15 19:49:14 -04:00
Robert O'Connor
5e98c9368e
CCache doesn't seem to be working -- add this in the entrypoint
2017-07-15 19:13:08 -04:00
Robert O'Connor
0760bb0b9c
Update to MM release 80
2017-07-15 17:35:30 -04:00
Robert O'Connor
95d3db881d
Add docker compose file and update README
2017-07-15 17:35:26 -04:00
Kyle Manna
fe5e5d753f
marshmallow: Test on marshmallow android-6.0.1_r72
...
* Works as expected.
2016-10-12 17:39:48 -07:00
Kyle Manna
b0aba84e4f
utils: Fix harmless entrypoint msg typo
...
* Oops.
2016-10-12 12:10:32 -07:00
Kyle Manna
0a678c7634
README: Add shields
...
* For street credit and style points
2016-04-21 08:55:22 -07:00
Kyle Manna
4fd3a9d184
Merge pull request #11 from jcfr/support-current-user-with-arbitrary-uid-gid
...
Update `Dockerfile` and `utils/aosp` to work with arbitrary uid gid
2016-04-21 06:59:51 -07:00
Jean-Christophe Fillion-Robin
f1b7f6a6fa
utils/aosp: If no AOSP_VOL is set, create aosp volume in current home
...
The script should not attempt to create a folder "/vol0" in the filesystem
of the host, instead the directory "~/aosp-root" is created.
2016-04-20 13:38:00 -04:00
Jean-Christophe Fillion-Robin
a5daaab9ae
docker_entrypoint: Default to 'bash' if no arguments are provided
2016-04-20 13:38:00 -04: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
d7f0c4fe4c
utils/aosp: Refactor code to display status message and remove chmod call
...
Now directories are owned by aosp user, there is not need to explicitly
chmod to 777. Current user will create and own the folder.
2016-04-19 13:48:55 -04:00
Jean-Christophe Fillion-Robin
d47f14dad0
utils/aosp: trim trailing slash of directories
2016-04-19 13:48:55 -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
9934955ab3
Add convenience Makefile to easily rebuild image
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
66505f7142
README: Clean-up some of the description a bit
...
* More coherent.
2015-08-16 09:46:02 -07:00
Kyle Manna
f2cb2e7428
tests: Update script to call bash for lollipop
...
* Call bash to avoid issue where user didn't `chmod +x` the script.
* Error without chmod:
exec: "run.sh": executable file not found in $PATH
2015-04-22 10:16:20 -07:00
Kyle Manna
bf49b4a69c
Merge branch '4.4-kitkat' into 5.0-lollipop
2015-04-22 10:16:00 -07:00
Kyle Manna
17bc9d864f
tests: Update bash script to call bash
...
* Call bash to avoid issue where user didn't `chmod +x` the script.
* Error without chmod:
exec: "run.sh": executable file not found in $PATH
2015-04-22 10:15:12 -07:00
Kyle Manna
a4a775650c
test: lollipop: Add initial script
...
* Create a lollipop test script.
2015-03-02 21:17:13 -08: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
60f35c2793
kitkat: Pull kitkat Docker tag
...
* Pull the correct docker tag
2015-03-02 14:46:53 -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
de4be1ce45
tests: Add kitkat sync test
...
* Create a simple script to test fetching of a repo.
* Very useful for testing local git mirrors.
2014-12-02 16:52:33 -08:00
Kyle Manna
7bfc33c44e
tests: Manifest overrides for build-kitkat
...
* Allow environment variables to override the TEST_* variables to chagne
the branch and manifest url.
* Breaks hard link to Google's source repos (which have quotas...).
2014-12-02 16:52:26 -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
Kyle Manna
5116546c02
README: Help the OS X and Windows lusers
...
* Help the users of handicapped operating systems.
* All in fun...
2014-11-16 10:56:01 -08:00
Kyle Manna
b1cba0780b
README: Add quickstart guide
...
* Quick illustration for the impatient.
2014-11-16 10:33:21 -08:00
Kyle Manna
abcc93fb6b
README: First stab at a useful README
...
* Explains how I expect things to work.
2014-11-16 09:59:24 -08:00
Kyle Manna
44a375fd27
tests: Update build-kitkat with invocation example
...
* To help convey my intent
2014-11-16 09:58:50 -08:00
Kyle Manna
723adaac52
tests: Only fetch $cpu repos in parallel
...
* Avoid repo/git fetch errors by being less agressive.
2014-11-16 09:44:12 -08:00
Kyle Manna
f6670dac8c
Merge pull request #2 from bydavy/FixedReadlink
...
Fixed readlink for OS X
2014-11-15 16:21:12 -08:00
Kyle Manna
afa63561fd
Merge pull request #4 from bydavy/fixedGitConfig
...
Fixed .gitconfig owner
2014-11-15 16:20:10 -08:00
Davy Leggieri
8a6dee7c84
Fixed .gitconfig owner
2014-11-15 14:37:38 -08:00
Davy Leggieri
93703de2aa
Fixed readlink for OS X
2014-11-15 14:11:03 -08:00
Kyle Manna
683126f05c
utils: build-kitkat smarter aosp invocation
...
* Attempt to find the aosp binary with the following priority:
1. If AOSP_BIN is set, use that
2. If aosp is found in the shell $PATH
3. Grab it from the web
2014-11-13 14:47:26 -08:00
Kyle Manna
4be024356f
aosp: Fix volume directory existence test
...
* Typo.
2014-11-12 08:47:40 -08:00
Kyle Manna
55125c6fd2
aosp: Don't run sudo unless necessary
...
* Clean-up miscellaneous things
* Allow /vol0/aosp to be overridden
* Avoid calling sudo for no reason
2014-11-11 22:07:51 -08:00
Kyle Manna
8197ce17cf
tests: Add kitkat build
...
* Simple test.
2014-11-11 21:35:34 -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
9d55dd4c0f
utils: aosp: Add additional args to append
...
* Add ability append args without overriding
2014-11-11 19:01:11 -08:00
Kyle Manna
3de604fbc3
utils: Add AOSP wrapper
...
* Add simple wrapper for making it easier to use the docker wrapper
2014-11-11 14:49:22 -08:00