Dockerized NativeScript for seamless Android dev. iOS dependencies excluded.
316
NativeScriptNG is a Dockerized development environment tailored for NativeScript, allowing developers to run and manage their NativeScript projects with ease.
ubuntu:20.04.JAVA_HOME, ANDROID_HOME, and paths for Android SDK tools are preset.For seamless interaction, you can add the following function to your .profile (or .bashrc, .zshrc depending on your shell):
function tns() {
(docker run -it --rm --privileged \
-v $(pwd):/app \
cryptng/nativescriptng:latest \
bash -c "tns $*" && sudo chown -R 1000:1000 .)
}
Once you've added this and restarted your terminal, you can use tns as if NativeScript was natively installed on your machine.
Usage: Navigate to your NativeScript project directory and use:
tns <your-nativescript-command>
The Docker container will process your command, mirroring changes with your local project directory.
ā ļø Important The image is fine-tuned for Android development. Dependencies for iOS development aren't installed. By default, the container starts with the working directory set to /app. When you put the above command into ~/.profile and source your profile, you can run nativescript commands in any directory, the directory will be mounted to the container and all files will be created as expected.
Running nativescript 8.5.3
Content type
Image
Digest
sha256:dcda264d6ā¦
Size
1.7 GB
Last updated
about 3 years ago
docker pull cryptng/nativescriptng