Support running open5gs metrics on different platforms

This commit is contained in:
herlesupreeth
2023-07-20 15:48:42 +02:00
parent 3fba078c17
commit dcfd3103e6
2 changed files with 7 additions and 4 deletions

View File

@@ -28,11 +28,11 @@ FROM ubuntu:focal
ENV DEBIAN_FRONTEND=noninteractive
ENV PROMETHEUS_VERSION=2.40.2
RUN apt-get update && \
apt-get install -y wget && \
wget -q https://github.com/prometheus/prometheus/releases/download/v2.40.2/prometheus-2.40.2.linux-amd64.tar.gz && \
tar xvfz prometheus-2.40.2.linux-amd64.tar.gz
WORKDIR prometheus-2.40.2.linux-amd64
wget -q https://github.com/prometheus/prometheus/releases/download/v$PROMETHEUS_VERSION/prometheus-$PROMETHEUS_VERSION.linux-$(dpkg --print-architecture).tar.gz && \
tar xvfz prometheus-$PROMETHEUS_VERSION.linux-$(dpkg --print-architecture).tar.gz
CMD /mnt/metrics/metrics_init.sh

View File

@@ -29,6 +29,9 @@
# Sync docker time
#ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
export PROMETHEUS_WORK_DIR=prometheus-$PROMETHEUS_VERSION.linux-$(dpkg --print-architecture)
cd $PROMETHEUS_WORK_DIR
mkdir -p /config
cp /mnt/metrics/prometheus.yml /config/