Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 840 Bytes

README.md

File metadata and controls

23 lines (19 loc) · 840 Bytes

Test Drive

  1. run: docker run -it --rm -p 5000:5000 aahoo/yeoman-polymer
  2. yo polymer
  3. gulp serve
  4. open browser > "virtual machine IP":5000 (e.g. http://192.168.99.100:5000/)

Regular Use

Mount a host directory to the container

Need to do only for the first run

  1. mkdir -p my-project && cd $_
  2. docker run -it -p 5000:5000 -v $(pwd):/home/yeoman/my-project --name yo aahoo/yeoman-polymer
  • In windows, you may have to change $(pwd) to /$(pwd)
  1. yo polymer
  2. gulp serve
  3. open browser > "virtual machine IP":5000 (e.g. http://192.168.99.100:5000/)

Need to do for the following runs

  1. docker start -i yo
  2. gulp serve
  3. open browser > "virtual machine IP":5000 (e.g. http://192.168.99.100:5000/)