aws-codebuild-docker-images icon indicating copy to clipboard operation
aws-codebuild-docker-images copied to clipboard

Add Cypress prerequisites to standard 7

Open rory-wilson opened this issue 2 years ago • 6 comments

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

rory-wilson avatar May 29 '23 13:05 rory-wilson

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.

Antonio-AWS avatar Jun 16 '23 20:06 Antonio-AWS

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


steven10172 avatar Nov 11 '23 00:11 steven10172

Having the same problem. Any updates on this?

mmuller88 avatar Nov 28 '23 08:11 mmuller88

Any updates please?

polina-anisova avatar Jan 15 '24 19:01 polina-anisova

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

krollins4 avatar Jan 22 '24 19:01 krollins4

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

luafanti avatar Jan 23 '24 07:01 luafanti