Skip to content

mikangali-docker/ionic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ionic Docker

A ionic 3 image, ready for Gitlab CI android builds

Docker ionic

This images ise based on android docker (ubuntu) image.

Docker android

Features

  • NodeJs v8
  • Ionic 3
  • Cordova 8
  • Android-25

Usage

  • Run container
# simple run
docker run -ti --rm -p 8100:8100 -p 35729:35729 mikangali/ionic

# usb support & automation
docker run -ti --rm -p 8100:8100 -p 35729:35729 --privileged -v /dev/bus/usb:/dev/bus/usb -v ~/.gradle:/root/.gradle -v \$PWD:/app:rw mikangali/ionic ionic
  • Use in Gitlab CI

Sample gitlab-ci config using mikangali/ionic image

image: mikangali/ionic

stages:
  - package

before_script:
  - npm install

cache:
  paths:
  - node_modules/

compile_android:
  stage: package
  script:
    - ionic build android
  artifacts:
    paths:
      - platforms/android/build/outputs/apk/