Sign inSign up

salade2chats/angular-cli

By salade2chats

•Updated over 8 years ago

Image with Phonegap, Chromium, Android, ADB and Angular CLI.

Image
0

393

salade2chats/angular-cli repository overview

⁠README

Image with Phonegap, Chromium, Android, ADB and Angular CLI.

Warning: Android version must be at least 6.2.2

Default command is 'bash'.

⁠Run the image with all capacities arguments
$ sudo docker run --rm -ti --name phonegap \
    --privileged \
    --user $(id -u):$(id -g) \
    -e DISPLAY=$DISPLAY \
    -v $(pwd):/data \
    -v /tmp/.X11-unix:/tmp/.X11-unix:ro \
    -v /dev/bus/usb:/dev/bus/usb \
    salade2chats/angular-cli:1.6.4 \
    [command]
⁠Arguments detail
* ```--user $(id -u):$(id -g)
``` Needed to be a non-root user, and keep host right owner. A /home/visitor folder is automatically created.
* ```-e DISPLAY=$DISPLAY
``` Display is used to export view, for Chrome instance or emulators.
* ```-v $(pwd):/data
``` Mount the current folder into /data (default folder)
* ```-v /tmp/.X11-unix:/tmp/.X11-unix:ro
``` Mount X11 folder as read-only ; used to export view.
* ```-v /dev/bus/usb:/dev/bus/usb
``` Mount the USB ; used to directly build app on device (have to start ADB)

#### Execute a command after ADB daemon started

```Shell
$ sudo docker run --rm -ti --name phonegap \
    --privileged \
    --user $(id -u):$(id -g) \
    -e DISPLAY=$DISPLAY \
    -v $(pwd):/data \
    -v /tmp/.X11-unix:/tmp/.X11-unix:ro \
    -v /dev/bus/usb:/dev/bus/usb \
    salade2chats/angular-cli:1.6.4 \
    bash -c "adb devices && [command]"
⁠Docker hub

salade2chats/phonegap⁠

⁠CHANGELOG

⁠1.6.4 (2018-01-17)
  • Update base image to salade2chats/npm:3.0.0
  • Update Android to 27
  • Update Ant to 1.10.1
  • Update Phonegap to 7.1.1
  • Update Chromium to 61.0.3163.100
  • Angular CLI 1.6.4

Tag summary

Content type

Image

Digest

Size

1 GB

Last updated

over 8 years ago

docker pull salade2chats/angular-cli:1.6.8