Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
2c33ee9e
Commit
2c33ee9e
authored
May 24, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dockerize headless chrome browser for GitLab QA
parent
6984c2ee
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
5 deletions
+20
-5
qa/Dockerfile
qa/Dockerfile
+19
-4
qa/qa/specs/config.rb
qa/qa/specs/config.rb
+1
-1
No files found.
qa/Dockerfile
View file @
2c33ee9e
FROM
ruby:2.3
LABEL
maintainer "Grzegorz Bizon <grzegorz@gitlab.com>"
RUN
sed
-i
"s/httpredir.debian.org/ftp.us.debian.org/"
/etc/apt/sources.list
&&
\
apt-get update
&&
apt-get
install
-y
--force-yes
\
libqt5webkit5-dev qt5-qmake qt5-default build-essential xvfb git
&&
\
apt-get clean
##
# Update APT sources and install some dependencies
#
RUN
sed
-i
"s/httpredir.debian.org/ftp.us.debian.org/"
/etc/apt/sources.list
RUN
apt-get update
&&
apt-get
install
-y
wget git unzip xvfb
##
# At this point Google Chrome Beta is 59 - first version with headless support
#
RUN
wget
-q
https://dl.google.com/linux/direct/google-chrome-beta_current_amd64.deb
RUN
dpkg
-i
google-chrome-beta_current_amd64.deb
;
apt-get
-fy
install
##
# Install chromedriver to make it work with Selenium
#
RUN
wget
-q
https://chromedriver.storage.googleapis.com/2.29/chromedriver_linux64.zip
RUN
unzip chromedriver_linux64.zip
-d
/usr/local/bin
RUN
apt-get clean
WORKDIR
/home/qa
...
...
qa/qa/specs/config.rb
View file @
2c33ee9e
...
...
@@ -56,7 +56,7 @@ module QA
capabilities
=
Selenium
::
WebDriver
::
Remote
::
Capabilities
.
chrome
(
'chromeOptions'
=>
{
'binary'
=>
'/opt/google/chrome-beta/google-chrome-beta'
,
'args'
=>
%w[headless disable-gpu]
'args'
=>
%w[headless
no-sandbox
disable-gpu]
}
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment