Skip to content

Instantly share code, notes, and snippets.

@KunYi
Last active July 17, 2023 09:36
Show Gist options
  • Save KunYi/ae1e0c3082be255eb0eab9f01cfa3942 to your computer and use it in GitHub Desktop.
Save KunYi/ae1e0c3082be255eb0eab9f01cfa3942 to your computer and use it in GitHub Desktop.
entry container for android 6 with intel platform
#!/bin/bash
WORKSPACE=$PWD
docker run --privileged -it \
--rm \
--volume=${WORKSPACE}:/droid \
--hostname droid-build \
android-build-trusty:latest
exit 0
# the below this my environments
#!/bin/bash
CCACHE_DIR=/home/kunyi/droid6_ccache
T_CCACHE_DIR=/tmp/ccache
mkdir -p /tmp/ccache
rsync -ah ${CCACHE_DIR}/ ${T_CCACHE_DIR}
#mkdir -p ${CCACHE_DIR}
#ccache --max-size 30G --dir ${CCACHE_DIR}
WORKSPACE=$PWD
docker run -it \
--rm \
--volume=/tmp:/tmp \
--volume=${WORKSPACE}:/droid \
--volume=${T_CCACHE_DIR}:${T_CCACHE_DIR} \
--env DISPLAY=${DISPLAY} \
--env USE_CCACHE=true \
--env CCACHE_DIR=${T_CCACHE_DIR} \
--net host \
--hostname droid-build \
--workdir /droid \
android-build-trusty:latest
rsync -ah ${T_CCACHE_DIR}/ $CCACHE_DIR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment