Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

https://github.com/dbeaver/cloudbeaver/wiki/Build-and-deploy

Waiting for other methods (such as docker!) but for now, build as so:

PWD=/opt/cloudbeaver/
mkdir -p $PWD
cd $PWD
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt update
sudo apt install -y openjdk-11-jdk
sudo apt install -y maven
sudo apt install -y cmdtest
sudo apt install -y nodejs
sudo apt install -y yarn
sudo npm install -y -g lerna
git clone https://github.com/dbeaver/cloudbeaver.git
cd cloudbeaver/deploy
./build.sh
cd cloudbeaver
./run-server.sh
http://localhost:8978

Changes?:

/opt/cloudbeaver/cloudbeaver/deploy/cloudbeaver/conf/cloudbeaver.conf

SystemD "integration":

cat << 'EOF' >/opt/cloudbeaver/cb_start.sh
#!/bin/bash

cd /opt/cloudbeaver/cloudbeaver/deploy/cloudbeaver/ 
./run-server.sh
EOF
chmod +x /opt/cloudbeaver/cb_start.sh
cat << 'EOF' >/opt/cloudbeaver/cb_stop.sh
#!/bin/bash

PID="$(ps aux | grep cloudbeaver | awk '{print $2}' | head -1))"
kill $PID
EOF
chmod +x /opt/cloudbeaver/cb_stop.sh
cat << 'EOL' >/lib/systemd/system/cloudbeaver.service
[Unit]
Description=Cloud Beaver
Requires=network-online.target

[Service]
Restart=on-abnormal
ExecStart=/opt/cloudbeaver/cb_start.sh
ExecStop=/opt/cloudbeaver/cb_stop.sh

[Install]
WantedBy=multi-user.target
EOL
systemctl enable cloudbeaver
systemctl start cloudbeaver
systemctl status cloudbeaver
  • No labels