docker-nativescript

a dockerized version of nativescript toolchain
git clone https://tongong.net/git/docker-nativescript.git
Log | Files | Refs | README | LICENSE

README.md (1460B)


      1 # docker-nativescript
      2 
      3 This projects aims to provide an up-to-date (November 2022) dockerized version
      4 of NativeScript and its dependencies.
      5 
      6 - [NativeScript](https://www.nativescript.org/) (8.3.3)
      7 - [Android SDK Tools](https://developer.android.com/) (33.0.0)
      8 - [Android SDK Platform](https://developer.android.com/) (32)
      9 - [Gradle](https://gradle.org/) (7.4)
     10 - [NodeJS](https://nodejs.org/) (19.1.0)
     11 - [Java](https://www.java.com/) (17.0.5)
     12 - [Ubuntu](https://www.ubuntu.com/) (22.04)
     13 
     14 This project is based on:
     15 - https://github.com/kristophjunge/docker-nativescript
     16 - https://v7.docs.nativescript.org/angular/start/ns-setup-linux
     17 
     18 Testing was done exclusively with podman but it should work on docker as well.
     19 
     20 ## usage
     21 Build the image in the directory of the Dockerfile:
     22 ```
     23 podman build -t nativescript .
     24 ```
     25 
     26 To conveniently use the container source the `bashrc.sc`. This introduces an
     27 alias `dprefix` to run commands inside the container. For example:
     28 ```
     29 dprefix bash
     30 dprefix ns create my-project
     31 dprefix ns run android
     32 ```
     33 
     34 ## live development
     35 The `--privileged` flag allows the container to access your USB devices. This
     36 enables live development. Be sure to stop the `adb` server of your host machine
     37 to make `adb` work inside the container. Then live development should work
     38 with `dprefix ns run android`.
     39 
     40 ## android emulator
     41 This image does not include an emulator (and I do not know of a way to make the
     42 Android emulator work inside a container).