Kyle Manna
dd9995aae6
Merge pull request #33 from robbyoconnor/patch-1
...
MM now uses release 80.
2017-07-19 12:54:37 -07:00
Robert (Robby) O'Connor
e494ee9757
MM now uses release 80.
2017-07-18 22:18:24 -04:00
Kyle Manna
de429a4c20
Merge pull request #29 from robbyoconnor/master
...
[master] CCache doesn't seem to be working -- add this in the entrypoint
2017-07-15 21:06:42 -07:00
Robert O'Connor
9e0d100829
store ccache volume in the source directory
2017-07-15 19:50:24 -04:00
Robert O'Connor
3a961ec2a1
CCache doesn't seem to be working -- add this in the entrypoint
2017-07-15 19:14:46 -04:00
Kyle Manna
a1beead8d4
Merge pull request #27 from robbyoconnor/master
...
Update MM to release 80
2017-07-15 08:30:49 -07:00
Robert O'Connor
df8a6fb599
Update MM to release 80
2017-07-15 07:43:59 -04:00
Kyle Manna
f677aeff94
Merge pull request #25 from robbyoconnor/add-docker-compose
...
Add docker compose file and update README
2017-07-14 07:54:31 -07:00
Robert O'Connor
0c22eaeba0
Add docker compose file and update README
2017-07-13 22:53:11 -04:00
Kyle Manna
b2de3208cb
Merge pull request #24 from robbyoconnor/update-to-r79
...
Update to MM r79
2017-07-13 06:56:49 -07:00
Robert O'Connor
2b4eec31b9
Update to MM r79 for MM test
2017-07-12 22:00:59 -04:00
Kyle Manna
48da94bd4b
README: Add macOS warning
...
* Warn about macOS performance and suggest workaround
* Closes #20 #19
2017-01-09 13:34:06 -08:00
Kyle Manna
edfe0db562
aosp: Check that SSH_AUTH_SOCK points to a socket
...
* Only setup the volume mount if it points to a socket.
* Resolves #14
2017-01-01 23:00:59 -08:00
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
ab9f7515dd
utils/aosp: Only pass UID and GID arguments if NOT root
...
* Running as root will (among other things) try to re-create the root
user in the container. Avoid this by not passing the arguments and
letting the container use its defaults.
2016-10-14 20:51:18 -07:00
Kyle Manna
9e4c52f282
README: Fix pre-formatted code
...
* Fix the apparently missing space.
2016-10-14 20:06:24 -07:00
Kyle Manna
4ac164b304
README: Fix image layers badger
...
* Use the microbadger service instead.
2016-10-13 15:07:13 -07:00
Kyle Manna
c2764be332
entrypoint: Preserve ENV variables
...
A few ENV variables are set in the Docker file, most notably those
related to ccache. The move to a docker entrypoint script called
sudo to switch to the AOSP user and reset the ENV varibles.
Preserve these variables so that things set in the Dockerfile are
inherited by the environment as expected.
2016-10-13 14:53:41 -07:00
Kyle Manna
e6d066ea2e
README: Add nougat as working
...
* Apparently my last build had left over artifacts from another build.
* Nougat appears to work just fine.
2016-10-12 21:53:33 -07: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
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