Skip to content

Instantly share code, notes, and snippets.

@masato
Created January 6, 2015 04:09
Show Gist options
  • Save masato/3fe43dfb4b67cb69fcb3 to your computer and use it in GitHub Desktop.
Save masato/3fe43dfb4b67cb69fcb3 to your computer and use it in GitHub Desktop.
Docker開発環境のIonicとRippleをnpmからインストールして使う ref: http://qiita.com/masato/items/41deb2174c07966dadf2
$ npm install -g cordova ionic
$ npm install -g ripple-emulator
$ ripple version
0.9.24
$ mkdir ~/ionic_apps
$ cd !$
$ ionic start ionicTestApp tabs
$ cd ionicTestApp
$ ionic platform add android
$ cd ~/ionic_apps/ionicTestApp/
$ ripple emulate --path www
$ docker run -it --rm --name ionic-env masato/ionic-cordova bash
$ su - docker
$ cd /data/ionicTestApp
$ nvm use v0.10
Now using node v0.10.35
$ ripple emulate --path www
$ docker inspect --format="{{ .NetworkSettings.IPAddress }}" ionic-env
172.17.4.93
$ docker run -it --rm wizardapps/ngrok:latest ngrok 172.17.4.93:4400
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment