Coder Social home page Coder Social logo

cy-m1's Introduction

Dockerfile to build a cypress image for Apple silicon M1 Macs

This Dockerfile is inspired by cypress-io/cypress-docker-images#431 (comment) but stripped down to the bare minium to run Cypress inside Electron.

Build example

export CY_VERSION=9.4.1
docker build -t "cypress/m1:${CY_VERSION}" --build-arg VERSION=${CY_VERSION} .

Execution example

export CY_VERSION=9.4.1
docker run -it -v $PWD:/e2e -w /e2e cypress/m1:${CY_VERSION}

cy-m1's People

Stargazers

Jatin avatar Yigitalp Ertem avatar  avatar Steven Cook avatar Tarbaev Bair avatar netop://ウエハ avatar Jesse Youngblood avatar Abhiram Sudhakaran avatar Jayson Harshbarger avatar Nick Spiel avatar Julian Nymark avatar

Watchers

James Cloos avatar  avatar Abhiram Sudhakaran avatar

cy-m1's Issues

Details on how to build with a different version

Thank you for this... the Dockerfile as is worked for getting a 9.3.1 version. Any hints on what it takes to build with a different version? I tried simply change the version numbers in the Dockerfile but that didn't work.

Cannot find module 'cypress'

I get this following error after building your image and then running it. I thought Cypress is supposed to run within the image.

Details: Error: Cannot find module 'cypress'
Require stack:

  • /e2e/cypress.config.js
  • /root/.cache/Cypress/10.2.0/Cypress/resources/app/packages/server/lib/plugins/child/run_require_async_child.js
  • /root/.cache/Cypress/10.2.0/Cypress/resources/app/packages/server/lib/plugins/child/require_async_child.js

how to add chrome?

how to add chrome?

is it ok jsut add like this:

FROM --platform=linux/arm64 node:16.13.0-bullseye as builder
FROM --platform=linux/arm64 cypress/browsers:node16.14.2-slim-chrome100-ff99-edge

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.