-
Notifications
You must be signed in to change notification settings - Fork 396
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'devel' into chore/CB-4306-update-deps
- Loading branch information
Showing
137 changed files
with
1,105 additions
and
1,275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#!/bin/bash | ||
set -Eeo pipefail | ||
|
||
# #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 | ||
rm -rf ./cloudbeaver | ||
mkdir ./cloudbeaver | ||
mkdir ./cloudbeaver/server | ||
mkdir ./cloudbeaver/conf | ||
mkdir ./cloudbeaver/workspace | ||
mkdir ./cloudbeaver/web | ||
|
||
echo "Pull cloudbeaver platform" | ||
|
||
cd ../.. | ||
|
||
echo "Pull dbeaver platform" | ||
[ ! -d dbeaver ] && git clone https://github.com/dbeaver/dbeaver.git | ||
|
||
cd cloudbeaver/deploy | ||
|
||
echo "Build CloudBeaver server" | ||
|
||
cd ../server/product/aggregate | ||
mvn clean verify -U -Dheadless-platform | ||
if [[ "$?" -ne 0 ]] ; then | ||
echo 'Could not perform package'; exit $rc | ||
fi | ||
cd ../../../deploy | ||
|
||
echo "Copy server packages" | ||
|
||
cp -rp ../server/product/web-server/target/products/io.cloudbeaver.product/all/all/all/* ./cloudbeaver/server | ||
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/ | ||
mv drivers cloudbeaver | ||
|
||
echo "End of backend build" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
set -Eeuo pipefail | ||
|
||
echo "Build static content" | ||
|
||
cd ../../cloudbeaver/webapp | ||
|
||
yarn | ||
yarn lerna run bootstrap | ||
yarn lerna run bundle --no-bail --stream --scope=@cloudbeaver/product-default #-- -- --env source-map | ||
if [[ "$?" -ne 0 ]] ; then | ||
echo 'Application build failed'; exit $rc | ||
fi | ||
|
||
cd ../deploy | ||
|
||
echo "Copy static content" | ||
|
||
cp -rp ../webapp/packages/product-default/lib/* cloudbeaver/web | ||
|
||
echo "Cloudbeaver is ready. Run run-server.bat in cloudbeaver folder to start the server." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
./build.sh '../config/sample-databases/SQLiteConfiguration' '../config/sample-databases/db' | ||
#!/bin/bash | ||
set -Eeuo pipefail | ||
|
||
#command line arguments | ||
CONFIGURATION_PATH='../config/sample-databases/SQLiteConfiguration' | ||
SAMPLE_DATABASE_PATH='../config/sample-databases/db' | ||
|
||
source build-backend.sh | ||
source build-frontend.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 0 additions & 46 deletions
46
...er/bundles/io.cloudbeaver.server/src/io/cloudbeaver/server/WebPlatformAdapterFactory.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.