This is a docker demo for takaojs meetup at 2016/07/04.
- OS: Ubuntu 15.04
- node: 5.12.0
- npm: 3.8.6
- python: 2.7.11
- selenium: 2.53.0
Published to the public Docker Hub via automated build mechanism and fork from selenium/node-chrome-debug2.48.2.
Docker Hub: chusiang/takaojs1607
- chusiang/takaojs1607 (lastest)
-
Get docker image.
$ docker pull chusiang/takaojs1607
-
Get vnc port (5900 port on guest os).
$ docker port $(docker run --name e2e -d -P chusiang/takaojs1607) 5900 0.0.0.0:32820
-
Remote with VNC client.
# on macOS. $ open vnc://:[email protected]:32820
-
Enter e2e container.
$ docker exec -it e2e bash
-
Switch user.
root@9ecd32e05262:/# su - seluser
-
Get angular-seed repo with git.
seluser@9ecd32e05262:~$ git clone https://github.com/angular/angular-seed.git && cd angular-seed
-
Install npm packages.
$ npm install
-
Start server.
$ npm run start &
-
Run e2e test.
$ npm run protractor
- 前端工程師一定要知道的 Docker 虛擬化容器技巧 | 凍仁的筆記
- 前端工程師一定要知道的 Docker 虛擬化容器技巧 (18:34) | YouTube
- angular-seed e2e tests demo on Docker (2:52) | YouTube
- 蹤影 Smlsun: 前端自動化測試之 Selenium docker 環境 debug 指南
- angular/angular-seed: Seed project for angular apps. | GitHub
Copyright (c) chusiang from 2016 under the MIT license.