Skip to content

Commit

Permalink
Use podman-compose for local development.
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaliyf committed Feb 24, 2024
1 parent 1c65b77 commit 50d860b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '20'
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable --prefer-offline
Expand All @@ -37,18 +37,18 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '20'
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable --prefer-offline
- name: Build dependencies
run: yarn build
- name: Start grafana docker
run: yarn server -d
- name: Start Grafana container
run: docker-compose --file compose.yaml up --detach
- name: Run e2e tests
run: yarn e2e
- name: Stop grafana docker
run: docker-compose down
- name: Stop Grafana container
run: docker-compose --file compose.yaml down

build:
runs-on: ubuntu-latest
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# Embrace Metric Grafana Plugin

## Development Process

1. Clone the repo
2. Run `yarn install`
3. Start Docker
3. Start container with `podman-compose up`
4. Run `yarn dev` to start the dev server
5. Run `yarn server` to serve up the plugin on localhost:3000

## Submission Process

1. Create a new release: https://github.com/embrace-io/grafana-metric-plugin/releases
2. When the build is finished, locate the artifact under the Releases page
3. On [Plugins](https://grafana.com/orgs/embraceio/plugins) page, click "Submit plugin updade" and provide the following for the submission update:
Expand Down
4 changes: 1 addition & 3 deletions docker-compose.yaml → compose.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
version: '3.0'

services:
grafana:
container_name: 'embrace-embrace-app'
container_name: 'embrace-grafana'
build:
context: ./.config
args:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"lint:fix": "yarn lint --fix",
"e2e": "yarn cypress install && yarn grafana-e2e run",
"e2e:update": "yarn cypress install && yarn grafana-e2e run --update-screenshots",
"server": "docker-compose up --build",
"server": "podman-compose up --build",
"sign": "npx --yes @grafana/sign-plugin"
},
"author": "Embrace",
Expand Down

0 comments on commit 50d860b

Please sign in to comment.