aws / aws-codebuild-docker-images

Official AWS CodeBuild repository for managed Docker images http://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref.html
Other
1.11k stars 973 forks source link

Add Cypress prerequisites to standard 7 #646

Open rory-wilson opened 1 year ago

rory-wilson commented 1 year ago

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 commented 1 year ago

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 commented 10 months ago

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 commented 9 months ago

Having the same problem. Any updates on this?

polina-anisova commented 8 months ago

Any updates please?

krollins4 commented 7 months ago

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

luafanti commented 7 months ago

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