Skip to content

Commit

Permalink
remove separate user, permissions issue when installing Cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed May 23, 2017
1 parent 7af1395 commit 3f9406c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.DS_Store
test/src/.Trash-0/
test/src/cypress/videos/
11 changes: 0 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,3 @@ RUN apt-get update && \
libnss3 \
libxss1 \
xvfb

# run as non-root user inside the docker container
# first add a new group "qa"
RUN groupadd -r qa && useradd -m -r -g qa cypress

# give the new user permissions
RUN chown -R cypress /usr/local
RUN chown -R cypress /home/cypress

# now run as new user "cypress" from group "qa"
USER cypress
Binary file removed test/src/cypress/videos/wqb42.mp4
Binary file not shown.

0 comments on commit 3f9406c

Please sign in to comment.