Getting “EACCES: permission denied, unlink '/e2e/cypress/videos/spec.js.mp4” error when running my docker image for cypress inside openshift.
My dockerfile:
FROM cypress/included:6.2.1
RUN mkdir -p /e2e
RUN mkdir -m 777 /appData
RUN chmod -R 777 /e2e
WORKDIR /e2e
COPY . .
USER 20
ENTRYPOINT ["cypress", "run"]
I am also passing “XDG_CONFIG_HOME” as environment variable which has value as “appData”
containers:
- name: sspclient-snapshot
image: >-
my-docker-image
ports:
- containerPort: 8080
protocol: TCP
env:
- name: XDG_CONFIG_HOME
value: /appData
I used https://github.com/bahmutov/demo-docker-cypress-included as a sample code to run Cypress inside OpenShift container
Any help would be highly appriciated.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…