Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Does CodeceptJS/Playwright works with CentOs ? #3090

Jujupiwi started this conversation in General
Discussion options

We have a problem with Gitlab CI integration.
Our runners are on CentOs.

browserType.launch: Host system is missing dependencies!

Missing libraries are:
libnss3.so
libnssutil3.so
libsmime3.so
libnspr4.so
libatk-bridge-2.0.so.0
libdrm.so.2
libxkbcommon.so.0
libgbm.so.1
libasound.so.2
libatspi.so.0
libxshmfence.so.1

You must be logged in to vote

Replies: 2 comments

Comment options

we use the docker image in CI

so gitlab-ci job starts like

image: codeceptjs/codeceptjs
stages:
You must be logged in to vote
0 replies
Comment options

Hi there,
I am trying to configure the docker container for my tests and my dockerfile is as below:

# Use an official Node.js runtime as a parent image
FROM node:14
# Set the working directory
WORKDIR /app
# Copy package.json and package-lock.json
COPY package*.json ./
# Install dependencies
RUN npm install
# Install Playwright dependencies
RUN npx playwright install-deps
# Install Playwright browsers
RUN npx playwright install
# Copy the rest of the application code
COPY . .
# Run the application
CMD ["npx", "codeceptjs", "run", "--steps"]

To build the docker image, ran:
docker build -t my-automation .

Next when tried to run container, using below command:
docker run --rm -e SHOW_BROWSER=true my-automation

Getting below error:
`

ERROR [5/8] RUN npx playwright install-deps 10.0s 
------
 [5/8] RUN npx playwright install-deps:
1.804 BEWARE: your OS is not officially supported by Playwright; installing dependencies for ubuntu20.04-x64 as a fallback.
1.806 Installing dependencies...
2.189 Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
2.307 Get:2 http://deb.debian.org/debian-security buster/updates InRelease [34.8 kB]
2.388 Get:3 http://deb.debian.org/debian buster-updates InRelease [56.6 kB]
2.617 Get:4 http://deb.debian.org/debian buster/main amd64 Packages [7909 kB]
3.855 Get:5 http://deb.debian.org/debian-security buster/updates/main amd64 Packages [610 kB]
3.991 Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages [8788 B]
6.105 Fetched 8741 kB in 4s (2085 kB/s)
6.105 Reading package lists...
8.232 Reading package lists...
9.365 Building dependency tree...
9.551 Reading state information...
9.664 Package ttf-ubuntu-font-family is not available, but is referred to by another package.
9.664 This may mean that the package is missing, has been obsoleted, or
9.664 is only available from another source
9.664
9.664 Package libjpeg-turbo8 is not available, but is referred to by another package.
9.664 This may mean that the package is missing, has been obsoleted, or
9.664 is only available from another source
9.664
9.806 E: Package 'ttf-ubuntu-font-family' has no installation candidate
9.806 E: Unable to locate package libenchant-2-2
9.806 E: Unable to locate package libicu66
9.806 E: Package 'libjpeg-turbo8' has no installation candidate
9.806 E: Unable to locate package libvpx6
9.806 E: Unable to locate package libevent-2.1-7
9.806 E: Couldn't find any package by glob 'libevent-2.1-7'
9.806 E: Couldn't find any package by regex 'libevent-2.1-7'
9.810 Failed to install browser dependencies
9.810 Error: Installation process exited with code: 100
------
Dockerfile:14
--------------------
 12 | 
 13 | # Install Playwright dependencies
 14 | >>> RUN npx playwright install-deps
 15 |
 16 | # Copy the rest of the application code to the container
--------------------
ERROR: failed to solve: process "/bin/sh -c npx playwright install-deps" did not complete successfully: exit code: 1`

Any idea how can this be fixed?

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /