Skip to content

Commit

Permalink
chore: upgrade stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
albanm committed Jan 12, 2024
1 parent c0cb4ed commit f646460
Show file tree
Hide file tree
Showing 3 changed files with 2,550 additions and 191 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
######################################
# Stage: nodejs dependencies and build
FROM node:16.13.2-alpine3.14 AS builder
FROM node:16.20.2-alpine3.18 AS builder

USER root

Expand All @@ -26,7 +26,7 @@ RUN npm prune --production && \
####################################
# Exporter using "pbm" executable from official pbm image

FROM node:16.13.2-alpine3.14
FROM node:16.20.2-alpine3.18

RUN apk add --no-cache unzip dumb-init

Expand Down
10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,9 @@ docker-compose exec pbm-agent bash
>> pbm config --set=pitr.enabled=true
```

Test the source code:

```
npm run dev
curl http://localhost:9090/metrics
```

Build and test the image:

```
docker build . -t pbm-exporter
docker run -it --rm -p 9090:9090 -e PBM_MONGODB_URI=mongodb://mongo:27017 --network pbm-exporter-test --name pbm-exporter-test pbm-exporter
docker build . -t pbm-exporter && docker run -it --rm -p 9090:9090 -e DEBUG=pbm-exporter -e PBM_MONGODB_URI=mongodb://mongo:27017 --network pbm-exporter-test --name pbm-exporter-test pbm-exporter
curl http://localhost:9090/metrics
```

0 comments on commit f646460

Please sign in to comment.