Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Signature Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
digital blueprint
Electronic Signature Service
Signature Frontend
Commits
3848afc6
Commit
3848afc6
authored
2 years ago
by
Reiter, Christoph
Browse files
Options
Downloads
Patches
Plain Diff
CI: remove browsers from the CI image
parent
afb89ec3
No related branches found
No related tags found
No related merge requests found
Pipeline
#190333
passed
2 years ago
Stage: test
Stage: deploy
Stage: e2e
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci/Dockerfile
+10
-4
10 additions, 4 deletions
.gitlab-ci/Dockerfile
karma.conf.js
+1
-1
1 addition, 1 deletion
karma.conf.js
with
11 additions
and
5 deletions
.gitlab-ci/Dockerfile
+
10
−
4
View file @
3848afc6
...
...
@@ -20,16 +20,22 @@ RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.lis
RUN
apt-get update
&&
apt-get
install
-y
\
nodejs
\
yarn
\
chromium
\
# libgbm1: newer chromium from puppeteer
libgbm1 \
firefox-esr \
composer
\
php-zip
\
php-curl
\
rsync
\
sudo
\
&&
rm
-rf
/var/lib/apt/lists/
*
# only get dependencies of chromium/firefox
RUN
apt-get update
&&
apt-get
install
--no-install-recommends
-y
\
chromium
\
firefox-esr
\
&&
apt-get remove
-y
\
chromium
\
firefox-esr
\
&&
rm
-rf
/var/lib/apt/lists/
*
RUN
useradd
-u
1000
-ms
/bin/bash user
RUN
echo
'user ALL=(ALL) NOPASSWD:ALL'
>>
/etc/sudoers
USER
user
...
...
This diff is collapsed.
Click to expand it.
karma.conf.js
+
1
−
1
View file @
3848afc6
...
...
@@ -2,7 +2,7 @@ module.exports = async function (config) {
const
{
installBrowsersForNpmInstall
,
registry
}
=
require
(
'
playwright-core/lib/server
'
);
await
installBrowsersForNpmInstall
([
'
firefox
'
,
'
chromium
'
]);
process
.
env
.
FIREFOX_BIN
=
registry
.
findExecutable
(
'
firefox
'
).
executablePath
();
process
.
env
.
CHROM
E
_BIN
=
registry
.
findExecutable
(
'
chromium
'
).
executablePath
();
process
.
env
.
CHROM
IUM
_BIN
=
registry
.
findExecutable
(
'
chromium
'
).
executablePath
();
config
.
set
({
basePath
:
'
dist
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment