Coder Social home page Coder Social logo

Comments (4)

jcblw avatar jcblw commented on August 19, 2024

@ngohuytrieu looks like you would need to install docker, into the docker container to get this command to work. Im not sure of the implications of running docker in a docker container or your use case but would assume that the docker commands are not needed here.

Can you maybe speak more about this use case?

from puppeteer-headful.

ngohuytrieu avatar ngohuytrieu commented on August 19, 2024

@jcblw So basically, I build a node js web server using docker and docker-compose
On github action CI, I want to run that docker container and run test command inside that docker container, like this:

docker exec -t app npm run test:e2e-admin

In order to do that here is my github action yml file

jobs:
  test-e2e:
    runs-on: ubuntu-latest

    env:
      PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: "true"

    steps:
      - name: Checkout Repository
        uses: actions/checkout@v2

      - name: Set up Docker Compose
        run: docker-compose -f ${{ env.DOCKER_COMPOSE_FILE }} up -d

      - name: Run E2E Tests
        run: docker exec -t app npm run test:e2e-admin

      - name: Tear down Docker Compose
        run: docker-compose -f ${{ env.DOCKER_COMPOSE_FILE }} down

Unfortunately, I am stuck on this for weeks because of this error

No usable sandbox! Update your kernel or see https://chromium.googlesource.com/chromium/src/+/main/docs/linux/suid_sandbox_development.md for more information on developing with the SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.

Don't get me wrong, I did set --no-sandbox in puppeteer configuration but still no luck

from puppeteer-headful.

jcblw avatar jcblw commented on August 19, 2024

Yeah, this action sets up a docker image that can run Puppeteer. With what you are trying to do, you might just need some of the code from this repo to set up your docker container to run Puppeteer. I think you probably realized that by looking at the action you posted.

from puppeteer-headful.

Related Issues (18)

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.