Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
17 Commits
 
 
 
 
 
 

Repository files navigation

Docker container for NativeScript development

docker-badge

demo-video

Content

Why?

I wanted to explore NativeScript but didn't want to install and configure Java, Android SDK, Ant, etc. Life is too short so I created a Docker container with everything needed to run it.
Here is the relevant blog post: http://oren.github.io/blog/nativescript.html

Setup

git clone git@github.com:oren/docker-nativescript.git
cd docker-nativescript
docker build -t nativescript .
alias tns='docker run -it --rm --privileged -v /dev/bus/usb:/dev/bus/usb -v $PWD:/src nativescript tns'

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

New Project

tns create hello
cd hello
tns platform add android
tns run android

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

References

The image is a modification of https://github.com/Kallikrein/dockerfiles/tree/master/android-cordova

About

NativeScript in Docker

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.