Skip to content

Commit c4bb694

Browse files
committed
Merge branch 'main' into timeseries-plugin
# Conflicts: # scripts/build-statics.cmd # scripts/build-statics.sh
2 parents 7d67428 + c2e5bd3 commit c4bb694

File tree

282 files changed

+12866
-2427
lines changed

Some content is hidden

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

282 files changed

+12866
-2427
lines changed

.circleci/config.yml

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,8 @@ jobs:
390390
name: Setup sign certificates
391391
command: |
392392
mkdir -p certs
393-
echo "$CSC_P12_HEX" | xxd -r -p > certs/cert.p12
394-
echo "$WIN_CSC_PFX_HEX" | xxd -r -p > certs/redislabs_win.pfx
393+
echo "$CSC_P12_BASE64" | base64 -id > certs/cert.p12
394+
echo "$WIN_CSC_PFX_BASE64" | base64 -id > certs/redislabs_win.pfx
395395
- persist_to_workspace:
396396
root: .
397397
paths:
@@ -455,6 +455,7 @@ jobs:
455455
- run:
456456
name: install dependencies
457457
command: |
458+
sudo apt-get update -y && sudo apt-get install -y rpm
458459
yarn --cwd redisinsight/api/ install
459460
yarn install
460461
yarn build:statics
@@ -477,6 +478,10 @@ jobs:
477478
condition:
478479
equal: [ true, << parameters.redisstack >> ]
479480
steps:
481+
- run:
482+
name: Repack AppImage to tar
483+
command: |
484+
ARCH=x86_64 ./.circleci/redisstack/app-image.repack.sh
480485
- run:
481486
name: Build sources
482487
command: ./.circleci/redisstack/build.sh
@@ -491,6 +496,7 @@ jobs:
491496
root: .
492497
paths:
493498
- release/RedisInsight*.deb
499+
- release/RedisInsight*.rpm
494500
- release/RedisInsight*.AppImage
495501
- release/*-linux.yml
496502
- release/redisstack
@@ -538,13 +544,20 @@ jobs:
538544
UPGRADES_LINK='' SEGMENT_WRITE_KEY='' yarn package:stage
539545
rm -rf release/mac
540546
no_output_timeout: 15m
547+
548+
- run:
549+
name: Repack dmg to tar
550+
command: |
551+
ARCH=x64 ./.circleci/redisstack/dmg.repack.sh
552+
ARCH=arm64 ./.circleci/redisstack/dmg.repack.sh
541553
- persist_to_workspace:
542554
root: .
543555
paths:
544556
- release/RedisInsight*.zip
545557
- release/RedisInsight*.dmg
546558
- release/RedisInsight*.dmg.blockmap
547559
- release/*-mac.yml
560+
- release/redisstack
548561
windows:
549562
executor:
550563
name: win/default
@@ -663,6 +676,19 @@ jobs:
663676
echo "APP VERSION $applicationVersion"
664677
ghr -t ${GH_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -prerelease -delete ${applicationVersion}
665678
679+
release-aws-test:
680+
executor: linux-executor
681+
steps:
682+
- checkout
683+
- attach_workspace:
684+
at: .
685+
- run:
686+
name: publish
687+
command: |
688+
rm release/._* ||:
689+
applicationVersion=$(jq -r '.version' redisinsight/package.json)
690+
aws s3 cp release/ s3://${AWS_BUCKET_NAME_TEST}/public/rs-ri-builds/${CIRCLE_BUILD_NUM} --recursive --exclude "*.json"
691+
666692
release-aws-private:
667693
executor: linux-executor
668694
steps:
@@ -879,6 +905,13 @@ workflows:
879905
- Build app - MacOS (dev)
880906
- Build app - Windows (dev)
881907

908+
- release-aws-test:
909+
name: Release AWS test
910+
requires:
911+
- Build app - Linux (dev)
912+
- Build app - MacOS (dev)
913+
- Build app - Windows (dev)
914+
882915
# build and release electron app (stage)
883916
- setup-sign-certificates:
884917
name: Setup sign certificates (stage)
@@ -905,6 +938,14 @@ workflows:
905938
name: Build app - Windows (stage)
906939
requires: *stageElectronBuildRequires
907940
<<: *stageFilter
941+
942+
- release-aws-test:
943+
name: Release AWS test
944+
requires:
945+
- Build app - Linux (stage)
946+
- Build app - MacOS (stage)
947+
- Build app - Windows (stage)
948+
908949
# Needs approval from QA team that build was tested before merging to latest
909950
- qa-approve:
910951
name: Approved by QA team
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
3+
ARCH=${ARCH:-x86_64}
4+
WORKING_DIRECTORY=$(pwd)
5+
SOURCE_APP=${SOURCE_APP:-"RedisInsight-v2-linux-$ARCH.AppImage"}
6+
APP_FOLDER_NAME="RedisInsight-v2-linux"
7+
TAR_NAME="RedisInsight-v2-app-linux.$ARCH.tar.gz"
8+
TMP_FOLDER="/tmp/RedisInsight-app-$ARCH"
9+
10+
rm -rf "$TMP_FOLDER"
11+
12+
mkdir -p "$WORKING_DIRECTORY/release/redisstack"
13+
mkdir -p "$TMP_FOLDER"
14+
15+
cp "./release/$SOURCE_APP" "$TMP_FOLDER"
16+
cd "$TMP_FOLDER" || exit 1
17+
18+
./"$SOURCE_APP" --appimage-extract
19+
mv squashfs-root "$APP_FOLDER_NAME"
20+
21+
tar -czvf "$TAR_NAME" "$APP_FOLDER_NAME"
22+
23+
cp "$TAR_NAME" "$WORKING_DIRECTORY/release/redisstack/"
24+
cd "$WORKING_DIRECTORY" || exit 1

.circleci/redisstack/build_modules.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
PLATFORM=${PLATFORM:-'linux'}
44
ELECTRON_VERSION=$(cat electron/version)
5-
VERSION=${ELECTRON_VERSION:-'redisstack'}
65
ARCH=${ARCH:-'x64'}
7-
FILENAME="RedisInsight-$PLATFORM.$VERSION.$ARCH.zip"
6+
#FILENAME="RedisInsight-$PLATFORM.$VERSION.$ARCH.zip"
7+
FILENAME="RedisInsight-v2-web-$PLATFORM.$ARCH.tar.gz"
88

99
# reinstall backend prod dependencies only (optimise space)
1010
rm -rf redisinsight/api/node_modules
@@ -13,19 +13,21 @@ npm_config_arch="$ARCH" \
1313
npm_config_target_arch="$ARCH" \
1414
npm_config_platform="$PLATFORM" \
1515
npm_config_target_platform="$PLATFORM" \
16-
npm_config_keytar_binary_host_mirror="$KEYTAR_MIRROR" \
17-
npm_config_node_sqlite3_binary_host_mirror="$SQLITE_MIRROR" \
1816
yarn --cwd ./redisinsight/api install --production
1917

2018
cp redisinsight/api/.yarnclean.prod redisinsight/api/.yarnclean
2119
yarn --cwd ./redisinsight/api autoclean --force
2220

2321
rm -rf redisinsight/build.zip
24-
cd redisinsight && zip -r build.zip \
22+
23+
cp LICENSE ./redisinsight
24+
25+
cd redisinsight && tar -czvf build.tar.gz \
2526
api/node_modules \
2627
api/dist \
2728
ui/dist \
29+
LICENSE \
2830
&& cd ..
2931

3032
mkdir -p release/redisstack
31-
cp redisinsight/build.zip release/redisstack/"$FILENAME"
33+
cp redisinsight/build.tar.gz release/redisstack/"$FILENAME"

.circleci/redisstack/dmg.repack.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
3+
ARCH=${ARCH:-x64}
4+
WORKING_DIRECTORY=$(pwd)
5+
TAR_NAME="RedisInsight-v2-app-darwin.$ARCH.tar.gz"
6+
APP_FOLDER_NAME="RedisInsight-v2.app"
7+
TMP_FOLDER="/tmp/$APP_FOLDER_NAME"
8+
9+
rm -rf "$TMP_FOLDER"
10+
11+
mkdir -p "$WORKING_DIRECTORY/release/redisstack"
12+
mkdir -p "$TMP_FOLDER"
13+
14+
hdiutil attach "./release/RedisInsight-v2-mac-$ARCH.dmg"
15+
cp -a /Volumes/RedisInsight-*/RedisInsight-v2.app "/tmp"
16+
cd "/tmp" || exit 1
17+
tar -czvf "$TAR_NAME" "$APP_FOLDER_NAME"
18+
cp "$TAR_NAME" "$WORKING_DIRECTORY/release/redisstack/"
19+
cd "$WORKING_DIRECTORY" || exit 1
20+
hdiutil unmount /Volumes/RedisInsight-*/

