Git Product home page Git Product logo

Comments (6)

vania-pooh avatar vania-pooh commented on July 16, 2024

@marksievers

  1. We decided to not implement this sync feature in cm code because is can be easily solved with existing command line tools. Take a look at the following documentation section: http://aerokube.com/selenoid/latest/#_syncing_browser_images_from_existing_file
  2. Now regarding --browsers-json. This flag in fact specifies where another browsers.json file (with completely different contents) is located. This second file stores information about webdriver binaries and is used only when Docker is not installed. So by default cm downloads this file here: https://github.com/aerokube/cm/blob/master/browsers.json So this flag is useless in your case.

from cm.

marksievers avatar marksievers commented on July 16, 2024

@vania-pooh Thank you for the follow up.

Regarding point 2; understood - not what I thought it was intended for.

Regarding point 1, I understand the function of the command (pulling images from dockerhub based on the versions in a browsers.json file) but I don't see how that fits in to configuring Selenoid with the available browsers. My expectation is that I am able to produce a aerokube/selenoid image that when spun up as a container has the above browsers.json (firefox v28 only) in /etc/selenoid/browsers.json (or has it passed to it) - is this correct or am I going about it the wrong way using cm?

from cm.

vania-pooh avatar vania-pooh commented on July 16, 2024

@marksievers currently there is no way to download an exact version. The only supported feature is to download last N versions of the browser. E.g.:

$ ./cm selenoid start --browsers firefox,chrome --last-versions 10

In your case --last-versions should be something like 26 (v54 - v28), but this will download v28 and all versions newer than it. So if you wish only v28 - currently we expect to create such config manually as it is rather rare case. The most popular case is to have last N versions this is why we implemented it. Another flag --browsers allows to limit desired browsers (comma separated without space).

from cm.

marksievers avatar marksievers commented on July 16, 2024

@vania-pooh Awesome, thank you for the clarification!

And wonderful suite of tools again, really well done!

from cm.

marksievers avatar marksievers commented on July 16, 2024

As an update on this, what I did find worked for me was the following:

  1. As Ivan mentioned, using jq to pull the required images.
  2. Using the selenoid standalone binary which DOES accept a custom browsers.json using the --conf flag.

from cm.

vania-pooh avatar vania-pooh commented on July 16, 2024

@marksievers selenoid accepts any valid configuration. cm is a one command setup.exe for the most common cases able to automatically pull images and generate config. That's the difference.

from cm.

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.