Created
January 6, 2015 04:09
-
-
Save masato/3fe43dfb4b67cb69fcb3 to your computer and use it in GitHub Desktop.
Docker開発環境のIonicとRippleをnpmからインストールして使う ref: http://qiita.com/masato/items/41deb2174c07966dadf2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ npm install -g cordova ionic | |
$ npm install -g ripple-emulator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ripple version | |
0.9.24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mkdir ~/ionic_apps | |
$ cd !$ | |
$ ionic start ionicTestApp tabs | |
$ cd ionicTestApp | |
$ ionic platform add android |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd ~/ionic_apps/ionicTestApp/ | |
$ ripple emulate --path www |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker run -it --rm --name ionic-env masato/ionic-cordova bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ su - docker | |
$ cd /data/ionicTestApp | |
$ nvm use v0.10 | |
Now using node v0.10.35 | |
$ ripple emulate --path www |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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