1*9e94795aSAndroid Build Coastguard WorkerThe Dockerfile in this directory sets up an Ubuntu Trusty image ready to build 2*9e94795aSAndroid Build Coastguard Workera variety of Android branches (>= Lollipop). It's particulary useful to build 3*9e94795aSAndroid Build Coastguard Workerolder branches that required 14.04 if you've upgraded to something newer. 4*9e94795aSAndroid Build Coastguard Worker 5*9e94795aSAndroid Build Coastguard WorkerFirst, build the image: 6*9e94795aSAndroid Build Coastguard Worker``` 7*9e94795aSAndroid Build Coastguard Worker# Copy your host gitconfig, or create a stripped down version 8*9e94795aSAndroid Build Coastguard Worker$ cp ~/.gitconfig gitconfig 9*9e94795aSAndroid Build Coastguard Worker$ docker build --build-arg userid=$(id -u) --build-arg groupid=$(id -g) --build-arg username=$(id -un) -t android-build-trusty . 10*9e94795aSAndroid Build Coastguard Worker``` 11*9e94795aSAndroid Build Coastguard Worker 12*9e94795aSAndroid Build Coastguard WorkerThen you can start up new instances with: 13*9e94795aSAndroid Build Coastguard Worker``` 14*9e94795aSAndroid Build Coastguard Worker$ docker run -it --rm -v $ANDROID_BUILD_TOP:/src android-build-trusty 15*9e94795aSAndroid Build Coastguard Worker> cd /src; source build/envsetup.sh 16*9e94795aSAndroid Build Coastguard Worker> lunch aosp_arm-eng 17*9e94795aSAndroid Build Coastguard Worker> m -j50 18*9e94795aSAndroid Build Coastguard Worker``` 19