Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ ENV DEV "${development}"
ENV GF_AUTH_ANONYMOUS_ORG_ROLE "Admin"
ENV GF_AUTH_ANONYMOUS_ENABLED "${anonymous_auth_enabled}"
ENV GF_AUTH_BASIC_ENABLED "false"
# Set development mode so plugins can be loaded without the need to sign
ENV GF_DEFAULT_APP_MODE "development"
# GF_DEFAULT_APP_MODE is set dynamically in entrypoint.sh based on the DEV build arg


LABEL maintainer="Grafana Labs <hello@grafana.com>"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/sh

# Default to development mode; switch to production when DEV=false
if [ "${DEV}" = "false" ]; then
export GF_DEFAULT_APP_MODE="production"
fi

if [ "${DEV}" = "false" ]; then
echo "Starting test mode"
exec /run.sh
Expand Down