Fun building Android apps in Docker containers.
The Camlistore Uploader should be on the Android Play Market Store soon is available at https://play.google.com/store/apps/details?id=org.camlistore This is how I built the release apk. Step 0: note that I don't want Java on my computer. Realize that Docker would work here too. Step 1: find https://index.docker.io/u/wasabeef/android/ -- a trusted build of all the goodies. Step 2: extend it with Camlistore stuff: https://github.com/bradfitz/camlistore/blob/master/clients/android/devenv/Dockerfile Note that we build an ARM version of Go there, since the Camlistore uploader uses a Go ARM child process, under the main Java app. Step 3: little Perl script that runs in the container: https://github.com/bradfitz/camlistore/blob/master/clients/android/build-in-docker.pl Step 4: little Make glue I run from the host: https://github.com/bradfitz/camlistore/blob/master/clients/android/Makefile Now I can just type: $ make dockerrelease To build a new release APK using Docker. Or +Nick O'Neill or +Aaron Boodman or anybody else hacking on the code can, and get the same binary, with no host configuration hell. If you have Docker installed, the rest just works.










