- 
                Notifications
    You must be signed in to change notification settings 
- Fork 396
chore: add trixie internal images #1440
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
          
     Merged
      
      
    
      
        
          +118
        
        
          −7
        
        
          
        
      
    
  
  
     Merged
                    Changes from 1 commit
      Commits
    
    
            Show all changes
          
          
            2 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      
    File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,91 @@ | ||
| # build it with command | ||
| # docker build -t cypress/base-internal:22.19.0-trixie --platform linux/amd64 . | ||
| # | ||
| FROM node:22.19.0-trixie-slim | ||
|  | ||
| RUN apt-get update && \ | ||
| apt-get install --no-install-recommends -y \ | ||
| libgtk-3-0t64 \ | ||
| libnotify-dev \ | ||
| libgbm-dev \ | ||
| libnss3 \ | ||
| libxss1 \ | ||
| libasound2t64 \ | ||
| libxtst6 \ | ||
| procps \ | ||
| xauth \ | ||
| xvfb \ | ||
| build-essential \ | ||
| # install text editors | ||
| vim-tiny \ | ||
| nano \ | ||
| # install emoji font | ||
| fonts-noto-color-emoji \ | ||
| # install Chinese fonts | ||
| # this list was copied from https://github.com/jim3ma/docker-leanote | ||
| fonts-arphic-bkai00mp \ | ||
| fonts-arphic-bsmi00lp \ | ||
| fonts-arphic-gbsn00lp \ | ||
| fonts-arphic-gkai00mp \ | ||
| fonts-arphic-ukai \ | ||
| fonts-arphic-uming \ | ||
| ttf-wqy-zenhei \ | ||
| xfonts-wqy \ | ||
| # clean up | ||
| && rm -rf /var/lib/apt/lists/* \ | ||
| && apt-get clean | ||
|  | ||
| USER root | ||
|  | ||
| RUN node --version | ||
|  | ||
|  | ||
| # Install dependencies | ||
| RUN apt-get update && \ | ||
| apt-get install -y \ | ||
| fonts-liberation \ | ||
| git \ | ||
| libcurl4 \ | ||
| libcurl3-gnutls \ | ||
| libvulkan1 \ | ||
| xdg-utils \ | ||
| wget \ | ||
| # needed for circle orb browsers to install firefox | ||
| gpg \ | ||
| # needed for circle orb browsers to install chromedriver | ||
| jq \ | ||
| curl \ | ||
| # chrome dependencies | ||
| libu2f-udev \ | ||
| # firefox dependencies | ||
| bzip2 \ | ||
| # add codecs needed for video playback in firefox | ||
| # https://github.com/cypress-io/cypress-docker-images/issues/150 | ||
| mplayer \ | ||
| \ | ||
| # clean up | ||
| && rm -rf /var/lib/apt/lists/* \ | ||
| && apt-get clean | ||
|  | ||
| # install libappindicator3-1 - not included with Debian 11 | ||
| RUN wget --no-verbose /usr/src/libappindicator3-1_0.4.92-7_amd64.deb "http://ftp.us.debian.org/debian/pool/main/liba/libappindicator/libappindicator3-1_0.4.92-7_amd64.deb" && \ | ||
| dpkg -i /usr/src/libappindicator3-1_0.4.92-7_amd64.deb ; \ | ||
| apt-get install -f -y && \ | ||
| rm -f /usr/src/libappindicator3-1_0.4.92-7_amd64.deb | ||
|  | ||
| # a few environment variables to make NPM installs easier | ||
| # good colors for most applications | ||
| ENV TERM=xterm | ||
| # avoid million NPM install messages | ||
| ENV npm_config_loglevel=warn | ||
|  | ||
| RUN npm --version \ | ||
| && npm install -g yarn@latest --force \ | ||
| && yarn --version \ | ||
| && node -p process.versions \ | ||
| && node -p 'module.paths' \ | ||
| && echo " node version: $(node -v) \n" \ | ||
| "npm version: $(npm -v) \n" \ | ||
| "yarn version: $(yarn -v) \n" \ | ||
| "debian version: $(cat /etc/debian_version) \n" \ | ||
| "user: $(whoami) \n" | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # cypress/base-internal:22.19.0-trixie | ||
|  | ||
| A Docker image with all dependencies pre-installed based on Debian Trixie. | ||
|  | ||
| NOTE: This image is intended for internal use with https://github.com/cypress-io/cypress. It contains a few differences from the factory, such as: | ||
|  | ||
| #### Dependency Additions | ||
|  | ||
| - xauth (to run xvfb inside system-tests) | ||
| - build-essential to install `make` and other linux build packages | ||
|  | ||
| #### Env variables | ||
|  | ||
| - Does not contain the `CACHE_FOLDER` and `FACTORY_DEFAULT_NODE_VERSION` env variables to keep unit tests non environment specific | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| #!/bin/bash | ||
|  | ||
| set -e+x | ||
|  | ||
| # build image with Cypress dependencies | ||
| LOCAL_NAME=cypress/base-internal:22.19.0-trixie | ||
|  | ||
| echo "Building $LOCAL_NAME" | ||
| docker build -t $LOCAL_NAME . --platform linux/amd64 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't want to blow away the current tag as that could cause build issues. Once we have some guaranteed stability, I will remove the
-trixiepostfix and overwrite the original tagThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
postfix removed in 2a1ca1e