-
Notifications
You must be signed in to change notification settings - Fork 604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tmpfs and dev shm for Fargate #2324
Comments
Hi @taktakpeops , Let us know if you have any other question. Thanks. |
Hi @fenxiong, It's indeed in your documentation. I was wondering the why of this choice. I will open this issue in the repo you suggested. Thank you ! |
I created a volume for a Fargate task, mounted on /dev/shm and it worked for me. See the CDK code below
|
The problem here is that you aren't mounting a shared memory but a volume named "/dev/shm". In theory, Firefox won't be able to run still. For chrome, there is a flag to prevent it from using the shared memory. |
Summary
This is more a question than an issue. I am currently trying to run a Selenium Grid with Chrome and Firefox node in ECS Fargate.
My container are able to start but all my tests are failing because
/dev/shm
cannot be set as in an ECS launch type.I was wondering if
tmpfs
anddev shm
will be accessible in Fargate at some point. If not, I would like to understand the why (which I believe is related to the architecture of Fargate).Description
Currently, for giving access to
/dev/shm
to my container inside a task, I am doing the following in my Cloudformation manifest:The volume is mounted correctly but Firefox and Chrome keep failing.
Here is an error message I got from my Firefox container:
Expected Behavior
I am expecting to be able to setup tmpfs and dev shm for my container and get my headless browsers to work as expected
Environment Details
ECS Cluster: latest
Selenium Grid Docker images: 3.141.59-yttrium (official images)
The text was updated successfully, but these errors were encountered: