{"action":"created","issue":{"url":"https://api.github.com/repos/bahmutov/cypress-image/issues/4","repository_url":"https://api.github.com/repos/bahmutov/cypress-image","labels_url":"https://api.github.com/repos/bahmutov/cypress-image/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/bahmutov/cypress-image/issues/4/comments","events_url":"https://api.github.com/repos/bahmutov/cypress-image/issues/4/events","html_url":"https://github.com/bahmutov/cypress-image/issues/4","id":229980194,"number":4,"title":"Add Chrome","user":{"login":"bahmutov","id":2212006,"avatar_url":"https://avatars2.githubusercontent.com/u/2212006?v=3","gravatar_id":"","url":"https://api.github.com/users/bahmutov","html_url":"https://github.com/bahmutov","followers_url":"https://api.github.com/users/bahmutov/followers","following_url":"https://api.github.com/users/bahmutov/following{/other_user}","gists_url":"https://api.github.com/users/bahmutov/gists{/gist_id}","starred_url":"https://api.github.com/users/bahmutov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bahmutov/subscriptions","organizations_url":"https://api.github.com/users/bahmutov/orgs","repos_url":"https://api.github.com/users/bahmutov/repos","events_url":"https://api.github.com/users/bahmutov/events{/privacy}","received_events_url":"https://api.github.com/users/bahmutov/received_events","type":"User","site_admin":false},"labels":[{"id":397557979,"url":"https://api.github.com/repos/bahmutov/cypress-image/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-05-19T13:47:09Z","updated_at":"2017-05-20T05:20:28Z","closed_at":null,"body":"Install Chrome browser for extra browser for testing (if needed)"},"comment":{"url":"https://api.github.com/repos/bahmutov/cypress-image/issues/comments/302851772","html_url":"https://github.com/bahmutov/cypress-image/issues/4#issuecomment-302851772","issue_url":"https://api.github.com/repos/bahmutov/cypress-image/issues/4","id":302851772,"user":{"login":"bahmutov","id":2212006,"avatar_url":"https://avatars2.githubusercontent.com/u/2212006?v=3","gravatar_id":"","url":"https://api.github.com/users/bahmutov","html_url":"https://github.com/bahmutov","followers_url":"https://api.github.com/users/bahmutov/followers","following_url":"https://api.github.com/users/bahmutov/following{/other_user}","gists_url":"https://api.github.com/users/bahmutov/gists{/gist_id}","starred_url":"https://api.github.com/users/bahmutov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bahmutov/subscriptions","organizations_url":"https://api.github.com/users/bahmutov/orgs","repos_url":"https://api.github.com/users/bahmutov/repos","events_url":"https://api.github.com/users/bahmutov/events{/privacy}","received_events_url":"https://api.github.com/users/bahmutov/received_events","type":"User","site_admin":false},"created_at":"2017-05-20T05:20:28Z","updated_at":"2017-05-20T05:20:28Z","body":"Got successful Chrome install finally using the following Docker file and install script\r\n\r\n```\r\nFROM node:6\r\n\r\nENV VERBOSE true\r\n\r\nRUN apt-get update\r\nRUN apt-get install -y xvfb\r\n# try installing just Chrome file and it tells you the missing dependencies\r\n# install them here\r\nRUN apt-get install -y \\\r\n  gconf-service \\\r\n  libasound2 \\\r\n  libatk1.0-0 \\\r\n  libcups2 \\\r\n  libdbus-1-3 \\\r\n  libgconf-2-4 \\\r\n  libgtk2.0-0 \\\r\n  libnspr4 \\\r\n  libnss3 \\\r\n  libpango1.0-0 \\\r\n  libxss1 \\\r\n  libxtst6 \\\r\n  fonts-liberation \\\r\n  libappindicator1 \\\r\n  xdg-utils\r\n\r\nWORKDIR .\r\nADD chrome.sh chrome.sh\r\nRUN ./chrome.sh\r\n\r\n# RUN \\\r\n#   wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \\\r\n#   echo \"deb http://dl.google.com/linux/chrome/deb/ stable main\" > /etc/apt/sources.list.d/google.list && \\\r\n#   apt-get update && \\\r\n#   apt-get install -y xvfb google-chrome-stable && \\\r\n#   rm -rf /var/lib/apt/lists/*\r\n\r\n# RUN chrome --version\r\nRUN google-chrome --version\r\n\r\nRUN ln -s google-chrome /usr/bin/chrome\r\n```\r\n\r\nchrome install script\r\n```\r\n#!/bin/bash\r\n\r\n# from https://github.com/circleci/image-builder\r\n\r\nfunction install_chrome_browser() {\r\n    echo '>>> Installing Chrome'\r\n\r\n    local url=\"https://s3.amazonaws.com/circle-downloads/google-chrome-stable_54.0.2840.100-1_amd64.deb\"\r\n    local deb_path=\"/tmp/google-chrome.deb\"\r\n\r\n    curl --output $deb_path $url\r\n\r\n    dpkg -i $deb_path || apt-get -f install -y\r\n\r\n    # Disable sandboxing - it conflicts with unprivileged lxc containers\r\n    sed -i 's|HERE/chrome\"|HERE/chrome\" --disable-setuid-sandbox --enable-logging --no-sandbox|g' \\\r\n               \"/opt/google/chrome/google-chrome\"\r\n}\r\n\r\ninstall_chrome_browser\r\n```\r\nrun command from the Docker requires user data folder\r\n\r\n```sh\r\nchrome --user-data-dir=/chrome-data http://123.123.123.123:2345\r\n```"}}
{"actor":{"display_login":"bahmutov"}}