Skip to content

Commit e904d3b

Browse files
committed
Merge branch 'main' into feature/RI-5413-enhance-web-builds
2 parents 0879911 + 5269d23 commit e904d3b

File tree

110 files changed

+1610
-526
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+1610
-526
lines changed

.circleci/build/build.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:18.18-alpine
1+
FROM node:20.14-alpine
22

33
# runtime args and environment variables
44
ARG DIST=Redis-Insight.tar.gz

.circleci/build/release-docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -e
33

44
HELP="Args:
5-
-v - Semver (2.50.0)
5+
-v - Semver (2.52.0)
66
-d - Build image repository (Ex: -d redisinsight)
77
-r - Target repository (Ex: -r redis/redisinsight)
88
"

.circleci/config.yml

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ aliases:
176176

177177
orbs:
178178
win: circleci/[email protected]
179-
node: circleci/node@5.0.2
179+
node: circleci/node@5.2.0
180180
aws: circleci/[email protected]
181181

182182
executors:
@@ -189,7 +189,7 @@ executors:
189189
docker_layer_caching: true
190190
docker-node:
191191
docker:
192-
- image: cimg/node:18.15.0
192+
- image: cimg/node:20.15
193193
docker:
194194
docker:
195195
- image: cibuilds/docker:19.03.5
@@ -387,14 +387,24 @@ jobs:
387387
steps:
388388
- checkout
389389
- node/install:
390-
node-version: '18.15.0'
390+
install-yarn: true
391+
node-version: '20.15'
391392
- attach_workspace:
392393
at: .
393394
- run: sudo apt-get install net-tools
394395
- run:
395-
name: Clone mocked RDI server
396+
name: Install WM
397+
command: sudo apt install fluxbox
398+
- run:
399+
name: Run X11
396400
command: |
397-
git clone https://[email protected]/RedisInsight/RDI_server_mocked.git tests/e2e/rte/rdi
401+
Xvfb :99 -screen 0 1920x1080x24 &
402+
sleep 3
403+
fluxbox &
404+
# - run:
405+
# name: Clone mocked RDI server
406+
# command: |
407+
# git clone https://[email protected]/RedisInsight/RDI_server_mocked.git tests/e2e/rte/rdi
398408
- run:
399409
name: .AppImage tests
400410
command: |
@@ -434,8 +444,8 @@ jobs:
434444
at: .
435445
- run:
436446
command: |
437-
nvm install 18.15.0
438-
nvm use 18.15.0
447+
nvm install 20.15
448+
nvm use 20.15
439449
npm install --global yarn
440450
- run:
441451
command: |
@@ -487,10 +497,10 @@ jobs:
487497
name: Load built docker image from workspace
488498
command: |
489499
docker image load -i /tmp/release/docker/docker-linux-alpine.amd64.tar
490-
- run:
491-
name: Clone mocked RDI server
492-
command: |
493-
git clone https://[email protected]/RedisInsight/RDI_server_mocked.git tests/e2e/rte/rdi
500+
# - run:
501+
# name: Clone mocked RDI server
502+
# command: |
503+
# git clone https://[email protected]/RedisInsight/RDI_server_mocked.git tests/e2e/rte/rdi
494504
- run:
495505
name: Run tests
496506
command: |
@@ -605,7 +615,8 @@ jobs:
605615
steps:
606616
- checkout
607617
- node/install:
608-
node-version: '18.15.0'
618+
install-yarn: true
619+
node-version: '20.15'
609620
- attach_workspace:
610621
at: .
611622
- run:
@@ -666,7 +677,7 @@ jobs:
666677
- release/*-linux.yml
667678
macosx:
668679
executor: macos
669-
resource_class: macos.x86.medium.gen2
680+
resource_class: macos.m1.medium.gen1
670681
parameters:
671682
env:
672683
description: Build environment (stage || prod)
@@ -684,7 +695,7 @@ jobs:
684695
steps:
685696
- checkout
686697
- node/install:
687-
node-version: '18.15.0'
698+
node-version: '20.15'
688699
- attach_workspace:
689700
at: .
690701
- run:
@@ -783,8 +794,8 @@ jobs:
783794
- run:
784795
name: Build windows exe
785796
command: |
786-
nvm install 18.15.0
787-
nvm use 18.15.0
797+
nvm install 20.15
798+
nvm use 20.15
788799
npm install --global yarn
789800
790801
# set ALL_REDIS_COMMANDS=$(curl $ALL_REDIS_COMMANDS_RAW_URL)
@@ -875,7 +886,8 @@ jobs:
875886
steps:
876887
- checkout
877888
- node/install:
878-
node-version: '18.15.0'
889+
install-yarn: true
890+
node-version: '20.15'
879891
- run:
880892
name: Install dependencies
881893
command: |

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# the best way to minimize the number of node_module restores and build steps
77
# while still keeping the final image small.
88

9-
FROM node:18.18-alpine as build
9+
FROM node:20.14-alpine as build
1010

1111
# update apk repository and install build dependencies
1212
RUN apk update && apk add --no-cache --virtual .gyp \
@@ -39,7 +39,7 @@ RUN yarn --cwd ./redisinsight/api install --production
3939
COPY ./redisinsight/api/.yarnclean.prod ./redisinsight/api/.yarnclean
4040
RUN yarn --cwd ./redisinsight/api autoclean --force
4141

42-
FROM node:18.18-alpine
42+
FROM 20.14-alpine
4343

4444
# runtime args and environment variables
4545
ARG NODE_ENV=production

api.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:18.15.0-alpine as build
1+
FROM node:20.14-alpine as build
22

33
RUN apk update && apk add bash libsecret dbus-x11 gnome-keyring
44
RUN dbus-uuidgen > /var/lib/dbus/machine-id
@@ -19,7 +19,7 @@ RUN yarn install --production
1919
RUN cp .yarnclean.prod .yarnclean && yarn autoclean --force
2020

2121
# Production image
22-
FROM node:18.15.0-alpine as production
22+
FROM node:20.14-alpine as production
2323

2424
RUN apk update && apk add bash libsecret dbus-x11 gnome-keyring
2525
RUN dbus-uuidgen > /var/lib/dbus/machine-id

electron-builder.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"node_modules",
88
"package.json"
99
],
10-
"afterSign": "electron-builder-notarize",
1110
"artifactName": "Redis-Insight-${os}-${arch}.${ext}",
1211
"compression": "normal",
1312
"asarUnpack": [
@@ -32,6 +31,9 @@
3231
"arch": ["x64", "arm64"]
3332
}
3433
],
34+
"notarize": {
35+
"teamId": "UUK47G4BAZ"
36+
},
3537
"type": "distribution",
3638
"hardenedRuntime": true,
3739
"darkModeSupport": true,
@@ -53,9 +55,7 @@
5355
"Contents/Resources/app-x64.asar.unpacked/node_modules/sqlite3/build/Release/node_sqlite3.node",
5456
"Contents/Resources/app-arm64.asar.unpacked/node_modules/sqlite3/build/Release/node_sqlite3.node",
5557
"Contents/Resources/app-arm64.asar.unpacked/node_modules/keytar/build/Release/keytar.node",
56-
"Contents/Resources/app-x64.asar.unpacked/node_modules/keytar/build/Release/keytar.node",
57-
"Contents/Resources/app-arm64.asar.unpacked/node_modules/cpu-features/build/Release/cpufeatures.node",
58-
"Contents/Resources/app-x64.asar.unpacked/node_modules/cpu-features/build/Release/cpufeatures.node"
58+
"Contents/Resources/app-x64.asar.unpacked/node_modules/keytar/build/Release/keytar.node"
5959
],
6060
"artifactName": "Redis-Insight-${os}-${arch}-mas.${ext}"
6161
},
@@ -71,9 +71,7 @@
7171
"Contents/Resources/app-x64.asar.unpacked/node_modules/sqlite3/build/Release/node_sqlite3.node",
7272
"Contents/Resources/app-arm64.asar.unpacked/node_modules/sqlite3/build/Release/node_sqlite3.node",
7373
"Contents/Resources/app-arm64.asar.unpacked/node_modules/keytar/build/Release/keytar.node",
74-
"Contents/Resources/app-x64.asar.unpacked/node_modules/keytar/build/Release/keytar.node",
75-
"Contents/Resources/app-arm64.asar.unpacked/node_modules/cpu-features/build/Release/cpufeatures.node",
76-
"Contents/Resources/app-x64.asar.unpacked/node_modules/cpu-features/build/Release/cpufeatures.node"
74+
"Contents/Resources/app-x64.asar.unpacked/node_modules/keytar/build/Release/keytar.node"
7775
],
7876
"artifactName": "Redis-Insight-${os}-${arch}-masDev.${ext}"
7977
},

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@
8080
"resolutions": {
8181
"**/trim": "0.0.3",
8282
"word-wrap": "1.2.4",
83-
"electron-builder/app-builder-lib/@electron/universal/dir-compare/minimatch": "^3.0.5",
8483
"**/semver": "^7.5.2",
8584
"rawproto/protobufjs": "^7.2.5"
8685
},
@@ -140,9 +139,9 @@
140139
"css-minimizer-webpack-plugin": "^6.0.0",
141140
"csv-parser": "^3.0.0",
142141
"csv-stringify": "^6.4.0",
143-
"electron": "25.8.4",
144-
"electron-builder": "^23.6.0",
145-
"electron-builder-notarize": "^1.5.1",
142+
"electron": "31.0.2",
143+
"electron-builder": "^24.13.3",
144+
"electron-builder-notarize": "^1.5.2",
146145
"electron-debug": "^3.2.0",
147146
"electron-devtools-installer": "^3.2.0",
148147
"esbuild-plugin-react-virtualized": "^1.0.4",

redisinsight/api/config/default.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export default {
7676
tlsKey: process.env.RI_SERVER_TLS_KEY,
7777
staticContent: !!process.env.RI_SERVE_STATICS || true,
7878
buildType: process.env.RI_BUILD_TYPE || 'DOCKER_ON_PREMISE',
79-
appVersion: process.env.RI_APP_VERSION || '2.50.0',
79+
appVersion: process.env.RI_APP_VERSION || '2.52.0',
8080
requestTimeout: parseInt(process.env.RI_REQUEST_TIMEOUT, 10) || 25000,
8181
excludeRoutes: [],
8282
excludeAuthRoutes: [],

redisinsight/api/config/swagger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const SWAGGER_CONFIG: Omit<OpenAPIObject, 'paths'> = {
55
info: {
66
title: 'Redis Insight Backend API',
77
description: 'Redis Insight Backend API',
8-
version: '2.50.0',
8+
version: '2.52.0',
99
},
1010
tags: [],
1111
};

redisinsight/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "redisinsight-api",
3-
"version": "2.50.0",
3+
"version": "2.52.0",
44
"description": "Redis Insight API",
55
"private": true,
66
"author": {

0 commit comments

Comments
 (0)