Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 1.15 KB

README.md

File metadata and controls

58 lines (42 loc) · 1.15 KB

docker-ionic-cordova

Docker image for building Ionic apps with Cordova.

How to use this image

Build image

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 image

Run the docker image:

docker run -it robingenz/ionic-cordova

CI Configuration

GitLab

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

Questions / Issues

If you got any questions or problems using the image, please visit my GitHub Repository and write an issue.