From 750a248e0ca5f543838aa7649c7bc329040fba55 Mon Sep 17 00:00:00 2001 From: Sujith Date: Tue, 10 Jan 2023 16:53:28 +0530 Subject: [PATCH] fix: node 18.12.1 to 18.10.0 ubuntu mongo compat Signed-off-by: Sujith --- .circleci/config.yml | 6 +++--- .nvmrc | 2 +- apps/reaction/Dockerfile | 4 ++-- apps/reaction/package.json | 2 +- package.json | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 100dae848d1..287e37af5e8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -10,7 +10,7 @@ defaults: &defaults DOCKER_NAMESPACE: "reactioncommerce" DOCKER_NAME: "reaction" docker: - - image: cimg/node:18.12.1 + - image: cimg/node:18.10.0 install_pnpm: &install_pnpm - run: @@ -96,7 +96,7 @@ jobs: test-integration-query: <<: *defaults docker: - - image: cimg/node:18.12.1 + - image: cimg/node:18.10.0 # Integration tests need MongoDB server running and accessible on port 27017 - image: mongo:4.0 command: mongod --oplogSize 128 --replSet rs0 --storageEngine=wiredTiger @@ -123,7 +123,7 @@ jobs: test-integration-mutation: <<: *defaults docker: - - image: cimg/node:18.12.1 + - image: cimg/node:18.10.0 # Integration tests need MongoDB server running and accessible on port 27017 - image: mongo:4.0 command: mongod --oplogSize 128 --replSet rs0 --storageEngine=wiredTiger diff --git a/.nvmrc b/.nvmrc index b460d6f2dea..5036cb7c078 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -18.12.1 +18.10.0 diff --git a/apps/reaction/Dockerfile b/apps/reaction/Dockerfile index b4e1731270d..5725cbf6802 100644 --- a/apps/reaction/Dockerfile +++ b/apps/reaction/Dockerfile @@ -1,7 +1,7 @@ # Dockerfile for production builds # syntax=docker/dockerfile:1.4 -FROM node:18.12.1-alpine as deps +FROM node:18.10.0-alpine as deps # hadolint ignore=DL3018 RUN apk --no-cache add bash less curl make g++ glib @@ -17,7 +17,7 @@ RUN pnpm --filter=reaction --prod deploy deps --ignore-scripts # hadolint ignore=DL3003,SC2015 RUN cd deps/node_modules/sharp && npm run install -FROM node:18.12.1-alpine +FROM node:18.10.0-alpine # hadolint ignore=DL3018 RUN apk --no-cache add bash less tini vim curl diff --git a/apps/reaction/package.json b/apps/reaction/package.json index 3839cf9cfbf..0466cfd3211 100644 --- a/apps/reaction/package.json +++ b/apps/reaction/package.json @@ -5,7 +5,7 @@ "main": "./src/index.js", "type": "module", "engines": { - "node": ">=18.12.1" + "node": ">=18.10.0" }, "homepage": "https://github.com/reactioncommerce/reaction", "url": "https://github.com/reactioncommerce/reaction", diff --git a/package.json b/package.json index 2c34d82a01a..8978cd4ff5d 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "description": "Reaction is a modern reactive, real-time event driven ecommerce platform.", "main": "index.js", "engines": { - "node": ">=18.12.1", + "node": ">=18.10.0", "npm": ">=7" }, "engineStrict": true,