webrtc / KITE

KITE is a test engine designed to test WebRTC interoperability across browsers
Apache License 2.0
468 stars 126 forks source link

Basic Dockerfile, Issues with Selenium #143

Closed nemani closed 4 years ago

nemani commented 4 years ago

Hey @Lazarus404 Is that dockerfile working for you? I am using the following dockerfile, and able to install everything without any issues.

FROM maven:3.6.3-jdk-8 as JavaBase

ARG DEBIAN_FRONTEND=noninteractive
ENV DEBIAN_FRONTEND=noninteractive

USER root
RUN apt update
RUN apt upgrade
RUN apt-get install -y unzip fonts-liberation libappindicator3-1 libgbm1 \
    libgtk-3-0 libxss1 xdg-utils libu2f-udev keyboard-configuration \ 
    libnss3-dev vim sudo libasound2

#KITE
RUN git clone https://github.com/webrtc/KITE.git /KITE

WORKDIR /KITE

ENV KITE_HOME=/KITE
RUN export KITE_HOME=/KITE

RUN /bin/bash -c "source ~/.bashrc"

COPY gridConfig.sh /KITE/scripts/linux/gridConfig.sh

RUN chmod +x ./configureLinux.sh
RUN yes | ./configureLinux.sh

RUN /KITE/scripts/linux/path/c

COPY . /KITE-Edvie
WORKDIR /KITE-Edvie/Jitsi

RUN /KITE/scripts/linux/path/c

RUN export PATH=$PATH:/KITE-Edvie/node
ENTRYPOINT ["bash"]%    

But when I start the grid and try to run the tests, I get the following error trace = org.openqa.selenium.WebDriverException: unknown error: session deleted because of page crash

I am not sure why this is happening, any help is appreciated @Lazarus404 @namvuCosmo

nemani commented 4 years ago

I also added the 'no-sandbox' and 'disable-dev-shm' as mentioned here https://stackoverflow.com/questions/53902507/unknown-error-session-deleted-because-of-page-crash-from-unknown-error-cannot

nemani commented 4 years ago

Adding no-sanbox and changing the shm-size to 2gb during docker-run fixes the issue!