Skip to content

Commit

Permalink
Make lintastic
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorific committed Nov 20, 2024
1 parent c9618b2 commit e1a1688
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
5 changes: 3 additions & 2 deletions prometheus/node-exporter/Containerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#syntax=docker/dockerfile:1
ARG CONTAINER_REGISTRY=docker.io
FROM $CONTAINER_REGISTRY/ubuntu:noble-20241015 AS base
ARG CONTAINER_REGISTRY=docker.io/ubuntu:noble-20241015
# hadolint ignore=DL3006
FROM $BASE_IMAGE AS base

ARG NODE_EXPORTER_URL_AMD64
ARG NODE_EXPORTER_SHA256_AMD64
Expand Down
16 changes: 6 additions & 10 deletions prometheus/node-exporter/docker-bake.hcl
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
variable "IMAGE_NAME" {
default = "node-exporter"
variable "TAG_PREFIX" {
default = "docker.io/boxcutter/node-exporter"
}

variable "VERSION" {
default = "1.7.0"
}

variable "CONTAINER_REGISTRY" {
default = "docker.io/boxcutter"
}

# There's no darwin-based Docker, so if we're running on macOS, change the platform to linux
variable "LOCAL_PLATFORM" {
default = regex_replace("${BAKE_LOCAL_PLATFORM}", "^(darwin)", "linux")
Expand All @@ -26,15 +22,15 @@ target "_common" {
NODE_EXPORTER_SHA256_ARMHF = "0fb88e682d055a70a8597504874b0a76d1df6a8a511f3d7cb1d48c7db84a2d2a"
}
tags = [
"${CONTAINER_REGISTRY}/${IMAGE_NAME}:${VERSION}",
"${CONTAINER_REGISTRY}/${IMAGE_NAME}:latest"
"${TAG_PREFIX}:${VERSION}",
"${TAG_PREFIX}:latest"
]
labels = {
"org.opencontainers.image.source" = "https://github.com/boxcutter/oci"
"org.opencontainers.image.licenses" = "Apache-2.0"
"org.opencontainers.image.description" = "Prometheus node exporter for machine metrics."
"org.opencontainers.image.title" = "${IMAGE_NAME}"
"dev.boxcutter.image.readme-filepath" = "prometheus/node_exporter/README.md"
"org.opencontainers.image.title" = "${TAG_PREFIX}"
"dev.boxcutter.image.readme-filepath" = "prometheus/node-exporter/README.md"
}
}

Expand Down

0 comments on commit e1a1688

Please sign in to comment.