Sign inSign up

bwilkin/ionic-dev

By bwilkin

•Updated almost 10 years ago

Ionic 2 development within Docker

Image
0

10K+

bwilkin/ionic-dev repository overview

Centos with node, java JDK, and android SDK installed for Android development.

This image was built for development via Mac, these steps are intended for that use case.

Local Development Usage: Run the image from the location of the project code (ex. /home/username/Projects/projectName) - docker run -i -t -v :/webapp -p 8080:8100 bwilkin/ionic-dev bash Run the application - cd /webapp/ - npm install - ionic serve (when prompted where to run from, select the ip address rather than localhost) The application will be accessible at http://localhost:8080⁠ on the host machine.

Android Development: Update the Android SDK in the docker container - cd /opt/android-sdk/tools - android list sdk --all - android update sdk -u -a -t (ex: 1,2,5,28,102,137,138,144 for SDK version 24) Build the android apk - cd /webapp/ - npm install - ionic add platform android - ionic build android Copy the apk to the host machine - docker cp :/webapp//platforms/android/build/outputs/apk/android-debug.apk . Start an android emulator Drag and drop the apk into the emulator

TODO: - Get emulator working, from the docker container

Tag summary

Content type

Image

Digest

Size

1.9 GB

Last updated

almost 10 years ago

docker pull bwilkin/ionic-dev