Docker image for building Ionic apps with Cordova.
Build from GitHub:
docker build -t robingenz/ionic-cordova github.com/robingenz/docker-ionic-cordova
Available build arguments:
- JAVA_VERSION
- NODEJS_VERSION
- ANDROID_SDK_VERSION
- ANDROID_BUILD_TOOLS_VERSION
- IONIC_CLI_VERSION
- CORDOVA_CLI_VERSION
Run the docker image:
docker run -it robingenz/ionic-cordova
Here is a sample .gitlab-ci.yml
file:
image: robingenz/ionic-cordova
stages:
- build
build_android:
stage: build
cache:
paths:
- node_modules/
- plugins/
script:
- npm ci
- ionic cordova build android
artifacts:
paths:
- platforms/android/app/build/outputs/apk/debug
If you got any questions or problems using the image, please visit my GitHub Repository and write an issue.