Skip to content

Commit

Permalink
fixDocker
Browse files Browse the repository at this point in the history
  • Loading branch information
syepes committed Jun 7, 2021
1 parent 42bb39e commit d113a5b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ name: rust
on:
pull_request:
branches:
- master
- main
paths-ignore:
- "**.md"
- "docs/**"
push:
branches:
- master
- main
paths-ignore:
- "**.md"
Expand Down Expand Up @@ -65,4 +67,4 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings -A clippy::or-fun-call -A clippy::single-match -A clippy::expect-fun-call -A clippy::clone_double_ref -A clippy::wildcard-in-or-patterns
args: -- -D warnings -A clippy::or-fun-call -A clippy::expect-fun-call -A clippy::clone_double_ref -A clippy::wildcard-in-or-patterns
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ WORKDIR /app
ENV RUST_BACKTRACE=full
COPY --from=builder /app/target/release/sio2prom sio2prom
COPY ./cfg cfg
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates && update-ca-certificates

EXPOSE 8080
ENTRYPOINT ["/app/sio2prom"]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
## Usage (Docker)

# Default settings
docker run -d --name sio2prom -h sio2prom -e IP=1.1.1.1 -e AUTH_USR=mon -p AUTH_PWD=mon -p 8080:8080 syepes/sio2prom
docker run -d --name sio2prom -h sio2prom -e IP=1.1.1.1 -e AUTH_USR=mon -e AUTH_PWD=mon -p 8080:8080 syepes/sio2prom

# Custom / local configuration files: $PWD/cfgmetric_definition.json $PWD/cfg/metric_query_selection.json
docker run -d --name sio2prom -h sio2prom -e IP=1.1.1.1 -e AUTH_USR=mon -p AUTH_PWD=mon -v $PWD/cfg:/app/cfg/ -p 8080:8080 syepes/sio2prom
docker run -d --name sio2prom -h sio2prom -e IP=1.1.1.1 -e AUTH_USR=mon -e AUTH_PWD=mon -v $PWD/cfg:/app/cfg/ -p 8080:8080 syepes/sio2prom

# Metrics
curl -v -i https://localhost:8080/metrics
Expand Down

0 comments on commit d113a5b

Please sign in to comment.