-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathContainerfile.perses
More file actions
49 lines (38 loc) · 1.77 KB
/
Containerfile.perses
File metadata and controls
49 lines (38 loc) · 1.77 KB
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
#FROM registry.redhat.io/ubi9/nodejs-20:latest AS node-builder
FROM quay.io/redhat-services-prod/openshift/boilerplate:image-v8.0.0 as builder
USER root
RUN dnf -y module enable nodejs:20 && \
dnf install -y --setopt=tsflags=nodocs nodejs nodejs-libs mailcap && \
dnf clean all && \
rm -rf /var/cache/dnf
WORKDIR /app
COPY perses/ .
ENV GOFLAGS="-mod=readonly"
RUN go mod download
RUN mkdir /plugins
RUN make build-ui build-api build-cli
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
COPY --from=builder /app/bin/perses /bin/perses
COPY --from=builder /app/bin/percli /bin/percli
COPY --from=builder /app/docs/examples/config.docker.yaml /etc/perses/config.yaml
COPY --from=builder /app/plugins-archive/ /etc/perses/plugins-archive/
COPY --from=builder /app/LICENSE /licenses/LICENSE
COPY --from=builder /plugins /etc/perses/plugins
COPY --from=builder /etc/mime.types /etc/mime.types
RUN chgrp -R nobody /etc/perses && \
chmod -R g=u /etc/perses
USER nobody
WORKDIR /perses
EXPOSE 8080
VOLUME ["/perses"]
ENTRYPOINT [ "/bin/perses" ]
CMD ["--config=/etc/perses/config.yaml", "--log.level=error"]
ARG VERSION
LABEL vendor="Red Hat, Inc." \
com.redhat.component="rhobs-perses" \
name="perses" \
maintainer="team-monitoring@redhat.com" \
version="$VERSION" \
release="$VERSION" \
description="Perses is a dashboard tool to visualize all your observability data. It currently supports Prometheus metrics, Tempo traces, Loki for logs, Pyroscope for profiling, bringing together all four observability pillars in one place." \
summary="Dashboard tool for Prometheus and other data sources"