Skip to content

Commit

Permalink
Update E2E tests to use Node.js 20 and Chrome 121
Browse files Browse the repository at this point in the history
This resolves an error with previous version of the image where
Chrome install failed due to missing public key used for signing
Chrome releases:

```
\#6 2.433 W: GPG error: https://dl.google.com/linux/chrome/deb stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY E88979FB9B30ACF2
\#6 2.433 E: The repository 'https://dl.google.com/linux/chrome/deb stable InRelease' is not signed.
```
  • Loading branch information
AlanGreene committed Feb 7, 2024
1 parent acc7d75 commit 2deebec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
1 change: 1 addition & 0 deletions packages/e2e/.dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
base-image
15 changes: 3 additions & 12 deletions packages/e2e/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022-2023 The Tekton Authors
# Copyright 2022-2024 The Tekton Authors
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
Expand All @@ -9,17 +9,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM cypress/browsers:node18.12.0-chrome107
RUN apt-get update && apt-get install -y gpg &&\
curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.28/deb/Release.key | gpg --dearmor -o /usr/share/keyrings/kubernetes-apt-keyring.gpg &&\
echo "deb [signed-by=/usr/share/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.28/deb/ /" | tee /etc/apt/sources.list.d/kubernetes.list &&\
apt-get update && apt-get install -y \
kubectl \
&& rm -rf /var/lib/apt/lists/*
USER node
WORKDIR /home/node
ENV CI=true
ENV NO_COLOR=true
FROM gcr.io/tekton-releases/dogfooding/dashboard-e2e-base:node20.11.0-chrome121

ENTRYPOINT ["npm", "run", "test:ci"]
CMD ["--", "--browser", "chrome"]

Expand Down

0 comments on commit 2deebec

Please sign in to comment.