-
Notifications
You must be signed in to change notification settings - Fork 87
/
Dockerfile.test
47 lines (39 loc) · 1.14 KB
/
Dockerfile.test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM latera/homs_base:latest
USER root
RUN apt-get update && \
apt-get install -y \
libfontconfig1 \
libfontconfig1-dev \
libfreetype6 \
libfreetype6-dev \
libqt5webkit5-dev
RUN apt-get update && \
apt-get install -y \
fonts-liberation \
gstreamer1.0-plugins-base \
gstreamer1.0-tools \
gstreamer1.0-x \
libayatana-indicator7 \
libasound2 \
libgtk-3-0 \
libnspr4 \
libnss3 \
libu2f-udev \
libxss1 \
libxtst6 \
unzip \
xdg-utils \
zip
ARG CHROME_DEB_LINK
RUN wget -O google-chrome.deb $CHROME_DEB_LINK && \
dpkg -i google-chrome.deb
RUN chrome_version=$(google-chrome --version | grep -oE '[.[0-9]+]*') && \
wget https://storage.googleapis.com/chrome-for-testing-public/$chrome_version/linux64/chromedriver-linux64.zip && \
unzip -jq chromedriver-linux64.zip chromedriver-linux64/chromedriver -d /usr/local/bin/ && \
chmod +x /usr/local/bin/chromedriver
COPY --chown=homs ./run_tests.sh ./.rubocop.yml ./.rubocop_todo.yml /
COPY --chown=homs ./.rubocop.yml ./.rubocop_todo.yml ./jest.config.js /opt/homs/
USER homs
RUN yarn install && \
bundle --with test --without oracle
ENTRYPOINT ["/run_tests.sh"]