Support running open5gs metrics on different platforms
This commit is contained in:
@@ -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
|
||||
|
@@ -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/
|
||||
|
Reference in New Issue
Block a user