Skip to content

[Feature] Java library poor playwright/java docker image integration #1268

@msangel

Description

@msangel

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:

  1. java playwright detects no node.js installed
  2. java playwright unpack node.js in tmp folder
  3. java playwright can't see installed browsers
  4. java playwright download browsers into temp directory

Expected behavior:

  1. java playwright detects bundled with docker image node.js installation via exposed in docker image environment variable
  2. java playwright detects bundled with docker image browsers via exposed in docker image environment variable
  3. No executable files are created in /tmp, docker image follows best security practices about immutable infrastructure
  4. Java library is ready to run immediately without any "preparation"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions