mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 21:19:28 -06:00
64877baa82
* e2e: Trying to get end-2-end tests to run on PRs * Probably need quotes here * Change back to machine * CI: only build amd64 docker * lowercase docker image name * Fixed docker image name * added end-to-end-test * Fixed paths * Added setup_remote_docker * Updated * Minor tweak * update * Testing * UpdateD# * Making some progress * Update * Updated * update * Updated * Updated * testing * Updated * Updated * Updated * Updated * updated * Changed image * Updated image * updated * Addd logging * trying one more thing * Fixed build-fast-frontend * Updated * Added devenv to end-to-end server setup * removed file * Updated * Minor change * Fixes * Updated workspace, and tried to make naming and paths compatible with master & release jobs * fixed syntax issue * Updated truth * Fixed path
48 lines
957 B
Bash
Executable File
48 lines
957 B
Bash
Executable File
#!/bin/bash
|
|
|
|
. e2e/variables
|
|
|
|
./e2e/kill-server
|
|
|
|
mkdir $RUNDIR
|
|
|
|
echo -e "Copying grafana backend files to temp dir..."
|
|
|
|
if [ -f $PACKAGE_FILE ]; then
|
|
echo "Found package tar file, extracting..."
|
|
tar zxf $PACKAGE_FILE -C $RUNDIR
|
|
mv $RUNDIR/grafana-*/* $RUNDIR
|
|
else
|
|
echo "Copying local dev files"
|
|
|
|
cp -r ./bin $RUNDIR
|
|
cp -r ./public $RUNDIR
|
|
|
|
mkdir $RUNDIR/conf
|
|
mkdir $PROV_DIR
|
|
mkdir $PROV_DIR/datasources
|
|
mkdir $PROV_DIR/dashboards
|
|
|
|
cp ./conf/defaults.ini $RUNDIR/conf/defaults.ini
|
|
cp ./conf/sample.ini $RUNDIR/conf/custom.ini
|
|
fi
|
|
|
|
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/grafana-server \
|
|
--homepath=$RUNDIR \
|
|
--pidfile=$RUNDIR/pid \
|
|
cfg:server.http_port=$PORT \
|
|
cfg:app_mode=development
|
|
|
|
# 2>&1 > $RUNDIR/output.log &
|
|
# cfg:log.level=debug \
|
|
|