Add template for including Chrome and ChromeDriver
authorGerhard Schlager <mail@gerhard-schlager.at>
Tue, 30 Oct 2018 23:48:58 +0000 (00:48 +0100)
committerGerhard Schlager <mail@gerhard-schlager.at>
Tue, 30 Oct 2018 23:49:10 +0000 (00:49 +0100)
templates/import/chrome-dep.yml [new file with mode: 0644]

diff --git a/templates/import/chrome-dep.yml b/templates/import/chrome-dep.yml
new file mode 100644 (file)
index 0000000..ca9bac3
--- /dev/null
@@ -0,0 +1,12 @@
+# This template installs Chrome and ChromeDriver for imports
+
+hooks:
+  after_bundle_exec:
+  - exec:
+      cd: /tmp
+      cmd:
+      - curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add
+      - echo "deb [arch=amd64]  http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list
+      - apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y unzip google-chrome-stable
+      - LATEST_VERSION=$(curl -s https://chromedriver.storage.googleapis.com/LATEST_RELEASE) && wget https://chromedriver.storage.googleapis.com/$LATEST_VERSION/chromedriver_linux64.zip
+      - unzip chromedriver_linux64.zip -d /usr/local/bin