Skip to content

Commit

Permalink
ci: run tests in Docker (#5440)
Browse files Browse the repository at this point in the history
This PR adds Chromium with webdriver to the Docker image, so it's now possible to run at least some subset of tests using Docker env.
Additionally, Alpine version has been bumped up, so recent version of Chromium can be used.
  • Loading branch information
tykus160 authored and joeyparrish committed Aug 19, 2023
1 parent 227bb4c commit b1a5b1b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@
# docker build -t shaka-player-build /path/to/shaka-player/build/docker
# Run with:
# docker run -v /path/to/shaka-player:/usr/src --user $(id -u):$(id -g) shaka-player-build
# Run tests with:
# docker run -v /path/to/shaka-player:/usr/src --user $(id -u):$(id -g) shaka-player-build python3 build/test.py --quick --browsers ChromeHeadless

FROM alpine:3.14
FROM alpine:3.18

# Install dependencies
RUN apk add --update --no-cache \
bash git nodejs npm openjdk11-jre-headless python3
bash chromium chromium-chromedriver git nodejs npm openjdk11-jre-headless python3

WORKDIR /usr/src
ENV HOME /tmp
ENV CHROMEDRIVER_PATH /usr/bin/chromedriver

CMD ["python3", "build/all.py"]

0 comments on commit b1a5b1b

Please sign in to comment.