Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
627 views
in Technique[技术] by (71.8m points)

Getting permission error when running my docker image for cypress inside openshift

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...