Docker Startup
TIP
推荐Compose 构建启动容器
λ docker run -it -v .:/root/.gradle -v .:/workspace --name cordova-builder01 --privileged -u 0 -e KEYSTORE_PATH=/workspace/xx.keystore -e KEY_ALIAS=xx -e KEYSTORE_PASSWORD=password -e KEY_PASSWORD=password gamesg/cordovabuilder:v1.0.0-rc.7 bash -c "ln -sfn /opt/app-env/build-scripts /workspace/build-scripts-short && ln -sf /dev/stdout nohup.log && exec /bin/bash"
bash
# Start the container
root@11bd0d4a12a9:/workspace# sh build-scripts-short/apk-init.sh
# 自动构建
root@11bd0d4a12a9:/workspace# sh build-scripts-short/apk-automatic.sh
# build-scripts-short
root@11bd0d4a12a9:/workspace# ll -ls build-scripts-short/
total 40
4 drwxr-xr-x 2 root root 4096 Feb 11 02:01 ./
4 drwxr-xr-x 1 root root 4096 Feb 11 02:01 ../
4 -rwxr-xr-x 1 root root 110 Feb 11 01:26 apk-automatic.sh*
4 -rwxr-xr-x 1 root root 468 Feb 11 01:40 apk-build.sh*
4 -rwxr-xr-x 1 root root 104 Feb 11 01:38 apk-build-sign.sh*
4 -rwxr-xr-x 1 root root 107 Feb 11 01:38 apk-build-sign-v2.sh*
4 -rwxr-xr-x 1 root root 2770 Feb 11 01:41 apk-init.sh*
4 -rwxr-xr-x 1 root root 838 Feb 11 01:45 apk-replace-repositories.sh*
4 -rwxr-xr-x 1 root root 1437 Feb 11 01:45 apk-sign.sh*
4 -rwxr-xr-x 1 root root 2095 Feb 11 01:45 apk-sign-v2.sh*
