Skip to content

Commit

Permalink
Merge pull request #23 from hudeldudel/release/0.4.0
Browse files Browse the repository at this point in the history
Release/0.4.0
  • Loading branch information
hudeldudel authored Feb 10, 2024
2 parents e599e3c + e4bf784 commit a790bed
Show file tree
Hide file tree
Showing 4 changed files with 362 additions and 537 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14-alpine
FROM node:21-alpine

RUN mkdir /app && chown -R node:node /app

Expand Down
23 changes: 15 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,21 @@ Returns status code 200 when the service is running

## Run with Docker

* Build
* `docker build -t postman-exporter .`
* Run for tests
* `docker run --rm -p 3000:3000 postman-exporter`
* Sample usage (**some.json** - your collection)
* `docker run -d --restart=always -p 3000:3000 -v $(PWD)/some.json:/app/config/example.json postman-exporter`
* Run with included example

`docker run --rm -p 3000:3000 ghcr.io/hudeldudel/postman-exporter`

## Example Grafana Dashboard
* Run with your own configuration

* **collection.json** - your collection
* **probes.js** - your probes configuration using collection.json
```
docker run \
-d \
--restart=always \
-p 3000:3000 \
-v $(PWD)/myconfig/probes.js:/app/config/probes.js \
-v $(PWD)/myconfig/collection.json:/app/config/collection.json \
ghcr.io/hudeldudel/postman-exporter
```
tbd
Loading

0 comments on commit a790bed

Please sign in to comment.