Sakshi Kumar
Sakshi Kumar

Reputation: 31

How to run puppeteer on AWS Fargate?

I have integrated my GUI with puppeteer. It runs fine locally. I want to deploy my application on AWS.

After deploying UI on AWS Fargate, I get the following error message: enter image description here

How can I resolve this error? The error means that chromium is not found on docker container. Right? I have given the command to download chromium in my docker file. While installing packages, it downloads the browser as well. Still it throws this error when container runs.

Kindly suggest a way to resolve it.

Upvotes: 0

Views: 1753

Answers (1)

Adiii
Adiii

Reputation: 59956

First, check the path of chromium-browser, and if it work on local it should on Fargate, how you start the container locally? verify the local path of the chromium and add that path in the task definition of Fargate, as the current path does not seems correct.

You can add ENV to task definition.

"environment" : [
    { "name" : "CHROMIUM_PATH", "value" : "/usr/bin/chromium-browser" }
]

Upvotes: 1

Related Questions