You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2022/05/02 15:42:36 UTC
[whimsy] branch master updated: Add Puppeteer
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 22be0c67 Add Puppeteer
22be0c67 is described below
commit 22be0c678fae89482608ad1afda185b90abdaa42
Author: Sebb <se...@apache.org>
AuthorDate: Mon May 2 16:42:29 2022 +0100
Add Puppeteer
---
Dockerfile | 10 ++++++----
docker-compose.yaml | 7 +++----
2 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/Dockerfile b/Dockerfile
index 465fd6f7..81ebd49e 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -63,11 +63,13 @@ RUN DEBIAN_FRONTEND='noninteractive' apt-get install -y vim
# for checking ldap settings etc
RUN DEBIAN_FRONTEND='noninteractive' apt-get install -y ldap-utils
+# Install puppeteer
+RUN curl -sL https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
+RUN echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list
+RUN apt update && apt install -y google-chrome-stable
+RUN npm install -g puppeteer --unsafe-perm=true
+
# For testing agenda, you may need the following:
-# curl -sL https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
-# sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
-# apt-get update
-# apt-get install -y google-chrome-stable
# Find the chrome version:
# google-chrome --version
# Install chromedriver:
diff --git a/docker-compose.yaml b/docker-compose.yaml
index b61f1188..969b35e2 100644
--- a/docker-compose.yaml
+++ b/docker-compose.yaml
@@ -9,7 +9,6 @@ services:
- "HOST_HOME=$HOME"
volumes:
- ..:/srv
-# https://github.com/apache/whimsy/issues/119
-# These don't appear to be needed
-# - $HOME/.subversion:/$HOME/.subversion
-# - $HOME/.ssh:/$HOME/.ssh
+ # Needed to run puppeteer
+ cap_add:
+ - SYS_ADMIN