Skip to content

Commit

Permalink
CB-5589. Remove script and sqllite database config (#2919)
Browse files Browse the repository at this point in the history
* CB-5589. Remove script and sqllite database config

* CB-5589. Remove script and sqllite database config

* CB-5589 remove sample database

---------

Co-authored-by: mr-anton-t <[email protected]>
Co-authored-by: Aleksandr Skoblikov <[email protected]>
Co-authored-by: Evgenia Bezborodova <[email protected]>
  • Loading branch information
4 people authored Sep 30, 2024
1 parent eb33e0e commit a42c7dc
Show file tree
Hide file tree
Showing 14 changed files with 3 additions and 195 deletions.
File renamed without changes.
3 changes: 0 additions & 3 deletions config/sample-databases/README.md

This file was deleted.

This file was deleted.

This file was deleted.

99 changes: 0 additions & 99 deletions config/sample-databases/SQLiteConfiguration/cloudbeaver.conf

This file was deleted.

Binary file removed config/sample-databases/db/Chinook.sqlitedb
Binary file not shown.
6 changes: 0 additions & 6 deletions config/sample-databases/db/README

This file was deleted.

20 changes: 1 addition & 19 deletions deploy/build-backend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
set -Eeo pipefail
set +u

# #command line arguments
# CONFIGURATION_PATH=${1-"../config/sample-databases/DefaultConfiguration"}
# SAMPLE_DATABASE_PATH=${2-""}

# echo $CONFIGURATION_PATH
# echo $SAMPLE_DATABASE_PATH
echo "Clone and build Cloudbeaver"

rm -rf ./drivers
Expand Down Expand Up @@ -43,20 +37,8 @@ cp -rp ../server/product/web-server/target/products/io.cloudbeaver.product/all/a
cp -p ./scripts/* ./cloudbeaver
mkdir cloudbeaver/samples

if [[ -z $SAMPLE_DATABASE_PATH ]]; then
SAMPLE_DATABASE_PATH=""
else
mkdir cloudbeaver/samples/db
cp -rp "${SAMPLE_DATABASE_PATH}" cloudbeaver/samples/
fi

if [[ -z "$CONFIGURATION_PATH" ]]; then
CONFIGURATION_PATH="../config/sample-databases/DefaultConfiguration"
fi

cp -rp ../config/core/* cloudbeaver/conf
cp -rp "${CONFIGURATION_PATH}"/GlobalConfiguration/.dbeaver/data-sources.json cloudbeaver/conf/initial-data-sources.conf
cp -p "${CONFIGURATION_PATH}"/*.conf cloudbeaver/conf/
cp -rp ../config/GlobalConfiguration/.dbeaver/data-sources.json cloudbeaver/conf/initial-data-sources.conf
mv drivers cloudbeaver

echo "End of backend build"
1 change: 0 additions & 1 deletion deploy/build-sqlite.bat

This file was deleted.

9 changes: 0 additions & 9 deletions deploy/build-sqlite.sh

This file was deleted.

13 changes: 2 additions & 11 deletions deploy/build.bat
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
@echo off

rem command line arguments
SET CONFIGURATION_PATH=%1
SET SAMPLE_DATABASE_PATH=%2

IF "%CONFIGURATION_PATH%"=="" SET CONFIGURATION_PATH="..\config\sample-databases\DefaultConfiguration"
echo "Configuration path=%CONFIGURATION_PATH%"

echo Clone and build Cloudbeaver

Expand Down Expand Up @@ -40,13 +35,9 @@ xcopy /E /Q ..\server\product\web-server\target\products\io.cloudbeaver.product\
copy scripts\* cloudbeaver >NUL
mkdir cloudbeaver\samples

IF NOT "%SAMPLE_DATABASE_PATH%"=="" (
mkdir cloudbeaver\samples\db
xcopy /E /Q %SAMPLE_DATABASE_PATH% cloudbeaver\samples\db >NUL
)

copy ..\config\core\* cloudbeaver\conf >NUL
copy %CONFIGURATION_PATH%\GlobalConfiguration\.dbeaver\data-sources.json cloudbeaver\conf\initial-data-sources.conf >NUL
copy %CONFIGURATION_PATH%\*.conf cloudbeaver\conf >NUL
copy ..\config\DefaultConfiguration\GlobalConfiguration\.dbeaver\data-sources.json cloudbeaver\conf\initial-data-sources.conf >NUL

move drivers cloudbeaver >NUL

Expand Down
4 changes: 0 additions & 4 deletions deploy/build.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#!/bin/bash
set -Eeuo pipefail

#command line arguments
CONFIGURATION_PATH="../config/sample-databases/DefaultConfiguration"
SAMPLE_DATABASE_PATH=""

source build-backend.sh
source build-frontend.sh

0 comments on commit a42c7dc

Please sign in to comment.