Sign inSign up

felddy/starlink-exporter

By felddy

Updated almost 4 years ago

Image
1

7.1K

felddy/starlink-exporter repository overview

GitHub Build Status CII Best Practices CodeQL Known Vulnerabilities License Release GitHub go.mod Go version Go Report Card

Docker Image

Docker Pulls Docker Image Size (latest by date) Platforms

A Starlink exporter for Prometheus.

Running

Running with Docker

To run the felddy/starlink-exporter image via Docker:

docker run felddy/starlink-exporter:0.0.1
Running with Docker Compose
  1. Create a docker-compose.yml file similar to the one below to use Docker Compose.

    ---
    version: "3.7"
    
    services:
      starlink-exporter:
        image: felddy/starlink-exporter:0.0.1
       ports:
          - target: 9817
            published: 9817
            protocol: tcp
    
  2. Start the container and detach:

    docker-compose up --detach
    

Updating your container

Docker Compose
  1. Pull the new image from Docker Hub:

    docker-compose pull
    
  2. Recreate the running container by following the previous instructions:

    docker-compose up --detach
    
Docker
  1. Stop the running container:

    docker stop <container_id>
    
  2. Pull the new image:

    docker pull felddy/starlink-exporter:0.0.1
    
  3. Recreate and run the container by following the previous instructions.

Image tags

The images of this container are tagged with semantic versions of the underlying starlink-exporter project that they containerize. It is recommended that most users use a version tag (e.g. :0.0.1).

Image:tagDescription
felddy/starlink-exporter:1.2.3An exact release version.
felddy/starlink-exporter:1.2The most recent release matching the major and minor version numbers.
felddy/starlink-exporter:1The most recent release matching the major version number.
felddy/starlink-exporter:edgeThe most recent image built from a merge into the develop branch of this repository.
felddy/starlink-exporter:nightlyA nightly build of the develop branch of this repository.
felddy/starlink-exporter:latestThe most recent release image pushed to a container registry. Pulling an image using the :latest tag should be avoided.

See the tags tab on Docker Hub for a list of all the supported tags.

Volumes

None

Ports

The following ports are exposed by this container:

PortPurpose
9817Prometheus web target

The sample Docker composition publishes the exposed port at 9817.

Environment variables

Required

There are no required environment variables.

Optional

There are no optional environment variables.

Secrets

There are no secrets.

Building from source

Build the image locally using this git repository as the build context:

docker build \
  --build-arg VERSION=0.0.1 \
  --tag felddy/starlink-exporter:0.0.1 \
  https://github.com/felddy/starlink-exporter.git#develop

Cross-platform builds

To create images that are compatible with other platforms, you can use the buildx feature of Docker:

  1. Copy the project to your machine using the Code button above or the command line:

    git clone https://github.com/felddy/starlink-exporter.git
    cd starlink-exporter
    
  2. Create the Dockerfile-x file with buildx platform support:

    ./buildx-dockerfile.sh
    
  3. Build the image using buildx:

    docker buildx build \
      --file Dockerfile-x \
      --platform linux/amd64 \
      --build-arg VERSION=0.0.1 \
      --output type=docker \
      --tag felddy/starlink-exporter:0.0.1 .
    

Contributing

We welcome contributions! Please see CONTRIBUTING.md for details.

License

This project is released as open source under the GPLv3.

All contributions to this project will be released under the same GPLv3 license. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.

Tag summary

Content type

Image

Digest

sha256:6e05c58fd

Size

10.8 MB

Last updated

almost 4 years ago

docker pull felddy/starlink-exporter:nightly