-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
53 lines (41 loc) · 1.8 KB
/
Dockerfile
File metadata and controls
53 lines (41 loc) · 1.8 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
50
51
52
53
FROM debian:bookworm-slim
ARG POWERPIPE_VERSION=1.5.1
ARG TARGETARCH
LABEL maintainer="amartingarcia, ialejandro"
LABEL org.opencontainers.image.title="Powerpipe"
LABEL org.opencontainers.image.description="Powerpipe — Dashboards for DevOps"
LABEL org.opencontainers.image.source="https://github.com/devops-ia/powerpipe"
LABEL org.opencontainers.image.vendor="devops-ia"
LABEL org.opencontainers.image.url="https://powerpipe.io"
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# git is required for 'powerpipe mod install' from GitHub repos
# hadolint ignore=DL3008,DL3005
RUN apt-get update && \
apt-get upgrade -y --no-install-recommends && \
apt-get install -y --no-install-recommends ca-certificates curl git jq && \
rm -rf /var/lib/apt/lists/*
# Powerpipe uses DOTS as separator in release asset names
RUN curl -fsSL "https://github.com/turbot/powerpipe/releases/download/v${POWERPIPE_VERSION}/powerpipe.linux.${TARGETARCH}.tar.gz" \
| tar -xz -C /usr/local/bin && \
chmod +x /usr/local/bin/powerpipe
# UID 9193, GID 0 (OpenShift compatible, consistent with Steampipe)
RUN useradd -u 9193 -g 0 -d /home/powerpipe -m -s /bin/bash powerpipe
RUN mkdir -p /home/powerpipe/.powerpipe \
/workspace && \
chown -R 9193:0 /home/powerpipe /workspace && \
chmod -R g=u /home/powerpipe /workspace
ENV POWERPIPE_UPDATE_CHECK=false \
POWERPIPE_TELEMETRY=none \
POWERPIPE_INSTALL_DIR=/home/powerpipe/.powerpipe \
POWERPIPE_LISTEN=network \
POWERPIPE_PORT=9033 \
POWERPIPE_LOG_LEVEL=warn \
POWERPIPE_MOD_LOCATION=/workspace \
POWERPIPE_MEMORY_MAX_MB=1024 \
POWERPIPE_MAX_PARALLEL=10
USER 9193
WORKDIR /workspace
EXPOSE 9033
HEALTHCHECK --interval=30s --timeout=5s --start-period=30s --retries=3 \
CMD curl -sf http://localhost:9033/ || exit 1
CMD ["powerpipe", "server"]