Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support host prefix for apt_info.py #171

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Jul 31, 2023

  1. Support host prefix for apt_info.py

    This will allow  to run apt_info.py on the host from the container.
    
    ```
    docker run --rm -it --entrypoint bash -v "/:/hostfs" ubuntu:22.04 -c 'apt update && apt install -y python3-prometheus-client python3-apt curl && curl https://raw.githubusercontent.com/prometheus-community/node-exporter-textfile-collector-scripts/master/apt_info.py -o /tmp/apt_info.py && python3 /tmp/apt_info.py'
    ```
    
    Signed-off-by: Lukas M <lukas.mrtvy@gmail.com>
    lukasmrtvy committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    f5ba1d9 View commit details
    Browse the repository at this point in the history
  2. Update apt_info.py

    Signed-off-by: Lukas M <lukas.mrtvy@gmail.com>
    lukasmrtvy committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    7aaf517 View commit details
    Browse the repository at this point in the history