Skip to content

Commit d7236af

Browse files
authored
chore: add trixie internal images (#1440)
* chore: add trixie internal images * remove trixie prefix and update docs
1 parent 6b8b63b commit d7236af

File tree

5 files changed

+118
-7
lines changed

5 files changed

+118
-7
lines changed
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
# build it with command
2+
# docker build -t cypress/base-internal:22.19.0-trixie --platform linux/amd64 .
3+
#
4+
FROM node:22.19.0-trixie-slim
5+
6+
RUN apt-get update && \
7+
apt-get install --no-install-recommends -y \
8+
libgtk-3-0t64 \
9+
libnotify-dev \
10+
libgbm-dev \
11+
libnss3 \
12+
libxss1 \
13+
libasound2t64 \
14+
libxtst6 \
15+
procps \
16+
xauth \
17+
xvfb \
18+
build-essential \
19+
# install text editors
20+
vim-tiny \
21+
nano \
22+
# install emoji font
23+
fonts-noto-color-emoji \
24+
# install Chinese fonts
25+
# this list was copied from https://github.com/jim3ma/docker-leanote
26+
fonts-arphic-bkai00mp \
27+
fonts-arphic-bsmi00lp \
28+
fonts-arphic-gbsn00lp \
29+
fonts-arphic-gkai00mp \
30+
fonts-arphic-ukai \
31+
fonts-arphic-uming \
32+
ttf-wqy-zenhei \
33+
xfonts-wqy \
34+
# clean up
35+
&& rm -rf /var/lib/apt/lists/* \
36+
&& apt-get clean
37+
38+
USER root
39+
40+
RUN node --version
41+
42+
43+
# Install dependencies
44+
RUN apt-get update && \
45+
apt-get install -y \
46+
fonts-liberation \
47+
git \
48+
libcurl4 \
49+
libcurl3-gnutls \
50+
libvulkan1 \
51+
xdg-utils \
52+
wget \
53+
# needed for circle orb browsers to install firefox
54+
gpg \
55+
# needed for circle orb browsers to install chromedriver
56+
jq \
57+
curl \
58+
# chrome dependencies
59+
libu2f-udev \
60+
# firefox dependencies
61+
bzip2 \
62+
# add codecs needed for video playback in firefox
63+
# https://github.com/cypress-io/cypress-docker-images/issues/150
64+
mplayer \
65+
\
66+
# clean up
67+
&& rm -rf /var/lib/apt/lists/* \
68+
&& apt-get clean
69+
70+
# install libappindicator3-1 - not included with Debian 13
71+
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" && \
72+
dpkg -i /usr/src/libappindicator3-1_0.4.92-7_amd64.deb ; \
73+
apt-get install -f -y && \
74+
rm -f /usr/src/libappindicator3-1_0.4.92-7_amd64.deb
75+
76+
# a few environment variables to make NPM installs easier
77+
# good colors for most applications
78+
ENV TERM=xterm
79+
# avoid million NPM install messages
80+
ENV npm_config_loglevel=warn
81+
82+
RUN npm --version \
83+
&& npm install -g yarn@latest --force \
84+
&& yarn --version \
85+
&& node -p process.versions \
86+
&& node -p 'module.paths' \
87+
&& echo " node version: $(node -v) \n" \
88+
"npm version: $(npm -v) \n" \
89+
"yarn version: $(yarn -v) \n" \
90+
"debian version: $(cat /etc/debian_version) \n" \
91+
"user: $(whoami) \n"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# cypress/base-internal:22.19.0-trixie
2+
3+
A Docker image with all dependencies pre-installed based on Debian Trixie.
4+
5+
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:
6+
7+
#### Dependency Additions
8+
9+
- xauth (to run xvfb inside system-tests)
10+
- build-essential to install `make` and other linux build packages
11+
12+
#### Env variables
13+
14+
- Does not contain the `CACHE_FOLDER` and `FACTORY_DEFAULT_NODE_VERSION` env variables to keep unit tests non environment specific
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
set -e+x
4+
5+
# build image with Cypress dependencies
6+
LOCAL_NAME=cypress/base-internal:22.19.0-trixie
7+
8+
echo "Building $LOCAL_NAME"
9+
docker build -t $LOCAL_NAME . --platform linux/amd64

base-internal/releases/node-22/22.19.0-yarn-berry/Dockerfile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
# build it with command
22
# docker build -t cypress/base-internal:22.19.0-yarn-berry --platform linux/amd64 .
33
#
4-
FROM node:22.19.0-bookworm-slim
4+
FROM node:22.19.0-trixie-slim
55

66
RUN apt-get update && \
77
apt-get install --no-install-recommends -y \
8-
libgtk2.0-0 \
9-
libgtk-3-0 \
8+
libgtk-3-0t64 \
109
libnotify-dev \
11-
libgconf-2-4 \
1210
libgbm-dev \
1311
libnss3 \
1412
libxss1 \
15-
libasound2 \
13+
libasound2t64 \
1614
libxtst6 \
1715
procps \
1816
xauth \
@@ -35,7 +33,6 @@ RUN apt-get update && \
3533
fonts-arphic-ukai \
3634
fonts-arphic-uming \
3735
ttf-wqy-zenhei \
38-
ttf-wqy-microhei \
3936
xfonts-wqy \
4037
# clean up
4138
&& rm -rf /var/lib/apt/lists/* \

base-internal/releases/node-22/22.19.0-yarn-berry/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# cypress/base-internal:22.19.0-yarn-berry
22

3-
A Docker image with all dependencies pre-installed based on Debian Bookworm with Yarn Berry (v4.3.1).
3+
A Docker image with all dependencies pre-installed based on Debian Trixie with Yarn Berry (v4.3.1).
44

55
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:
66

0 commit comments

Comments
 (0)