Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oren/docker-nativescript
NativeScript in Docker
https://github.com/oren/docker-nativescript
Last synced: 3 months ago
JSON representation
NativeScript in Docker
- Host: GitHub
- URL: https://github.com/oren/docker-nativescript
- Owner: oren
- Created: 2015-07-06T00:43:26.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-28T03:45:56.000Z (over 7 years ago)
- Last Synced: 2024-01-07T22:50:52.463Z (6 months ago)
- Homepage: https://www.nativescript.org/
- Size: 2.27 MB
- Stars: 39
- Watchers: 5
- Forks: 14
- Open Issues: 6
-
Metadata Files:
- Readme: readme.md
Lists
- awesome-nativescript - Docker Container for NativeScript CLI and SDKs
README
# Docker container for NativeScript development
[![docker-badge](http://dockeri.co/image/oreng/nativescript)](https://registry.hub.docker.com/u/oreng/nativescript)
![demo-video](demo-video.gif)
## Content
* [why](#why)
* [Setup](#setup)
* [New Project](#new-project)
* [Useful commands](#useful-commands)
* [References](#references)## Why?
I wanted to explore [NativeScript](https://www.nativescript.org) 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 [email protected]: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 androidThat'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