From 1a348a8dee74667899d84fd358db1cc806f7decc Mon Sep 17 00:00:00 2001 From: Bau Nguyen Date: Fri, 6 Sep 2024 12:32:32 +0100 Subject: [PATCH] upgrade for cypress --- Dockerfile | 2 +- Dockerfile.dependencies | 2 +- docs/Docker.md | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2d5cfd81116..7f52a8e985b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM gcr.io/sre-docker-registry/data-hub-frontend-dependencies:4.3.3 +FROM gcr.io/sre-docker-registry/data-hub-frontend-dependencies:4.3.4 ARG CURRENT_UID ARG CURRENT_GID diff --git a/Dockerfile.dependencies b/Dockerfile.dependencies index 42c25621e3f..a81a6686aee 100644 --- a/Dockerfile.dependencies +++ b/Dockerfile.dependencies @@ -53,7 +53,7 @@ COPY --chown=node:node package*.json "$HOME/" WORKDIR $HOME # Install specific version of cypress -RUN npm install -g cypress@13.13.2 \ +RUN npm install -g cypress@13.14.1 \ && npx cypress verify \ && npx cypress cache path \ && npx cypress cache list \ diff --git a/docs/Docker.md b/docs/Docker.md index 1976245f888..bfd3c968d6c 100644 --- a/docs/Docker.md +++ b/docs/Docker.md @@ -5,9 +5,11 @@ _Helpful Docker commands that allow you to bring up containers, run a bunch of t **Note for Mac Users:** By default, docker on Mac will restrict itself to using just 2GB of memory. This [should be increased](https://docs.docker.com/docker-for-mac/#resources) to at least 6GB to avoid running in to unexpected problems. **Note for Mac Users 2:** Should you ever come across this error: + ``` qemu: uncaught target signal 11 (Segmentation fault) - core dumped ``` + Go to _Docker Desktop -> Settings -> General_ and check the _Use Rosetta for x86/amd64 emulation on Apple Silicon_ checkbox. That should fix the issue. @@ -33,7 +35,7 @@ Ensure you have [gcloud CLI installed](https://cloud.google.com/sdk/docs/install > If you have issues when building the dependencies image, especially if you are using a Mac with an Apple chip, this is most likely due to incompatibility with the `arm` architecture; instead you need to build on `amd` architecture. Please refer to [troubleshooting guide](./Troubleshooting.md) and follow the steps under the Building dependency images section, before retrying the build command below. ```bash -export VERSION=4.3.3 # Increment this version each time when you edit Dockerfile. +export VERSION=4.3.4 # Increment this version each time when you edit Dockerfile. docker build -f Dockerfile.dependencies -t data-hub-frontend-dependencies . --platform linux/amd64