From c9c17432ec8d3529289a429f7f8a8a8c405b8e0d Mon Sep 17 00:00:00 2001 From: Pierre Romera Date: Wed, 23 Oct 2024 11:11:01 +0000 Subject: [PATCH] build: add max old space size --- .circleci/config.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index bb008867fa..57a6c20442 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -69,15 +69,18 @@ jobs: resource_class: large docker: - image: cimg/node:18.19 + environment: + # This is required to run the tests + NODE_OPTIONS: --max_old_space_size=4096 - image: docker.elastic.co/elasticsearch/elasticsearch:7.9.1 environment: - - "ES_JAVA_OPTS=-Xms256m -Xmx256m" - - "discovery.type=single-node" - - "cluster.name=datashare" + ES_JAVA_OPTS: -Xms256m -Xmx256m + discovery.type: single-node + cluster.name: datashare # CORS - - "http.cors.enabled=true" - - "http.cors.allow-origin=*" - - "http.cors.allow-methods=OPTIONS, HEAD, GET, POST, PUT, DELETE" + http.cors.enabled: "true" + http.cors.allow-origin: "*" + http.cors.allow-methods: OPTIONS, HEAD, GET, POST, PUT, DELETE name: elasticsearch working_directory: ~/datashare-client steps: