mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 10:02:56 +01:00
Merge branch 'add-chrome-build-image' into 'master'
Add headless Chrome to CI build image Closes #10 See merge request !41
This commit is contained in:
commit
2423209f22
3 changed files with 29 additions and 0 deletions
|
|
@ -32,6 +32,7 @@ ruby-2.3-git-2.7-phantomjs-2.1 test: *test_build
|
||||||
ruby-2.3.3-git-2.7-phantomjs-2.1-node-7.1 test: *test_build
|
ruby-2.3.3-git-2.7-phantomjs-2.1-node-7.1 test: *test_build
|
||||||
ruby-2.3.3-golang-1.8-git-2.7-phantomjs-2.1-node-7.1 test: *test_build
|
ruby-2.3.3-golang-1.8-git-2.7-phantomjs-2.1-node-7.1 test: *test_build
|
||||||
ruby-2.3.3-golang-1.8-git-2.7-phantomjs-2.1-node-7.1-postgresql-9.6 test: *test_build
|
ruby-2.3.3-golang-1.8-git-2.7-phantomjs-2.1-node-7.1-postgresql-9.6 test: *test_build
|
||||||
|
ruby-2.3.3-golang-1.8-git-2.7-chrome-59.0-node-7.1-postgresql-9.6 test: *test_build
|
||||||
ruby-2.4.1-golang-1.8-git-2.7-phantomjs-2.1-node-7.1-postgresql-9.6 test: *test_build
|
ruby-2.4.1-golang-1.8-git-2.7-phantomjs-2.1-node-7.1-postgresql-9.6 test: *test_build
|
||||||
www-gitlab-com test: *test_build
|
www-gitlab-com test: *test_build
|
||||||
doc-gitlab-com test: *test_build
|
doc-gitlab-com test: *test_build
|
||||||
|
|
@ -53,6 +54,7 @@ ruby-2.3-git-2.7-phantomjs-2.1: *build_and_deploy
|
||||||
ruby-2.3.3-git-2.7-phantomjs-2.1-node-7.1: *build_and_deploy
|
ruby-2.3.3-git-2.7-phantomjs-2.1-node-7.1: *build_and_deploy
|
||||||
ruby-2.3.3-golang-1.8-git-2.7-phantomjs-2.1-node-7.1: *build_and_deploy
|
ruby-2.3.3-golang-1.8-git-2.7-phantomjs-2.1-node-7.1: *build_and_deploy
|
||||||
ruby-2.3.3-golang-1.8-git-2.7-phantomjs-2.1-node-7.1-postgresql-9.6: *build_and_deploy
|
ruby-2.3.3-golang-1.8-git-2.7-phantomjs-2.1-node-7.1-postgresql-9.6: *build_and_deploy
|
||||||
|
ruby-2.3.3-golang-1.8-git-2.7-chrome-59.0-node-7.1-postgresql-9.6: *build_and_deploy
|
||||||
ruby-2.4.1-golang-1.8-git-2.7-phantomjs-2.1-node-7.1-postgresql-9.6: *build_and_deploy
|
ruby-2.4.1-golang-1.8-git-2.7-phantomjs-2.1-node-7.1-postgresql-9.6: *build_and_deploy
|
||||||
www-gitlab-com: *build_and_deploy
|
www-gitlab-com: *build_and_deploy
|
||||||
doc-gitlab-com: *build_and_deploy
|
doc-gitlab-com: *build_and_deploy
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
FROM ruby:2.3.3
|
||||||
|
|
||||||
|
ADD / /
|
||||||
|
RUN /scripts/install-essentials
|
||||||
|
RUN /scripts/install-chrome
|
||||||
|
RUN /scripts/install-node
|
||||||
|
RUN /scripts/install-golang
|
||||||
|
RUN /scripts/install-postgresql
|
||||||
|
|
||||||
|
ENV PATH /usr/local/go/bin:$PATH
|
||||||
|
|
||||||
|
RUN locale-gen en_US.UTF-8
|
||||||
|
ENV LANG en_US.UTF-8
|
||||||
|
ENV LANGUAGE en_US:en
|
||||||
|
ENV LC_ALL en_US.UTF-8
|
||||||
12
scripts/install-chrome
Executable file
12
scripts/install-chrome
Executable file
|
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -xeo pipefail
|
||||||
|
|
||||||
|
CHROME_VERSION=${1:-59.0.3071.86-1}
|
||||||
|
|
||||||
|
curl -sS -L https://dl.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.list
|
||||||
|
|
||||||
|
apt-get update -q
|
||||||
|
env DEBIAN_FRONTEND="noninteractive" apt-get install -y google-chrome-stable=$CHROME_VERSION
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
Loading…
Add table
Add a link
Reference in a new issue