Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lack of Information in cypress/base Docker Image Documentation #1026

Open
eduardoacskimlinks opened this issue Mar 26, 2024 · 1 comment
Open

Comments

@eduardoacskimlinks
Copy link

Current Behavior:
When attempting to run the cypress/base:20.11.0 Docker image, we are having difficulty determining the specific setup being utilized.

Upon reviewing the cypressbase documentation, we observed a lack of information regarding the underlying configuration of the Docker image.

Expected Behavior:
We anticipate that the documentation for the cypress/base Docker image will provide comprehensive details about the operating system, npm version, and yarn version employed in each project version.

This enhancement would greatly facilitate understanding and managing the Docker image, enabling users to make informed decisions about its compatibility and suitability for their environments.

@MikeMcC399
Copy link
Collaborator

@eduardoacskimlinks

Thank you for highlighting your documentation needs!

cypress/base:20.11.0 is built with:

  • Operating system: Debian 11.8 (bullseye)
  • Node.js: v20.11.0
  • npm: 10.2.4
  • Yarn: 1.22.19

To bridge the gap until there are some documentation enhancements made, here is some information which may assist you to find the information for other images.

To take the example of cypress/base:20.11.0, you can run commands inside a Docker container to reveal configurations and versions:

docker run --rm -it --entrypoint bash cypress/base:20.11.0
root@f40cf2680f65:/# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
root@f40cf2680f65:/# cat /etc/debian_version
11.8
root@f40cf2680f65:/# node -v
v20.11.0
root@f40cf2680f65:/# npm -v
10.2.4
root@f40cf2680f65:/# yarn -v
1.22.19

You can also extract each item individually. The following will run in an Ubuntu terminal or Microsoft Windows PowerShell:

docker run --rm --entrypoint cat cypress/base:20.11.0 /etc/os-release
docker run --rm --entrypoint cat cypress/base:20.11.0 /etc/debian_version
docker run --rm --entrypoint bash cypress/base:20.11.0 -c 'node -v'
docker run --rm --entrypoint bash cypress/base:20.11.0 -c 'npm -v'
docker run --rm --entrypoint bash cypress/base:20.11.0 -c 'yarn -v'

Some of the version information is also available on Docker Hub under cypress/base:20.11.0.

You can also get a better idea of how the images are built, if you look at cypress/factory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants