Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.
/ docker-cordova Public archive
forked from oren/docker-cordova

Docker container for Cordova development

Notifications You must be signed in to change notification settings

dukecon/docker-cordova

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker container for Cordova development

docker-badge

demo-video

Content

Why?

I don't want to install and configure Java, Android SDK, Ant, cordova etc.. life is too short.

Setup

git clone [email protected]:oren/docker-cordova.git
cd docker-cordova
docker build -t cordova .
alias mine='sudo chown -R $USER'
alias drun='docker run -it --rm'
alias cordova='drun --privileged -v /dev/bus/usb:/dev/bus/usb -v $PWD:/src cordova cordova'

The alias command lets you use cordova for running any command inside the cordova container.

New Project

cordova create hello
cd hello
cordova platform add android
cordova build

Connect your android device to your laptop with a usb

cordova run android

That's it, your app should be on your phone!

Useful commands

List of attached devices. make sure you see your phone in that list.

docker run --rm -i -v $(pwd):/workspace -w /workspace --privileged -v /dev/bus/usb:/dev/bus/usb cordova adb devices

References

The image is based on https://github.com/Kallikrein/dockerfiles/tree/master/android-cordova~/projects/myAPP

About

Docker container for Cordova development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published