Coder Social home page Coder Social logo

Comments (3)

mxschmitt avatar mxschmitt commented on July 23, 2024

Can some please explain how to do this in Docker file?

See here: https://playwright.dev/java/docs/browsers#install-system-dependencies

Also, do I need Node.js to run headless browser when using java library?

No, only the Playwright for Java package is needed.

I'm going to close it for now, since this is not a bug / feature request.

from playwright.

ThatYodaCoder avatar ThatYodaCoder commented on July 23, 2024

Can some please explain how to do this in Docker file?

See here: https://playwright.dev/java/docs/browsers#install-system-dependencies

Also, do I need Node.js to run headless browser when using java library?

No, only the Playwright for Java package is needed.

I'm going to close it for now, since this is not a bug / feature request.

@mxschmitt : Is there anyway I can predownload the required dependencies/binaries and keep it in some folder so that I can use it at the time of docker creation.

Or can I use existing playwright docker image to install required dependencies at the time of my java app docker file creation?

from playwright.

mxschmitt avatar mxschmitt commented on July 23, 2024

Unfortunately not, you need to install the Maven dependencies first and then the Playwright dependencies. Since they contain OS dependencies (apt), you can't cache them.

You could probably create some multi-layer Docker image with only Playwright first and extend from that in order to benefit from caching, so that the whole image does not need to be rebuilt when you change something in your project.

We also have an official Java Docker image, if that helps: https://playwright.dev/java/docs/docker

from playwright.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.