Skip to content
This repository has been archived by the owner on May 16, 2019. It is now read-only.

qtopie/nodejs-chrome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

nodejs-chrome

Docker image to build and test Angular in container.

Usage

# run with `privileged` option enabled
docker run --privileged artificerpi/nodejs-chrome ...

# or with customized seccomp security profile (recommended)
docker run --security-opt seccomp:/path/to/chrome.json artificerpi/nodejs-chrome ...

A sample to work with drone.io

---
kind: pipeline
name: default


steps:
- name: build
  image: node
  commands:
    - npm install
    - ./node_modules/.bin/ng build

- name: test
  image: artificerpi/nodejs-chrome
  # following line only works with self-hosted drone server
  privileged: true
  commands:
      # there may be some permission issues with user node
    - ./node_modules/.bin/ng e2e
    - ./node_modules/.bin/ng test --browsers=ChromeHeadless --watch=false
  • Use in angular project

It's working with ng e2e tests, but there are some problem with karama. One workaround is to run chrome in headless mode.

ng test --browsers=ChromeHeadless --watch=false

Reference

About

Use puppeteer instead to reduce image size and less ci problems.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages