Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions factory/.env
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,18 @@ NODE_VERSION="${FACTORY_DEFAULT_NODE_VERSION}"
FACTORY_VERSION='5.5.0'

# Chrome versions: https://www.ubuntuupdates.org/package/google_chrome/stable/main/base/google-chrome-stable
# Linux/amd64 only
CHROME_VERSION='134.0.6998.88-1'

# Cypress versions: https://www.npmjs.com/package/cypress
CYPRESS_VERSION='14.2.0'

# Edge versions: https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable/
# Linux/amd64 only
EDGE_VERSION='134.0.3124.51-1'

# Firefox versions: https://download-installer.cdn.mozilla.net/pub/firefox/releases/
# Linux/amd64 for all versions, Linux/arm64 for versions 136.0 and above
FIREFOX_VERSION='136.0.1'

# Yarn versions: https://www.npmjs.com/package/yarn and
Expand Down
6 changes: 6 additions & 0 deletions factory/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ Example: `CHROME_VERSION='131.0.6778.264-1'`

[Chrome versions](https://www.ubuntuupdates.org/package/google_chrome/stable/main/base/google-chrome-stable)

This browser is currently available only for the `Linux/amd64` platform.

### FIREFOX_VERSION

The version of Firefox to install. If the `ARG` variable is unset or an empty string, Firefox is not installed. The exact version must be used, no wildcards or shorthands are supported.
Expand All @@ -78,6 +80,8 @@ Example: `FIREFOX_VERSION='134.0'`

[Firefox versions](https://download-installer.cdn.mozilla.net/pub/firefox/releases/)

This browser is available for the `Linux/amd64` platform in all versions, and for the `Linux/arm64` platform in Firefox `136.0` and above.

### EDGE_VERSION

The version of Edge to install. If the `ARG` variable is unset or an empty string, Edge is not installed. The exact version must be used, no wildcards or shorthands are supported.
Expand All @@ -86,6 +90,8 @@ Example: `EDGE_VERSION='131.0.2903.112-1'`

[Edge versions](https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable/)

This browser is currently available only for the `Linux/amd64` platform.

## Usage

The Docker `cypress/factory` build process works by relying on the [`ONBUILD`](https://docs.docker.com/engine/reference/builder/#onbuild) Docker instruction to run commands at the image's build time. To make use of the Docker `cypress/factory` image and process, users will have to create a [`Dockerfile`](https://docs.docker.com/reference/dockerfile/) to declare what dependency versions are desired. Docker `ARG` variables can be specified in a number of ways, some of which are demonstrated below. For each of these examples we are building the equivalent of the `cypress/browsers` Docker image with Cypress additionally installed. In each instance, since the example is only testing the Chrome version, the examples could just install Chrome by itself if the other browsers were not used.
Expand Down