forked from stolostron/compute-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.cypress
40 lines (29 loc) · 1.17 KB
/
Dockerfile.cypress
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
# Copyright Red Hat
FROM registry.ci.openshift.org/stolostron/builder:go1.18-linux AS builder
# FROM cypress/included:8.4.1 as production
# The below is just a copy of the above retagged and pushed to quay.io for easier pulling
#FROM quay.io/kcormier/cypress-included:latest as production
FROM quay.io/chrisahl/cypress-included:latest as production
USER root
ENV CYPRESS_CACHE_FOLDER=/compute-operator-ui-tests/cypress_cache \
GOPATH=/go \
GOVERSION=1.18.3 \
GOBIN=/go/bin \
GOCACHE=/go/pkg/cache \
SONAR_USER_HOME=/opt/sonar/.sonar \
PATH=/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin
RUN mkdir -p /compute-operator-ui-tests/cypress_cache
ENV CYPRESS_CACHE_FOLDER=/compute-operator-ui-tests/cypress_cache
WORKDIR /compute-operator-ui-tests
COPY test/e2e ./test
WORKDIR /compute-operator-ui-tests/test
#RUN npm ci
RUN ./download-clis.sh
RUN ./setup-go.sh
# Make the directory writable by non-root users
RUN chmod -R go+w /compute-operator-ui-tests
# Need to include all of Repo for ginkgo tests
RUN mkdir -p /compute-operator
COPY . /compute-operator
RUN chmod -R go+w /compute-operator
ENTRYPOINT ["./start-cypress-tests.sh"]