-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (16 loc) · 973 Bytes
/
Dockerfile
File metadata and controls
19 lines (16 loc) · 973 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM ubuntu:jammy@sha256:962f6cadeae0ea6284001009daa4cc9a8c37e75d1f5191cf0eb83fe565b63dd7
RUN apt-get update && apt-get install -y \
wget curl gnupg software-properties-common
RUN curl https://www.aventer.biz/assets/support_aventer.asc | apt-key add -
RUN add-apt-repository 'deb http://rpm.aventer.biz/Ubuntu/jammy jammy main'
RUN apt-get install -y aventer-mesos
ENV EXPORTER_URL=""
RUN ARCH=$(uname -m) && \
if [ "${ARCH}" = "arm64" ] || [ "${ARCH}" = "aarch64" ]; then \
EXPORTER_URL="https://github.com/mesos/mesos_exporter/releases/download/v1.1.2/mesos_exporter-1.1.2.linux-arm64.tar.gz"; \
else \
apt-get install -y libapr1 libsvn1 libevent-2.1-7 libevent-core-2.1-7 libevent-pthreads-2.1-7 libevent-openssl-2.1-7 && \
EXPORTER_URL="https://github.com/mesos/mesos_exporter/releases/download/v1.1.2/mesos_exporter-1.1.2.linux-amd64.tar.gz"; \
fi && \
wget ${EXPORTER_URL} && \
tar -xzvf $(basename ${EXPORTER_URL})