-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
38 lines (31 loc) · 1.15 KB
/
Dockerfile
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
FROM docker.io/cypress/included:12.7.0
# point Cypress at the /tmp/cache no matter what user account is used
# see https://on.cypress.io/caching
ENV CYPRESS_CACHE_FOLDER=/tmp/.cache/Cypress
ENV npm_config_cache=/tmp/.cache/npm
# Must remove the Google Chrome repository to run apt update/install because the GPG is missing.
# Install unzip
RUN echo "" > /etc/apt/sources.list.d/google-chrome.list \
&& apt -y update \
&& apt install -y unzip
# Create /tmp/windup-ui-tests, copy this repo in to the container and install required Node packages
RUN mkdir /tmp/windup-ui-tests
WORKDIR /tmp/windup-ui-tests
COPY . .
RUN npm install && \
npm install cypress-mochawesome-reporter \
cypress-tags \
cypress \
cypress-multi-reporters
# Unzip all zip files in /tmp/windup-ui-tests/cypress/fixtures/applications
WORKDIR /tmp/windup-ui-tests/cypress/fixtures/applications
RUN unzip '*.zip'
# Set WORKDIR to /tmp/windup-ui-tests
WORKDIR /tmp/windup-ui-tests
# Set required permissions for OpenShift usage
RUN mkdir -p /.config && \
chgrp -R 0 /.config && \
chmod -R g=u /.config && \
chgrp -R 0 /tmp && \
chmod -R g=u /tmp
CMD ["/bin/bash"]