forked from signalfx/signalfx-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.rhel
35 lines (26 loc) · 1.05 KB
/
Dockerfile.rhel
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
FROM registry.access.redhat.com/rhel7-atomic
ARG AGENT_VERSION="5.7.1"
LABEL name="SignalFx Smart Agent" \
maintainer="SignalFx, Inc." \
vendor="SignalFx, Inc." \
version="${AGENT_VERSION}" \
release="1" \
summary="The SignalFx Smart Agent" \
description="The SignalFx Smart Agent" \
io.k8s.display-name="SignalFx Smart Agent" \
io.k8s.description="The SignalFx Smart Agent" \
io.openshift.tags=""
RUN mkdir -p /licenses
COPY LICENSE /licenses/
USER root
CMD ["/usr/bin/signalfx-agent"]
COPY packaging/rpm/signalfx-agent.repo /etc/yum.repos.d/signalfx-agent.repo
RUN rpm --import https://splunk.jfrog.io/splunk/signalfx-agent-rpm/splunk-B3CD4420.pub
RUN microdnf install --enablerepo=rhel-7-server-rpms signalfx-agent-${AGENT_VERSION}-1 &&\
microdnf clean all
RUN setcap -r /usr/lib/signalfx-agent/bin/signalfx-agent &&\
mkdir -p /var/run/signalfx-agent &&\
chown signalfx-agent.signalfx-agent /var/run/signalfx-agent &&\
chmod 777 /var/run/signalfx-agent
COPY deployments/docker/agent.yaml /tmp/agent.yaml
USER signalfx-agent