Skip to content

Commit

Permalink
Use normalize_id for docker-compose.yml instead of only pluginName (#109
Browse files Browse the repository at this point in the history
)
  • Loading branch information
academo authored Oct 24, 2022
1 parent a9e5baa commit 826e7eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/create-plugin/src/utils/utils.handlebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export function registerHandlebarsHelpers() {
properCase: changeCase.pascalCase,
pascalCase: changeCase.pascalCase,
if_eq: ifEq,
normalize_id: normalizeId,
};

Object.keys(helpers).forEach((helperName) =>
Expand Down
4 changes: 2 additions & 2 deletions packages/create-plugin/templates/common/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ version: '3.0'

services:
grafana:
container_name: '{{ kebabCase pluginName }}'
container_name: '{{ normalize_id pluginName orgName pluginType }}'
build:
context: ./.config
args:
grafana_version: ${GRAFANA_VERSION:-{{~grafanaVersion~}} }
ports:
- 3000:3000/tcp
volumes:
- ./dist:/var/lib/grafana/plugins/{{ kebabCase pluginName }}
- ./dist:/var/lib/grafana/plugins/{{ normalize_id pluginName orgName pluginType }}
- ./provisioning:/etc/grafana/provisioning

0 comments on commit 826e7eb

Please sign in to comment.