Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ The following files are added (taken from Debian) to fix some common issues:
- `/etc/ssl/certs/ca-certificates.crt` : for HTTPS support
- `/usr/share/zoneinfo` : for timezones
- `/etc/services` : for named ports resolution
- `/etc/os-release` and `/usr/lib/os-release` : for base OS identification

### prom/busybox:glibc : glibc

Expand All @@ -25,6 +26,7 @@ The following files are added (taken from Debian) to fix some common issues:
- `/etc/ssl/certs/ca-certificates.crt` : for HTTPS support
- `/usr/share/zoneinfo` : for timezones
- `/etc/services` : for named ports resolution
- `/etc/os-release` and `/usr/lib/os-release` : for base OS identification
- `/lib/x86_64-linux-gnu/libpthread.so.0` : common required lib for project binaries that cannot be statically built.

## Build Docker images locally
Expand Down
16 changes: 16 additions & 0 deletions glibc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,22 @@ RUN set -x \
fi; \
done

ARG CODENAME="bookworm"
ARG VERSION="12"
ARG OS_RELEASE_FILE=/rootfs/usr/lib/os-release

RUN mkdir -p /rootfs/usr/lib && \
echo 'PRETTY_NAME="Prometheus Busybox"' > ${OS_RELEASE_FILE} && \
echo 'NAME="Debian GNU/Linux"' >> ${OS_RELEASE_FILE} && \
echo 'ID="debian"' >> ${OS_RELEASE_FILE} && \
echo 'VERSION_ID="'${VERSION}'"' >> ${OS_RELEASE_FILE} && \
echo 'VERSION="Debian GNU/Linux '${VERSION}' ('${CODENAME}')"' >> ${OS_RELEASE_FILE} && \
echo 'HOME_URL="https://github.com/prometheus/busybox"' >> ${OS_RELEASE_FILE} && \
echo 'SUPPORT_URL="https://github.com/prometheus/busybox/blob/master/README.md"' >> ${OS_RELEASE_FILE} && \
echo 'BUG_REPORT_URL="https://github.com/prometheus/busybox/issues/new"' >> ${OS_RELEASE_FILE}

RUN ln -s /usr/lib/os-release /rootfs/etc/os-release

FROM ${ARCH}busybox:glibc
MAINTAINER The Prometheus Authors <prometheus-developers@googlegroups.com>

Expand Down
16 changes: 16 additions & 0 deletions uclibc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,22 @@ RUN set -x \
fi; \
done

ARG CODENAME="bookworm"
ARG VERSION="12"
ARG OS_RELEASE_FILE=/rootfs/usr/lib/os-release

RUN mkdir -p /rootfs/usr/lib && \
echo 'PRETTY_NAME="Prometheus Busybox"' > ${OS_RELEASE_FILE} && \
echo 'NAME="Debian GNU/Linux"' >> ${OS_RELEASE_FILE} && \
echo 'ID="debian"' >> ${OS_RELEASE_FILE} && \
echo 'VERSION_ID="'${VERSION}'"' >> ${OS_RELEASE_FILE} && \
echo 'VERSION="Debian GNU/Linux '${VERSION}' ('${CODENAME}')"' >> ${OS_RELEASE_FILE} && \
echo 'HOME_URL="https://github.com/prometheus/busybox"' >> ${OS_RELEASE_FILE} && \
echo 'SUPPORT_URL="https://github.com/prometheus/busybox/blob/master/README.md"' >> ${OS_RELEASE_FILE} && \
echo 'BUG_REPORT_URL="https://github.com/prometheus/busybox/issues/new"' >> ${OS_RELEASE_FILE}

RUN ln -s /usr/lib/os-release /rootfs/etc/os-release

FROM ${ARCH}busybox:uclibc
MAINTAINER The Prometheus Authors <prometheus-developers@googlegroups.com>

Expand Down