Comments (4)
@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.
@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.
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)
- Support new with params HOT 5
- Downloading Chrome in Docker container causes mismatch issues.
- The browser is crashing after when loading the extension
- Upgrade node to v18.7.0 HOT 2
- Commands that are chained with && are not fully executed HOT 1
- Error: net::ERR_BLOCKED_BY_CLIENT at chrome-extension:// HOT 2
- Cannot find npm cache on GitHub actions HOT 2
- Unable to view output from command HOT 4
- Cannot run Puppeteer in sandbox mode? HOT 3
- Setup a simple test repo.
- actions/npm@master in readme isn't available HOT 1
- It's possible to see the launched chrome in docker? HOT 3
- Job fails with `Cannot open display` HOT 9
- Add FFMPEG
- Marketplace shows 12.3.1 as latest version HOT 1
- Add a license HOT 2
- Unable to launch browser HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppeteer-headful.