.github/redisinsight_browser.png

463 KB
Loading

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ RUN set -ex \
5050
&& chown avahi:avahi /var/run/avahi-daemon \
5151
&& chmod 777 /var/run/avahi-daemon
5252

53+
RUN apt-get install net-tools
5354
RUN apt-get install -y dbus-x11 gnome-keyring libsecret-1-0
5455
RUN dbus-uuidgen > /var/lib/dbus/machine-id
5556

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ RedisInsight is an intuitive and efficient GUI for Redis, allowing you to intera
2323
* Browse, filter and visualise your key-value Redis data structures
2424
* CRUD support for Lists, Hashes, Strings, Sets, Sorted Sets
2525
* CRUD support for [RedisJSON](https://oss.redis.com/redisjson/)
26+
* Profiler - analyze every command sent to Redis in real-time
2627
* Introducing Workbench - advanced command line interface with intelligent command auto-complete and complex data visualizations
2728
* Command auto-complete support for [RediSearch](https://oss.redis.com/redisearch/), [RedisJSON](https://oss.redis.com/redisjson/), [RedisGraph](https://oss.redis.com/redisgraph/), [RedisTimeSeries](https://oss.redis.com/redistimeseries/), [RedisAI](https://oss.redis.com/redisai/)
2829
* Visualizations of your [RediSearch](https://oss.redis.com/redisearch/) index, queries, and aggregations

babel.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ module.exports = (api) => {
4848
require('@babel/plugin-syntax-import-meta'),
4949
[require('@babel/plugin-proposal-class-properties'), { loose: true }],
5050
require('@babel/plugin-proposal-json-strings'),
51+
[require('@babel/plugin-proposal-private-property-in-object'), { loose: true }],
52+
[require('@babel/plugin-proposal-private-methods'), { loose: true }],
5153

5254
...(development ? developmentPlugins : productionPlugins),
5355
],

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ export default merge(baseConfig, {
135135
loader: 'file-loader',
136136
options: {
137137
name: '[hash]-[name].[ext]',
138-
outputPath: 'static',
139-
publicPath: 'static',
138+
outputPath: 'fonts',
139+
publicPath: 'fonts',
140140
},
141141
},
142142
],
@@ -150,8 +150,8 @@ export default merge(baseConfig, {
150150
loader: 'file-loader',
151151
options: {
152152
name: '[hash]-[name].[ext]',
153-
outputPath: 'static',
154-
publicPath: 'static',
153+
outputPath: 'fonts',
154+
publicPath: 'fonts',
155155
},
156156
},
157157
],
@@ -169,8 +169,8 @@ export default merge(baseConfig, {
169169
loader: 'file-loader',
170170
options: {
171171
name: '[hash]-[name].[ext]',
172-
outputPath: 'static',
173-
publicPath: 'static',
172+
outputPath: 'fonts',
173+
publicPath: 'fonts',
174174
},
175175
},
176176
],
@@ -209,6 +209,7 @@ export default merge(baseConfig, {
209209
BASE_API_URL: 'http://localhost',
210210
RESOURCES_BASE_URL: 'http://localhost',
211211
SCAN_COUNT_DEFAULT: '500',
212+
SCAN_TREE_COUNT_DEFAULT: '10000',
212213
BUILD_TYPE: 'ELECTRON',
213214
APP_VERSION: version,
214215
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
@@ -51,6 +51,7 @@ export default merge(baseConfig, {
5151
BASE_API_URL: 'http://localhost',
5252
RESOURCES_BASE_URL: 'http://localhost',
5353
SCAN_COUNT_DEFAULT: '500',
54+
SCAN_TREE_COUNT_DEFAULT: '10000',
5455
SEGMENT_WRITE_KEY:
5556
'SEGMENT_WRITE_KEY' in process.env ? process.env.SEGMENT_WRITE_KEY : 'SOURCE_WRITE_KEY',
5657
}),

0 commit comments

Comments
 (0)