Skip to content

Commit

Permalink
Add a dummy env var for Sentry (#269)
Browse files Browse the repository at this point in the history
Signed-off-by: Tasos Katsoulas <[email protected]>
  • Loading branch information
tkatsoulas authored Jan 31, 2024
1 parent c8d5f1b commit 2d65ae2
Show file tree
Hide file tree
Showing 21 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions package-builders/Dockerfile.amazonlinux2.v1
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ LABEL org.opencontainers.image.description="Package builder image for Netdata of
LABEL org.opencontainers.image.vendor="Netdata Inc."

ENV VERSION=$VERSION
ENV SENTRY_DSN="https://[email protected]/dummy"

RUN yum update -y && \
yum install -y autoconf \
Expand Down
2 changes: 2 additions & 0 deletions package-builders/Dockerfile.amazonlinux2023.v1
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ LABEL org.opencontainers.image.description="Package builder image for Netdata of
LABEL org.opencontainers.image.vendor="Netdata Inc."

ENV VERSION=$VERSION
# Dummy sentry DSN
ENV SENTRY_DSN="https://[email protected]/dummy"

RUN dnf distro-sync -y --nodocs && \
dnf clean packages && \
Expand Down
2 changes: 2 additions & 0 deletions package-builders/Dockerfile.centos-stream8.v1
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ LABEL org.opencontainers.image.description="Package builder image for Netdata of
LABEL org.opencontainers.image.vendor="Netdata Inc."

ENV VERSION=$VERSION
# Dummy Sentry DSN
ENV SENTRY_DSN="https://[email protected]/dummy"

RUN dnf distro-sync -y --nodocs && \
dnf install -y --nodocs 'dnf-command(config-manager)' epel-release && \
Expand Down
2 changes: 2 additions & 0 deletions package-builders/Dockerfile.centos-stream9.v1
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ LABEL org.opencontainers.image.description="Package builder image for Netdata of
LABEL org.opencontainers.image.vendor="Netdata Inc."

ENV VERSION=$VERSION
# Dummy Sentry DSN
ENV SENTRY_DSN="https://[email protected]/dummy"

RUN dnf distro-sync -y --nodocs && \
dnf install -y --nodocs 'dnf-command(config-manager)' epel-release && \
Expand Down
2 changes: 2 additions & 0 deletions package-builders/Dockerfile.centos7.v1
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ LABEL org.opencontainers.image.description="Package builder image for Netdata of
LABEL org.opencontainers.image.vendor="Netdata Inc."

ENV VERSION=$VERSION
# Dummy Sentry DSN
ENV SENTRY_DSN="https://[email protected]/dummy"

RUN yum install -y epel-release && \
yum update -y && \
Expand Down
2 changes: 2 additions & 0 deletions package-builders/Dockerfile.debian10.v1
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ ENV VERSION=0.1

# This is needed to ensure package installs don't prompt for any user input.
ENV DEBIAN_FRONTEND=noninteractive
# Dummy Sentry DSN
ENV SENTRY_DSN="https://[email protected]/dummy"

RUN apt-get update && \
apt-get upgrade -y && \
Expand Down
2 changes: 2 additions & 0 deletions package-builders/Dockerfile.debian11.v1
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ ENV VERSION=0.1

# This is needed to ensure package installs don't prompt for any user input.
ENV DEBIAN_FRONTEND=noninteractive
# Dummy Sentry DSN
ENV SENTRY_DSN="https://[email protected]/dummy"

RUN apt-get update && \
apt-get upgrade -y && \
Expand Down
2 changes: 2 additions & 0 deletions package-builders/Dockerfile.debian12.v1
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ ENV VERSION=0.1

# This is needed to ensure package installs don't prompt for any user input.
ENV DEBIAN_FRONTEND=noninteractive
# Dummy Sentry DSN
ENV SENTRY_DSN="https://[email protected]/dummy"

RUN apt-get update && \
apt-get upgrade -y && \
Expand Down
2 changes: 2 additions & 0 deletions package-builders/Dockerfile.fedora38.v1
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ LABEL org.opencontainers.image.description="Package builder image for Netdata of
LABEL org.opencontainers.image.vendor="Netdata Inc."

ENV VERSION=$VERSION
# Dummy Sentry DSN
ENV SENTRY_DSN="https://[email protected]/dummy"

RUN dnf distro-sync -y --nodocs && \
dnf clean -y packages && \
Expand Down
2 changes: 2 additions & 0 deletions package-builders/Dockerfile.fedora39.v1
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ LABEL org.opencontainers.image.description="Package builder image for Netdata of
LABEL org.opencontainers.image.vendor="Netdata Inc."

ENV VERSION=$VERSION
# Dummy Sentry DSN
ENV SENTRY_DSN="https://[email protected]/dummy"

RUN dnf distro-sync -y --nodocs && \
dnf clean -y packages && \
Expand Down
2 changes: 2 additions & 0 deletions package-builders/Dockerfile.opensuse15.4.v1
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ LABEL org.opencontainers.image.description="Package builder image for Netdata of
LABEL org.opencontainers.image.vendor="Netdata Inc."

ENV VERSION=0.1
# Dummy Sentry DSN
ENV SENTRY_DSN="https://[email protected]/dummy"

RUN zypper update -y && \
zypper install -y --allow-downgrade \
Expand Down
2 changes: 2 additions & 0 deletions package-builders/Dockerfile.opensuse15.5.v1
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ LABEL org.opencontainers.image.description="Package builder image for Netdata of
LABEL org.opencontainers.image.vendor="Netdata Inc."

ENV VERSION=0.1
# Dummy Sentry DSN
ENV SENTRY_DSN="https://[email protected]/dummy"

RUN zypper update -y && \
zypper install -y --allow-downgrade \
Expand Down
2 changes: 2 additions & 0 deletions package-builders/Dockerfile.opensusetumbleweed.v1
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ LABEL org.opencontainers.image.description="Package builder image for Netdata of
LABEL org.opencontainers.image.vendor="Netdata Inc."

ENV VERSION=$VERSION
# Dummy Sentry DSN
ENV SENTRY_DSN="https://[email protected]/dummy"

RUN zypper update -y && \
zypper install -y --allow-downgrade \
Expand Down
2 changes: 2 additions & 0 deletions package-builders/Dockerfile.oraclelinux8.v1
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ LABEL org.opencontainers.image.description="Package builder image for Netdata of
LABEL org.opencontainers.image.vendor="Netdata Inc."

ENV VERSION=$VERSION
# Dummy Sentry DSN
ENV SENTRY_DSN="https://[email protected]/dummy"

COPY package-builders/ol8-epel.repo /etc/yum.repos.d/ol8-epel.repo

Expand Down
2 changes: 2 additions & 0 deletions package-builders/Dockerfile.oraclelinux9.v1
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ LABEL org.opencontainers.image.description="Package builder image for Netdata of
LABEL org.opencontainers.image.vendor="Netdata Inc."

ENV VERSION=$VERSION
# Dummy Sentry DSN
ENV SENTRY_DSN="https://[email protected]/dummy"

COPY package-builders/ol9-epel.repo /etc/yum.repos.d/ol9-epel.repo

Expand Down
2 changes: 2 additions & 0 deletions package-builders/Dockerfile.rockylinux8.v1
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ LABEL org.opencontainers.image.description="Package builder image for Netdata of
LABEL org.opencontainers.image.vendor="Netdata Inc."

ENV VERSION=$VERSION
# Dummy Sentry DSN
ENV SENTRY_DSN="https://[email protected]/dummy"

RUN dnf distro-sync -y --nodocs && \
dnf install -y --nodocs 'dnf-command(config-manager)' epel-release && \
Expand Down
2 changes: 2 additions & 0 deletions package-builders/Dockerfile.rockylinux9.v1
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ LABEL org.opencontainers.image.description="Package builder image for Netdata of
LABEL org.opencontainers.image.vendor="Netdata Inc."

ENV VERSION=$VERSION
# Dummy Sentry DSN
ENV SENTRY_DSN="https://[email protected]/dummy"

RUN dnf distro-sync -y --nodocs && \
dnf install -y --nodocs 'dnf-command(config-manager)' epel-release && \
Expand Down
2 changes: 2 additions & 0 deletions package-builders/Dockerfile.ubuntu20.04.v1
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ ENV VERSION=0.1

# This is needed to keep package installs from prompting about configuration.
ENV DEBIAN_FRONTEND=noninteractive
# Dummy Sentry DSN
ENV SENTRY_DSN="https://[email protected]/dummy"

RUN apt-get update && \
apt-get upgrade -y && \
Expand Down
2 changes: 2 additions & 0 deletions package-builders/Dockerfile.ubuntu22.04.v1
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ ENV VERSION=0.1

# This is needed to keep package installs from prompting about configuration.
ENV DEBIAN_FRONTEND=noninteractive
# Dummy Sentry DSN
ENV SENTRY_DSN="https://[email protected]/dummy"

RUN apt-get update && \
apt-get upgrade -y && \
Expand Down
2 changes: 2 additions & 0 deletions package-builders/Dockerfile.ubuntu23.10.v1
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ ENV VERSION=0.1

# This is needed to keep package installs from prompting about configuration.
ENV DEBIAN_FRONTEND=noninteractive
# Dummy Sentry DSN
ENV SENTRY_DSN="https://[email protected]/dummy"

RUN apt-get update && \
apt-get upgrade -y && \
Expand Down
4 changes: 4 additions & 0 deletions package-builders/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ if [ -d /cmake/bin ]; then
PATH="/cmake/bin:${PATH}"
fi

if [ -n "$NETDATA_SENTRY_DSN" ]; then
SENTRY_DSN="$NETDATA_SENTRY_DSN"
fi

fail() {
printf "FAIL: %s\n" "$1"
if [ -t 1 ]; then
Expand Down

0 comments on commit 2d65ae2

Please sign in to comment.