Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Cypress prerequisites to standard 7 #646

Open
rory-wilson opened this issue May 29, 2023 · 6 comments
Open

Add Cypress prerequisites to standard 7 #646

rory-wilson opened this issue May 29, 2023 · 6 comments

Comments

@rory-wilson
Copy link

Cypress worked without additional prerequisites in standard 5, but no longer in standard 7. Would it be possible to install the cypress prerequisites as part of the standard 7 docker image?

https://docs.cypress.io/guides/getting-started/installing-cypress#UbuntuDebian

@Antonio-AWS
Copy link

Are you looking to have just the prerequisites list in the link provided to be installed such that Cypress can be installed easier during builds (via npm install cypress --save-dev), or having Cypress installed onto the image in it's entirety?

If it's just the prerequisites for cypress you want, I was able to run a standard:7.0 build with the build command

- npm install --save-dev -g cypress 

If you're having trouble installing cypress let me know the error your seeing and I can take a closer look.

@steven10172
Copy link

I would like the prerequisites installed for cypress to support easy usage after I install via npm. When trying to run cypress on Standard 7.0 I received the following error:



> cypress run
--
927 |  
928 | It looks like this is your first time using Cypress: 13.4.0
929 |  
930 | [STARTED] Task without title.
931 | [FAILED] Cypress failed to start.
932 | [FAILED]
933 | [FAILED] This may be due to a missing library or dependency. https://on.cypress.io/required-dependencies
934 | [FAILED]
935 | [FAILED] Please refer to the error below for more details.
936 | [FAILED]
937 | [FAILED] ----------
938 | [FAILED]
939 | [FAILED] /root/.cache/Cypress/13.4.0/Cypress/Cypress: error while loading shared libraries: libatk-1.0.so.0: cannot open shared object file: No such file or directory
940 | [FAILED]
941 | [FAILED] ----------
942 | [FAILED]
943 | [FAILED] Platform: linux-x64 (Ubuntu - 22.04)
944 | [FAILED] Cypress Version: 13.4.0
945 | Cypress failed to start.
946 |  
947 | This may be due to a missing library or dependency. https://on.cypress.io/required-dependencies
948 |  
949 | Please refer to the error below for more details.
950 |  
951 | ----------
952 |  
953 | /root/.cache/Cypress/13.4.0/Cypress/Cypress: error while loading shared libraries: libatk-1.0.so.0: cannot open shared object file: No such file or directory
954 |  
955 | ----------
956 |  
957 | Platform: linux-x64 (Ubuntu - 22.04)
958 | Cypress Version: 13.4.0


@mmuller88
Copy link

Having the same problem. Any updates on this?

@polina-anisova
Copy link

Any updates please?

@krollins4
Copy link

I am also running into this same problem and have been unable to find a solution. Anybody find anything yet?

@luafanti
Copy link

I remember that manual install of Cypress deps helped in my case but didn't resolve problem at all

install: {
	commands: [
		'n 20',
		'sudo apt update',
		'sudo apt-get install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libnss3 libxss1 libasound2 libxtst6 xauth xvfb',
	],
},

It is for Ubuntu Code build env and works with aws/codebuild/standard:7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants