Skip to content

Figure out how to run Firefox better #104

@bahmutov

Description

@bahmutov
  • right now the only way to run Firefox is to use --user 1001 to match the permissions GH sets when creating a home folder for the user
container:
  image: cypress/browsers:node12.16.1-chrome80-ff73
  options: --user 1001
docker.io/cypress/browsers:node12.16.1-chrome80-ff73
/usr/bin/docker create --name 9841aeea80f6424291fc77ef4b420dd6_cypressbrowsersnode12161chrome80ff73_ee5fd3 
--label e87b52 
--workdir /__w/github-action/github-action 
--network github_network_7218f6f710d149c59f24a8cab63bbe10  
-e "HOME=/github/home"

Permissions on the home folder

Run ls -la /github/home
total 8
drwxr-xr-x 2 1001  115 4096 Mar  5 15:33 .
drwxr-xr-x 4 root root 4096 Mar  5 15:33 ..

It would be nice to run with any non-root user, for example our cypress-docker-images have node user with id 1000.

PS: the 1001 user works but has group id of 0

$ id
uid=1001 gid=0(root) groups=0(root)

Preferred

container:
  image: cypress/browsers:node12.16.1-chrome80-ff73
  options: --user node

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions