Right now java library when running in the playwright/java docker image is not aware of installed browsers automatically. Also Even having a lot of things installed, the library requires node.js instalation that is not bundled with image(yes, it bundled with the library itself, but this have some drawbacks, see below).
Right now running java application with this library inside of playwright/java container with default settings behaves the same way as it would behave on empty+java base image. When the application started and playwright API is called, these steps happen:
- java playwright detects no node.js installed
- java playwright unpack node.js in tmp folder
- java playwright can't see installed browsers
- java playwright download browsers into temp directory
Expected behavior:
- java playwright detects bundled with docker image node.js installation via exposed in docker image environment variable
- java playwright detects bundled with docker image browsers via exposed in docker image environment variable
- No executable files are created in /tmp, docker image follows best security practices about immutable infrastructure
- Java library is ready to run immediately without any "preparation"
Right now java library when running in the playwright/java docker image is not aware of installed browsers automatically. Also Even having a lot of things installed, the library requires node.js instalation that is not bundled with image(yes, it bundled with the library itself, but this have some drawbacks, see below).
Right now running java application with this library inside of playwright/java container with default settings behaves the same way as it would behave on empty+java base image. When the application started and playwright API is called, these steps happen:
Expected behavior: