mirror of
https://github.com/grafana/grafana.git
synced 2024-12-02 13:39:19 -06:00
9a25a03e49
* Add e2e boilerplate for enterprise tests * Remove enterprise symlink file * Add tsconfig to e2e extensions folder and gitignore * Update run-suite to use extensions folder * Remove unnecessary tsconfig file * Update e2e enterprise paths on gitignore * Copy symlinked e2e enterprise files on run-suite * Add cleanup command to run-suite * Improve cleanup and setup for enterprise e2e tests * Update e2e path for enterprise tests on gitignore * Support to run different e2e tests for each license
57 lines
1.2 KiB
Bash
Executable File
57 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
set -eo pipefail
|
|
|
|
. scripts/grafana-server/variables
|
|
|
|
PORT=${PORT:-$DEFAULT_PORT}
|
|
ARCH=${ARCH:-$DEFAULT_ARCH}
|
|
|
|
if [ "$ARCH" ]; then
|
|
ARCH+="/"
|
|
fi
|
|
|
|
./scripts/grafana-server/kill-server
|
|
|
|
mkdir $RUNDIR
|
|
|
|
echo -e "Copying grafana backend files to temp dir..."
|
|
|
|
if [[ ! -f bin/"$ARCH"grafana-server ]]; then
|
|
echo "bin/linux-amd64/grafana-server missing, trying local grafana-server binary"
|
|
fi
|
|
|
|
echo starting server
|
|
|
|
cp -r ./bin $RUNDIR
|
|
cp -r ./public $RUNDIR
|
|
cp -r ./tools $RUNDIR
|
|
|
|
mkdir $RUNDIR/conf
|
|
mkdir $PROV_DIR
|
|
mkdir $PROV_DIR/datasources
|
|
mkdir $PROV_DIR/dashboards
|
|
|
|
cp ./scripts/grafana-server/custom.ini $RUNDIR/conf/custom.ini
|
|
cp ./conf/defaults.ini $RUNDIR/conf/defaults.ini
|
|
|
|
echo -e "Copy provisioning setup from devenv"
|
|
|
|
cp devenv/datasources.yaml $PROV_DIR/datasources
|
|
cp devenv/dashboards.yaml $PROV_DIR/dashboards
|
|
|
|
cp -r devenv $RUNDIR
|
|
|
|
echo -e "Starting Grafana Server port $PORT"
|
|
|
|
$RUNDIR/bin/"$ARCH"grafana-server \
|
|
--homepath=$HOME_PATH \
|
|
--pidfile=$RUNDIR/pid \
|
|
cfg:server.http_port=$PORT \
|
|
cfg:server.router_logging=1 \
|
|
cfg:app_mode=development \
|
|
cfg:enterprise.license_path=$1
|
|
|
|
# 2>&1 > $RUNDIR/output.log &
|
|
# cfg:log.level=debug \
|
|
|