Skip to content

Commit 8406856

Browse files
Merge pull request #962 from RedisInsight/release/2.6.0
Release/2.6.0
2 parents eb6e628 + 29149d8 commit 8406856

File tree

429 files changed

+20198
-11076
lines changed

Some content is hidden

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

429 files changed

+20198
-11076
lines changed

.circleci/config.yml

Lines changed: 17 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ aliases:
122122

123123
orbs:
124124
win: circleci/[email protected]
125-
node: circleci/node@4.4.0
125+
node: circleci/node@5.0.2
126126
aws: circleci/[email protected]
127127

128128
executors:
@@ -134,7 +134,7 @@ jobs:
134134
# Test jobs
135135
unit-tests-ui:
136136
docker:
137-
- image: circleci/node:15.14.0
137+
- image: cimg/node:16.15.1
138138
steps:
139139
- checkout
140140
- restore_cache:
@@ -178,7 +178,7 @@ jobs:
178178
- ./node_modules
179179
unit-tests-api:
180180
docker:
181-
- image: circleci/node:15.14.0
181+
- image: cimg/node:16.15.1
182182
steps:
183183
- checkout
184184
- restore_cache:
@@ -333,7 +333,7 @@ jobs:
333333
- checkout
334334
- attach_workspace:
335335
at: .
336-
- run: choco install nodejs --version=15.14.0
336+
- run: choco install nodejs --version=16.15.1
337337
- run:
338338
command: |
339339
cd tests/e2e && export TEST_FILES=$(circleci tests glob "tests/**/*.e2e.ts" | circleci tests split) && cd ../..
@@ -436,12 +436,12 @@ jobs:
436436
setup-build:
437437
parameters:
438438
env:
439-
description: Build environemtnt (stage || prod)
439+
description: Build environment (stage || prod)
440440
type: enum
441441
default: stage
442442
enum: [ 'dev', 'stage', 'prod' ]
443443
docker:
444-
- image: cibuilds/github:0.13
444+
- image: cibuilds/docker:19.03.5
445445
steps:
446446
- checkout
447447
- run:
@@ -483,7 +483,7 @@ jobs:
483483
steps:
484484
- checkout
485485
- node/install:
486-
node-version: '14.17'
486+
node-version: '16.15.1'
487487
- attach_workspace:
488488
at: .
489489
- run:
@@ -549,7 +549,7 @@ jobs:
549549
steps:
550550
- checkout
551551
- node/install:
552-
node-version: '15.14.0'
552+
node-version: '16.15.1'
553553
- attach_workspace:
554554
at: .
555555
- run:
@@ -614,7 +614,7 @@ jobs:
614614
- run:
615615
name: Build windows exe
616616
command: |
617-
choco install nodejs --version=15.14.0
617+
choco install nodejs --version=16.15.1
618618
# set ALL_REDIS_COMMANDS=$(curl $ALL_REDIS_COMMANDS_RAW_URL)
619619
yarn install
620620
yarn --cwd redisinsight/api/ install
@@ -686,32 +686,6 @@ jobs:
686686
- store_artifacts:
687687
path: release
688688
destination: release
689-
release-github:
690-
parameters:
691-
env:
692-
description: Release environment (stage || prod)
693-
type: enum
694-
default: stage
695-
enum: [ 'stage', 'prod' ]
696-
docker:
697-
- image: cibuilds/github:0.13
698-
steps:
699-
- checkout
700-
- attach_workspace:
701-
at: .
702-
- store_artifacts:
703-
path: release
704-
destination: release
705-
- run:
706-
name: prepare release
707-
command: |
708-
rm release/._* ||:
709-
- run:
710-
name: publish to prerelease Github
711-
command: |
712-
applicationVersion=$(jq -r '.version' electron/package.json)
713-
echo "APP VERSION $applicationVersion"
714-
ghr -n ${applicationVersion} -t ${GH_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -prerelease -delete ${applicationVersion}
715689

716690
release-aws-test:
717691
executor: linux-executor
@@ -1069,7 +1043,7 @@ workflows:
10691043
requires:
10701044
- Build app - Windows (prod)
10711045

1072-
# upload release to AWS and GitHub
1046+
# upload release to AWS
10731047
- release-aws-private:
10741048
name: Release AWS S3 Private (prod)
10751049
requires:
@@ -1079,23 +1053,12 @@ workflows:
10791053
- Virus check arm64 - dmg (prod)
10801054
- Virus check - exe (prod)
10811055

1082-
- release-github:
1083-
name: Release Github (prod)
1084-
env: prod
1085-
requires:
1086-
- Virus check - AppImage (prod)
1087-
- Virus check - deb (prod)
1088-
- Virus check x64 - dmg (prod)
1089-
- Virus check arm64 - dmg (prod)
1090-
- Virus check - exe (prod)
1091-
10921056
# Manual approve for publish release
10931057
- approve-publish:
10941058
name: Approve Publish Release (prod)
10951059
type: approval
10961060
requires:
10971061
- Release AWS S3 Private (prod)
1098-
- Release Github (prod)
10991062
<<: *prodFilter # double check for "latest"
11001063

11011064
# Publish release
@@ -1159,10 +1122,10 @@ workflows:
11591122
report: true
11601123
requires:
11611124
- Build app - Linux (stage)
1162-
# e2e desktop tests on exe build
1163-
- e2e-exe:
1164-
name: E2ETest (exe) - Nightly
1165-
parallelism: 4
1166-
report: true
1167-
requires:
1168-
- Build app - Windows (stage)
1125+
# # e2e desktop tests on exe build
1126+
# - e2e-exe:
1127+
# name: E2ETest (exe) - Nightly
1128+
# parallelism: 4
1129+
# report: true
1130+
# requires:
1131+
# - Build app - Windows (stage)

.dockerignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
coverage
77
dll
8-
node_modules
8+
**/node_modules
99
release
1010

1111
redisinsight/dist

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ tests/e2e
66
logs
77
*.log
88

9+
# Tests coverage results
10+
redisinsight/api/test/test-runs/coverage
11+
912
# Runtime data
1013
pids
1114
*.pid

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
FROM node:14.17-alpine as front
1+
FROM node:16.15.1-alpine as front
22
RUN apk update
33
RUN apk add --no-cache --virtual .gyp \
4-
python \
4+
python3 \
55
make \
66
g++
77
WORKDIR /usr/src/app
88
COPY package.json yarn.lock babel.config.js tsconfig.json ./
9+
RUN SKIP_POSTINSTALL=1 yarn install
910
COPY configs ./configs
1011
COPY scripts ./scripts
1112
COPY redisinsight ./redisinsight
12-
RUN SKIP_POSTINSTALL=1 yarn install
1313
RUN yarn --cwd redisinsight/api
1414
ARG SERVER_TLS_CERT
1515
ARG SERVER_TLS_KEY
@@ -18,7 +18,7 @@ ENV SERVER_TLS_KEY=${SERVER_TLS_KEY}
1818
RUN yarn build:web
1919
RUN yarn build:statics
2020

21-
FROM node:14.17-alpine as back
21+
FROM node:16.15.1-alpine as back
2222
WORKDIR /usr/src/app
2323
COPY redisinsight/api/package.json redisinsight/api/yarn.lock ./
2424
RUN yarn install
@@ -27,7 +27,7 @@ COPY --from=front /usr/src/app/redisinsight/api/static ./static
2727
COPY --from=front /usr/src/app/redisinsight/api/defaults ./defaults
2828
RUN yarn run build:prod
2929

30-
FROM node:14.17-slim
30+
FROM node:16.15.1-slim
3131
# Set up mDNS functionality, to play well with Redis Enterprise
3232
# clusters on the network.
3333
RUN set -ex \

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Query, analyse and interact with your Redis data. [Download it here](https://red
1212

1313
![RedisInsight Browser screenshot](/.github/redisinsight_browser.png)
1414

15-
Built with love using [Electron](https://www.electronjs.org/), [Elastic UI](https://elastic.github.io/eui/#/), [Monaco Editor](https://microsoft.github.io/monaco-editor/) and NodeJS.
15+
Built with love using [Electron](https://www.electronjs.org/), [Monaco Editor](https://microsoft.github.io/monaco-editor/) and NodeJS.
1616

1717
## Overview
1818

api.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:14.17-alpine as build
1+
FROM node:16.15.1-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:14.17-alpine as production
22+
FROM node:16.15.1-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

configs/webpack.config.renderer.dev.babel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ export default merge(baseConfig, {
210210
RESOURCES_BASE_URL: 'http://localhost',
211211
SCAN_COUNT_DEFAULT: '500',
212212
SCAN_TREE_COUNT_DEFAULT: '10000',
213+
PIPELINE_COUNT_DEFAULT: '5',
213214
BUILD_TYPE: 'ELECTRON',
214215
APP_VERSION: version,
215216
SEGMENT_WRITE_KEY:

configs/webpack.config.renderer.dev.dll.babel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export default merge(baseConfig, {
5252
RESOURCES_BASE_URL: 'http://localhost',
5353
SCAN_COUNT_DEFAULT: '500',
5454
SCAN_TREE_COUNT_DEFAULT: '10000',
55+
PIPELINE_COUNT_DEFAULT: '5',
5556
SEGMENT_WRITE_KEY:
5657
'SEGMENT_WRITE_KEY' in process.env ? process.env.SEGMENT_WRITE_KEY : 'SOURCE_WRITE_KEY',
5758
}),

configs/webpack.config.renderer.prod.babel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ export default merge(baseConfig, {
198198
APP_ENV: 'electron',
199199
SCAN_COUNT_DEFAULT: '500',
200200
SCAN_TREE_COUNT_DEFAULT: '10000',
201+
PIPELINE_COUNT_DEFAULT: '5',
201202
SEGMENT_WRITE_KEY:
202203
'SEGMENT_WRITE_KEY' in process.env ? process.env.SEGMENT_WRITE_KEY : 'SOURCE_WRITE_KEY',
203204
}),

configs/webpack.config.web.dev.babel.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@
77

88
import webpack from 'webpack';
99
import { merge } from 'webpack-merge';
10+
import ip from 'ip';
1011
import commonConfig from './webpack.config.web.common.babel';
1112

1213
function employCache(loaders) {
1314
return ['cache-loader'].concat(loaders);
1415
}
1516

17+
const HOST = process.env.PUBLIC_DEV ? ip.address(): 'localhost'
18+
1619
export default merge(commonConfig, {
1720
target: 'web',
1821

@@ -22,7 +25,7 @@ export default merge(commonConfig, {
2225

2326
entry: [
2427
'regenerator-runtime/runtime',
25-
'webpack-dev-server/client?http://localhost:8080',
28+
`webpack-dev-server/client?http://${HOST}:8080`,
2629
'webpack/hot/only-dev-server',
2730
require.resolve('../redisinsight/ui/index.tsx'),
2831
],
@@ -156,6 +159,8 @@ export default merge(commonConfig, {
156159
},
157160

158161
devServer: {
162+
host: HOST,
163+
disableHostCheck: true,
159164
port: 8080,
160165
hot: true, // enable HMR on the server
161166
historyApiFallback: true,
@@ -184,8 +189,9 @@ export default merge(commonConfig, {
184189
APP_ENV: 'web',
185190
API_PREFIX: 'api',
186191
API_PORT: '5000',
187-
BASE_API_URL: `http://${require('os').hostname()}`,
188-
RESOURCES_BASE_URL: `http://${require('os').hostname()}`,
192+
BASE_API_URL: `http://${HOST}`,
193+
RESOURCES_BASE_URL: `http://${HOST}`,
194+
PIPELINE_COUNT_DEFAULT: '5',
189195
SCAN_COUNT_DEFAULT: '500',
190196
SCAN_TREE_COUNT_DEFAULT: '10000',
191197
SEGMENT_WRITE_KEY:

0 commit comments

Comments
 (0)