mosh/Android build VM

To Download the VM image:

docker pull ddrown/mosh-build

To build mosh binaries:

OUTPUTDIR=~/target
mkdir $OUTPUTDIR
docker run -v $OUTPUTDIR:/target ddrown/mosh-build

This will create 6 binaries in $OUTPUTDIR/bin: mosh-client.arm.nopie, mosh-client.arm.pie, mosh-client.x86.nopie, mosh-client.x86.pie, mosh-client.mips.nopie, and mosh-client.mips.pie. See the file "test.txt" for the output of running mosh-client with no arguments with each of these binaries on various Android versions and platforms.

To build a modified mosh:

OUTPUTDIR=~/target
mkdir $OUTPUTDIR
docker run -i -t -v $OUTPUTDIR:/target ddrown/mosh-build /home/admin/shell
[make modifications]
/home/admin/build

Additional info

Docker Registry Entry, Dockerfile source, mosh source, ncurses source, protobuf source, openssl source.