CI/CD React Native with Node.js docker image
406
android-sdk/ and other cache like npm will automatically grows when building apk or e.g. npm install, so mount them into docker container is better than docker-rn-nodejs for CI/CD, then run bellow in the container:
export YARN_CACHE_FOLDER=/cache/yarn
export NPM_CONFIG_CACHE=/cache/npm
export GRADLE_USER_HOME=/cache/gradle
export ANDROID_SDK_HOME=/cache/android
export ANDROID_HOME=/cache/opt/android-sdk
export PATH=$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH
set +o pipefail
yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses
set -o pipefail
where /cache/ is mounted volume for example.
Now this container can build react-native apk.
Content type
Image
Digest
Size
877.9 MB
Last updated
about 8 years ago
docker pull flyskywhy/java-nodejs