diff --git a/docusaurus/docs/get-started/set-up-development-environment.mdx b/docusaurus/docs/get-started/set-up-development-environment.mdx index 3bcafb188..1e498677a 100644 --- a/docusaurus/docs/get-started/set-up-development-environment.mdx +++ b/docusaurus/docs/get-started/set-up-development-environment.mdx @@ -142,7 +142,8 @@ services: build: context: ./.config args: - development: "false" + development: ${DEVELOPMENT:-true} ``` Doing that, the docker environment will only run grafana and load the content of your projects `dist` directory. Thefore before doing that you should build your plugin with `mage -v build:backend` and to generate the plugin files. +In the example you can also use the `DEVELOPMENT` environment variable to control the development mode. diff --git a/packages/create-plugin/templates/common/docker-compose.yaml b/packages/create-plugin/templates/common/docker-compose.yaml index cecd3156f..4e8f026d7 100644 --- a/packages/create-plugin/templates/common/docker-compose.yaml +++ b/packages/create-plugin/templates/common/docker-compose.yaml @@ -11,6 +11,7 @@ services: args: grafana_image: ${GRAFANA_IMAGE:-{{~grafanaImage~}} } grafana_version: ${GRAFANA_VERSION:-{{~grafanaVersion~}} } + development: ${DEVELOPMENT:-true} ports: - 3000:3000/tcp {{#if hasBackend}} diff --git a/packages/create-plugin/templates/github/ci/.github/workflows/ci.yml b/packages/create-plugin/templates/github/ci/.github/workflows/ci.yml index 78183f739..88badc6fe 100644 --- a/packages/create-plugin/templates/github/ci/.github/workflows/ci.yml +++ b/packages/create-plugin/templates/github/ci/.github/workflows/ci.yml @@ -176,7 +176,7 @@ jobs: - name: Start Grafana run: | docker-compose pull - GRAFANA_VERSION=$\{{ matrix.GRAFANA_IMAGE.VERSION }} GRAFANA_IMAGE=$\{{ matrix.GRAFANA_IMAGE.NAME }} docker-compose up -d + DEVELOPMENT=false GRAFANA_VERSION=$\{{ matrix.GRAFANA_IMAGE.VERSION }} GRAFANA_IMAGE=$\{{ matrix.GRAFANA_IMAGE.NAME }} docker-compose up -d - name: Wait for Grafana to start uses: nev7n/wait_for_response@v1