Skip to content

Instantly share code, notes, and snippets.

@rayantony
Created September 4, 2016 07:02
Show Gist options
  • Select an option

  • Save rayantony/f160efc03a815fb4c21678aaf790094b to your computer and use it in GitHub Desktop.

Select an option

Save rayantony/f160efc03a815fb4c21678aaf790094b to your computer and use it in GitHub Desktop.
Google Chrome Developer VNC Headless Docker Ubuntu

Google Chrome Developer VNC Headless Docker Ubuntu

===

To build it:

docker build -t="rayrc/chrome-developer-vnc" bitbucket.org/rayrc/chrome-developer-vnc

To Run it

docker run -it --rm -p 5901:5901 rayrc/chrome-developer-vnc
USER=root vncserver :1 -geometry 1280x800 -depth 24

Now Connect using port 5901 in your preferred VNC (client) app

# Pull base image.
FROM ubuntu-desktop

# Install Chrome Dev Build (builds weekly approx, not nightly)
RUN \
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - 
&& \
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list' && \
  apt-get update && \
  apt-get install -y google-chrome-unstable && \
  rm -rf /var/lib/apt/lists/*

# Define working directory.
WORKDIR /data

# Define default command.
CMD ["bash"]

# Expose ports.
EXPOSE 5901
# Pull base image.
FROM ubuntu-desktop
# Install Chrome Dev Build (builds weekly approx, not nightly)
RUN \
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
&& \
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list' && \
apt-get update && \
apt-get install -y google-chrome-unstable && \
rm -rf /var/lib/apt/lists/*
# Define working directory.
WORKDIR /data
# Define default command.
CMD ["bash"]
# Expose ports.
EXPOSE 5901
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment