Linter and build fixed (#3)

This commit is contained in:
Robbert Müller 2020-07-26 21:35:04 +02:00 committed by GitHub
parent 5158849871
commit d79d1fb015
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 13 deletions

View file

@ -12,20 +12,21 @@ ENV PROMETHEUS_VERSION=2.19.2
# Copy root filesystem # Copy root filesystem
COPY rootfs / COPY rootfs /
# hadolint ignore=DL3003
RUN \ RUN \
ARCH="${BUILD_ARCH}" \ ARCH="${BUILD_ARCH}" \
&& if [ "${BUILD_ARCH}" = "aarch64" ]; then ARCH="arm64"; fi \ && if [ "${BUILD_ARCH}" = "aarch64" ]; then ARCH="arm64"; fi \
\ \
&& apk --no-cache add \ && apk --no-cache add \
python3 \ python3=3.8.5-r0 \
py3-idna \ py3-idna=2.9-r0 \
py3-certifi \ py3-certifi=2020.4.5.1-r0 \
py3-chardet \ py3-chardet=3.0.4-r4 \
py3-yaml \ py3-yaml=5.3.1-r0 \
py3-urllib3 \ py3-urllib3=1.25.9-r0 \
py3-requests \ py3-requests=2.23.0-r0 \
&& apk --no-cache add --virtual .builddeps \ && apk --no-cache add --virtual .builddeps \
py-pip \ py-pip=20.1.1-r0 \
\ \
&& curl -J -L -o /tmp/prometheus.tar.gz \ && curl -J -L -o /tmp/prometheus.tar.gz \
"https://github.com/prometheus/prometheus/releases/download/v${PROMETHEUS_VERSION}/prometheus-${PROMETHEUS_VERSION}.linux-${ARCH}.tar.gz" \ "https://github.com/prometheus/prometheus/releases/download/v${PROMETHEUS_VERSION}/prometheus-${PROMETHEUS_VERSION}.linux-${ARCH}.tar.gz" \

View file

@ -1,8 +1,8 @@
--- ---
# my global config # my global config
global: global:
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute. scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute. evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
# scrape_timeout is set to the global default (10s). # scrape_timeout is set to the global default (10s).
# Alertmanager configuration # Alertmanager configuration
@ -10,7 +10,7 @@ alerting:
alertmanagers: alertmanagers:
- static_configs: - static_configs:
- targets: - targets:
# - alertmanager:9093 # - alertmanager:9093
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'. # Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
rule_files: rule_files:

View file

@ -1,5 +1,3 @@
#!/usr/bin/env python
import sys import sys
import asyncio import asyncio
import aionotify import aionotify