Commits: 3
Use alekzonder/puppeteer:1.0.0 docker image in gitlab CI/CD
index 8687ffe..ad4f592 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,4 +1,4 @@
-image: node:10.9.0
+image: alekzonder/puppeteer:1.0.0
=
=before_script:
= - npm installEnable puppeteer in CI/CD
Use capture.coffee script to render HTML
index ad4f592..74b4280 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,8 +9,8 @@ pages:
= - npx elm make src/Main.elm --output public/index.js
= - cp index.txt container.html public/
= ## FIXME: Make puppeteer work in the container
- - cp container.html public/index.html
- # - npx coffee src/capture.coffee > public/index.html
+ #- cp container.html public/index.html
+ - npx coffee src/capture.coffee > public/index.html
=
= artifacts:
= paths:Add options required by puppeteer container image to puppeteer.launch
index adc6353..8764395 100644
--- a/src/capture.coffee
+++ b/src/capture.coffee
@@ -6,7 +6,12 @@ do () =>
= app.use express.static "public/"
= server = app.listen 8000
=
- browser = await puppeteer.launch ``
+ browser = await puppeteer.launch
+ args: [
+ "--no-sandbox"
+ "--disable-setuid-sandbox"
+ ]
+
= page = await browser.newPage ``
=
= await page.goto "http://localhost:8000/container.html",