Giter Site home page Giter Site logo

chrome-on-docker's Introduction

On the Shoulders of other giants

This is based on Dockerfile created by jessfraz here The blog that brought me there is more than 5 years old.

Fortunately the Dockerfile itself is "just" 15 months old (as of early May 2020)

Additionally, it seems that the blog post (and possibly the Dockerfile) may be written for linux host. While Docker is supposed to host OS agnostic (?) on macOS I don't have /dev/snd

I also do not need sound for my "Chrome on Docker"

So what I have created in mainly for my own consumption.

I have made changes to the original Dockerfile to fix errors I got.

I have also downloaded chrome.json so that it may save you an additional step.

Instructions

  • Build the image using : docker build . -t "google-chrome"
  • You need X server or some sort, like XQuartz.: brew cask install xquartz
  • Open the xterm application from XQuartz (Right Click on XQuartz dock icon, Applications -> Terminal)
  • Now from within the xterm,
    • cd to directory where you cloned this.
    • ./setxhost.sh
    • This must be done form the xterm app
    • You may close the xterm app now, or keep it open.
  • From iTerm2 (or xterm instance if already open) : ./run.sh

Bonus Tip

You can create an entry for the setxhost.sh using XQuartz's Applications->Customize menu.

Once "Customize" dialog is shown,

  • Under column name - put any name. Easiest : setxhost
  • Under column command (This is most important) type in the full path to the setxhost.sh script.
  • Shortcut is optional.

Now after you start XQuartz, just run this via Applications menu and you are set.

chrome-on-docker's People

Contributors

mandarvaze avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.