-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
50 lines (42 loc) · 2.39 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
FROM registry.access.redhat.com/rhel7
MAINTAINER Dynatrace
### Atomic/OpenShift Labels - https://github.com/projectatomic/ContainerApplicationGenericLabels
LABEL name="dynatrace/oneagent" \
vendor="Dynatrace" \
version="1.x" \
release="1" \
summary="Dynatrace is an all-in-one, zero-config monitoring platform designed by and for cloud natives. It is powered by artificial intelligence that identifies performance problems and pinpoints their root causes in seconds." \
description="Dynatrace OneAgent automatically discovers all technologies, services and applications that run on your host." \
url="https://www.dynatrace.com/" \
run='docker run -d --privileged --name "${NAME}" \
-e ONEAGENT_INSTALLER_SCRIPT_URL="${ONEAGENT_INSTALLER_SCRIPT_URL}" \
-e ONEAGENT_INSTALLER_SKIP_CERT_CHECK="${ONEAGENT_INSTALLER_SKIP_CERT_CHECK:-false}" \
--ipc=host \
--net=host \
--pid=host \
-v /:/mnt/root \
${IMAGE}'
### OpenShift labels
LABEL io.k8s.description="Dynatrace OneAgent automatically discovers all technologies, services and applications that run on your host." \
io.k8s.display-name="Dynatrace OneAgent" \
io.openshift.tags="Dynatrace,oneagent"
### Atomic Help File - Write in Markdown, it will be converted to man format at build time.
### https://github.com/projectatomic/container-best-practices/blob/master/creating/help.adoc
COPY help.md /tmp
COPY licenses /licenses
RUN set -x \
&& REPOLIST=rhel-7-server-rpms,rhel-7-server-optional-rpms,epel \
&& yum -y update-minimal --disablerepo "*" --enablerepo rhel-7-server-rpms --setopt=tsflags=nodocs \
--security --sec-severity=Important --sec-severity=Critical \
&& curl -o epel-release-latest-7.noarch.rpm -SL https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm --retry 999 --retry-max-time 0 -C - \
&& rpm -ivh epel-release-latest-7.noarch.rpm && rm epel-release-latest-7.noarch.rpm \
&& yum -y install --disablerepo "*" --enablerepo ${REPOLIST} --setopt=tsflags=nodocs \
golang-github-cpuguy83-go-md2man jq openssl wget \
&& go-md2man -in /tmp/help.md -out /help.1 \
&& yum -y remove golang-github-cpuguy83-go-md2man \
&& rm -f /tmp/help.md \
&& yum clean all
COPY dt-root.cert.pem /tmp/dt-root.cert.pem
COPY entrypoint.sh /tmp/entrypoint.sh
RUN chmod +x /tmp/entrypoint.sh
ENTRYPOINT ["/tmp/entrypoint.sh"]