All Projects → marcoturi → ionic-docker

marcoturi / ionic-docker

Licence: MIT License
An ionic image for CI

Programming Languages

Dockerfile
14818 projects

Projects that are alternatives of or similar to ionic-docker

ionic-vue-mobile-template-03
Hybrid app template built with vue, ionic and capacitor.
Stars: ✭ 62 (+10.71%)
Mutual labels:  cordova, ionic
ionic-travis
Ionic app demo built with Travis CI
Stars: ✭ 15 (-73.21%)
Mutual labels:  ionic, ci
travis-ci-ionic-yml
An example configuration of Ionic/cordova + NPM + AngularJS + Android continuous integration setup on Travis CI
Stars: ✭ 21 (-62.5%)
Mutual labels:  cordova, ionic
ionic-resource-generator
Painless, Offline First, No Dependency, Ionic resources generator
Stars: ✭ 31 (-44.64%)
Mutual labels:  cordova, ionic
cordova-plugin-flurryanalytics
Adds support for all that Flurry Analytics flavored goodness to your Cordova based apps
Stars: ✭ 23 (-58.93%)
Mutual labels:  cordova, ionic
Ioniclub
❤️ Ioniclub is hybird mobile app of https://cnodejs.org
Stars: ✭ 35 (-37.5%)
Mutual labels:  cordova, ionic
v-cupertino
A Vue 3 Wrapper for Cupertino Pane Library
Stars: ✭ 17 (-69.64%)
Mutual labels:  cordova, ionic
dohq-ai-best-practices
Внедрение и эксплуатация PT Application Inspector. Подробнее: https://habr.com/ru/company/pt/blog/557142/
Stars: ✭ 22 (-60.71%)
Mutual labels:  ci, gitlab-ci
docker-coala-base
coala base docker image
Stars: ✭ 20 (-64.29%)
Mutual labels:  ci, gitlab-ci
Mobile.UP
Mobile.UP
Stars: ✭ 13 (-76.79%)
Mutual labels:  cordova, ionic
ellenorzo
Arisztokréta: Nem hivatalos KRÉTA-kompatibilis ellenőrző alkalmazás
Stars: ✭ 17 (-69.64%)
Mutual labels:  cordova, ionic
cordova-plugin-apkupdater
This plugin allows your Android app to download and install compressed updates without the Google Play Store.
Stars: ✭ 46 (-17.86%)
Mutual labels:  cordova, ionic
mobile-messaging-cordova-plugin
Mobile Messaging SDK plugin for Cordova projects
Stars: ✭ 19 (-66.07%)
Mutual labels:  cordova, ionic
cordova-set-version
CLI and JavaScript API for setting the version in Apache Cordova config.xml
Stars: ✭ 19 (-66.07%)
Mutual labels:  cordova, ionic
angular-cordova
Angular wrapper for Cordova
Stars: ✭ 21 (-62.5%)
Mutual labels:  cordova, ionic
ionic-3-video-calling-using-webrtc
This is demo code of how to implement video calling in ionic 3 using webrtc
Stars: ✭ 58 (+3.57%)
Mutual labels:  cordova, ionic
cordova-plugin-amap
Amap Maps plugin for Cordova
Stars: ✭ 51 (-8.93%)
Mutual labels:  cordova, ionic
ionic-hockeyapp
Need HockeyApp in your Ionic application, add this package!
Stars: ✭ 19 (-66.07%)
Mutual labels:  cordova, ionic
bitpocket-mobile-app
Mobile app for accepting bitcoin payments at the point of sale (Bitcoin POS).
Stars: ✭ 26 (-53.57%)
Mutual labels:  cordova, ionic
example-cordova-code-push-plugin
Ionic + Cordova Code Push Plugin Example
Stars: ✭ 45 (-19.64%)
Mutual labels:  cordova, ionic

MIT licensed Docker Hub

Ionic-docker

A ionic 1/2 image to be used with Gitlab CI

Inspired by:

Features

  • Node
  • Npm or Yarn
  • Ionic
  • Cordova
  • Android sdk and build tools
  • Ready to run Google Chrome Headless for e2e tests
  • Ruby
  • Scss-lint support

Usage

docker run -ti --rm -p 8100:8100 -p 35729:35729 marcoturi/ionic

If you have your own ionic sources, you can launch it with:

docker run -ti --rm -p 8100:8100 -p 35729:35729 -v /path/to/your/ionic-project/:/myApp:rw marcoturi/ionic

Automation

With this alias:

alias ionic="docker run -ti --rm -p 8100:8100 -p 35729:35729 --privileged -v /dev/bus/usb:/dev/bus/usb -v ~/.gradle:/root/.gradle -v \$PWD:/myApp:rw marcoturi/ionic ionic"

Due to a bug in ionic, if you want to use ionic serve, you have to use --net host option :

alias ionic="docker run -ti --rm --net host --privileged -v /dev/bus/usb:/dev/bus/usb -v ~/.gradle:/root/.gradle -v \$PWD:/myApp:rw marcoturi/ionic ionic"

Know you need gradle for android, I suggest to mount ~/.gradle into /root/.gradle to avoid downloading the whole planet again and again

you can follow the ionic tutorial (except for the ios part...) without having to install ionic nor cordova nor nodejs on your computer.

ionic start myApp tabs
cd myApp
ionic serve
# If you didn't used --net host, be sure to chose the ip address, not localhost, or you would not be able to use it

open http://localhost:8100 and everything works.

Android tests

You can test on your android device, just make sure that debugging is enabled.

cd myApp
ionic cordova platform add android
ionic cordova build android
ionic cordova run android

FAQ

  • The application is not installed on my android device
    • Try docker run -ti --rm -p 8100:8100 -p 35729:35729 --privileged -v /dev/bus/usb:/dev/bus/usb -v \$PWD:/myApp:rw marcoturi/ionic adb devices your device should appear
  • The adb devices show nothing whereas I can see it when I do adb devices on my computer
    • You can't have adb inside and outside docker at the same time, be sure to adb kill-server on your computer before using this image
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].