File tree Expand file tree Collapse file tree 5 files changed +69
-3
lines changed
Expand file tree Collapse file tree 5 files changed +69
-3
lines changed Original file line number Diff line number Diff line change @@ -24,3 +24,5 @@ LD_LIBRARY_PATH="" LD_PRELOAD="" apt-get install -y --no-install-recommends \
2424 ark \
2525 neovim \
2626 muon
27+ # Fix tmp permissions. Needed?
28+ chmod 1777 /tmp
Original file line number Diff line number Diff line change 2727if [ $INSTALL_ONLY = 0 ] ; then
2828 echo " Starting nteract..."
2929 echo " nteract is a GUI application. Make sure to run this script only within the VNC Desktop."
30- nteract
30+ nteract --no-sandbox
3131 sleep 10
3232fi
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ # Stops script execution if a command has an error
4+ set -e
5+
6+ INSTALL_ONLY=0
7+ # Loop through arguments and process them: https://pretzelhands.com/posts/command-line-flags
8+ for arg in " $@ " ; do
9+ case $arg in
10+ -i|--install) INSTALL_ONLY=1 ; shift ;;
11+ * ) break ;;
12+ esac
13+ done
14+
15+ if ! hash omnidb-server 2> /dev/null; then
16+ echo " Installing OmniDB"
17+ cd $RESOURCES_PATH
18+ wget https://github.com/OmniDB/OmniDB/releases/download/3.0.2b/omnidb-server_3.0.2b_linux_x86_64.deb -O ./omnidb-server.deb
19+ apt-get update
20+ apt-get install -y ./omnidb-server.deb
21+ rm ./omnidb-server.deb
22+ fi
23+
24+ # Run
25+ if [ $INSTALL_ONLY = 0 ] ; then
26+ if [ -z " $PORT " ]; then
27+ read -p " Please provide a port for starting OmniDB: " PORT
28+ fi
29+
30+ echo " Starting OmniDB on port " $PORT
31+ # TODO: the normal tooling proxy does not work here since the traffic is not redirected the the configured base path
32+ # https://omnidb.readthedocs.io/en/latest/en/05_deploying_omnidb-server.html
33+ # use --path /tools/8000 to configure a base path
34+ omnidb-server --port=$PORT
35+ fi
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ # Stops script execution if a command has an error
4+ set -e
5+
6+ INSTALL_ONLY=0
7+ # Loop through arguments and process them: https://pretzelhands.com/posts/command-line-flags
8+ for arg in " $@ " ; do
9+ case $arg in
10+ -i|--install) INSTALL_ONLY=1 ; shift ;;
11+ * ) break ;;
12+ esac
13+ done
14+
15+ if ! hash pgadmin4 2> /dev/null; then
16+ echo " Installing pgAdmin4"
17+ pipx install pgadmin4
18+ fi
19+
20+ # Run
21+ if [ $INSTALL_ONLY = 0 ] ; then
22+ if [ -z " $PORT " ]; then
23+ read -p " Please provide a port for starting pgAdmin4: " PORT
24+ fi
25+
26+ echo " Starting pgAdmin4 on port " $PORT
27+ # TODO: Currently does not use port, can only be used from within VNC
28+ pgadmin4
29+ fi
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ for arg in "$@"; do
1313done
1414
1515if ! hash sqlectron 2> /dev/null; then
16- cd /resources
16+ cd $RESOURCES_PATH
1717 echo " Installing Sqlectron Term. Please wait..."
1818 npm install -g sqlectron-term
1919 echo " Installing Sqlectron GUI"
2727if [ $INSTALL_ONLY = 0 ] ; then
2828 echo " Starting Sqlectron..."
2929 echo " Sqlectron is a GUI application. Make sure to run this script only within the VNC Desktop."
30- sqlectron
30+ sqlectron --no-sandbox
3131 sleep 10
3232fi
You can’t perform that action at this time.
0 commit comments