mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 06:32:21 +08:00

* wip * docker compose dev setup * commit new tilt stuff * move files into own dir * reset files back to main * use just one nginx container for both gateway and cdn * update proxy service name * make it all work when in subdir * rename more things * reset more changes * fix config * add makefile command, fix ws upgrade * add local check script * tidy * tidy up, comments, readyme * codeowners * change cdn host to localhost to avoid adding host.docker.internal to /etc/hosts * route POST /login to backend * Build nginx container with config baked in so it can be live_update-ed * fix headers
27 lines
668 B
Bash
Executable File
27 lines
668 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Used to check if the local dev environment is set up correctly
|
|
|
|
IS_OKAY=true
|
|
|
|
if ! docker ps &> /dev/null; then
|
|
echo "Error: docker is not installed or running"
|
|
echo "See https://docs.docker.com/get-docker/ for installation instructions"
|
|
echo ""
|
|
IS_OKAY=false
|
|
fi
|
|
|
|
if ! tilt version &> /dev/null; then
|
|
echo "Error: tilt is not installed"
|
|
echo "See https://docs.tilt.dev/install.html for installation instructions."
|
|
echo "For frontend-service, you can ignore the kubernetes instructions."
|
|
echo ""
|
|
IS_OKAY=false
|
|
fi
|
|
|
|
|
|
if [ "$IS_OKAY" = false ]; then
|
|
echo "Please fix the above errors before continuing"
|
|
exit 1
|
|
fi
|