forked from Narcissus/docker-multi-platform-probe
Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9ab86d9e89 | ||
|
|
923b65c1e4 | ||
|
|
77016209c1 | ||
| e64f6724ab | |||
| 46fc633d88 | |||
| 573c54f5e2 | |||
| 8abf3edfcd | |||
| 16a7bea45c | |||
|
|
baa179a41c | ||
|
|
91a2187ec1 |
85
.github/workflows/docker-build.yml
vendored
Normal file
85
.github/workflows/docker-build.yml
vendored
Normal file
@@ -0,0 +1,85 @@
|
||||
# See https://docs.github.com/en/actions/publishing-packages/publishing-docker-images
|
||||
|
||||
name: Build and push # to docker registries
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- "main"
|
||||
tags:
|
||||
- "*"
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
env:
|
||||
IMAGE_NAME: prtgprobe/multi-platform-probe
|
||||
|
||||
jobs:
|
||||
docker_build:
|
||||
name: Build and push
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
packages: write
|
||||
contents: read
|
||||
attestations: write
|
||||
id-token: write
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
variant:
|
||||
- name: systemec_piraeus
|
||||
registry: "piraeus.systemec.nl"
|
||||
steps:
|
||||
- name: Set image for Docker
|
||||
id: set-image
|
||||
run: |
|
||||
if [ "${{ matrix.variant.name }}" == "systemec_piraeus" ]; then
|
||||
echo "IMAGE_TO_USE=${IMAGE_NAME}" >> $GITHUB_ENV
|
||||
else
|
||||
echo "Failing to resolve."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Check out the repository
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
with:
|
||||
platforms: |
|
||||
- linux/amd64
|
||||
- linux/arm64
|
||||
- linux/arm/v7
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Log in to Systemec Piraeus
|
||||
if: matrix.variant.name == 'systemec_piraeus'
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PUSH_TOKEN }}
|
||||
registry: ${{ matrix.variant.registry }}
|
||||
|
||||
- name: Extract metadata (tags, labels) for Docker
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: ${{ matrix.variant.registry }}/${{ env.IMAGE_TO_USE }}
|
||||
tags: |
|
||||
type=ref,event=branch
|
||||
type=ref,event=tag
|
||||
type=sha,format=short,prefix=
|
||||
|
||||
- name: Build and push Docker image
|
||||
id: push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
4
.github/workflows/dockerhub.yml
vendored
4
.github/workflows/dockerhub.yml
vendored
@@ -3,8 +3,8 @@
|
||||
name: Push to Docker Hub
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
# release:
|
||||
# types: [published]
|
||||
|
||||
env:
|
||||
IMAGE_NAME: paessler/multi-platform-probe
|
||||
|
||||
6
.github/workflows/github.yml
vendored
6
.github/workflows/github.yml
vendored
@@ -3,9 +3,9 @@
|
||||
name: Push to GitHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
tags: ["*"]
|
||||
# push:
|
||||
# branches: ["main"]
|
||||
# tags: ["*"]
|
||||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
|
||||
22
Dockerfile
22
Dockerfile
@@ -1,10 +1,11 @@
|
||||
FROM debian:11-slim
|
||||
FROM debian:13-slim
|
||||
|
||||
LABEL org.opencontainers.image.authors="info@paessler.com"
|
||||
LABEL org.opencontainers.image.vendor="Paessler GmbH"
|
||||
LABEL org.opencontainers.image.licenses="MIT"
|
||||
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
ARG DEBIAN_FB_RELEASE=bookworm
|
||||
|
||||
# enforce image to be up to date
|
||||
RUN \
|
||||
@@ -21,7 +22,7 @@ RUN \
|
||||
# - libcap2-bin (for setcap command)
|
||||
#
|
||||
RUN \
|
||||
apt-get update \
|
||||
apt-get update && apt-get full-upgrade \
|
||||
&& apt-get -y install --no-install-recommends --no-install-suggests \
|
||||
ca-certificates \
|
||||
python3-minimal \
|
||||
@@ -29,13 +30,15 @@ RUN \
|
||||
libcap2-bin \
|
||||
&& apt-get clean
|
||||
|
||||
# add paessler's official package repository
|
||||
# Add Paessler's official package repository with current release specifications.
|
||||
# If the current release is not present on Paessler's servers fallback to defined fallback release.
|
||||
RUN \
|
||||
apt-get update \
|
||||
apt-get -qq update \
|
||||
&& apt-get -y install --no-install-recommends --no-install-suggests \
|
||||
curl \
|
||||
&& curl --fail --silent https://packages.paessler.com/keys/paessler.asc > /usr/share/keyrings/paessler-archive-keyring.asc \
|
||||
&& curl --fail --silent https://packages.paessler.com/docs/apt-sources/$(. /etc/os-release && echo $VERSION_CODENAME).sources > /etc/apt/sources.list.d/paessler.sources \
|
||||
&& curl --fail https://packages.paessler.com/keys/paessler.asc > /usr/share/keyrings/paessler-archive-keyring.asc \
|
||||
&& curl --fail https://packages.paessler.com/docs/apt-sources/$(. /etc/os-release && $VERSION_CODENAME).sources \
|
||||
|| curl --fail https://packages.paessler.com/docs/apt-sources/${DEBIAN_FB_RELEASE}.sources > /etc/apt/sources.list.d/paessler.sources \
|
||||
&& apt-get -y remove --purge curl \
|
||||
&& apt-get clean
|
||||
|
||||
@@ -44,10 +47,11 @@ RUN \
|
||||
apt-get update \
|
||||
&& apt-get -y install --no-install-recommends --no-install-suggests \
|
||||
prtgmpprobe \
|
||||
&& apt-get autoremove -y \
|
||||
&& apt-get clean
|
||||
|
||||
# add entrypoint script
|
||||
COPY --chown=root:root --chmod=0555 run-prtgmpprobe.sh /run-prtgmpprobe.sh
|
||||
COPY --chown=root:root --chmod=0555 run-prtgmpprobe.sh /entrypoint.sh
|
||||
|
||||
# specify volumes:
|
||||
# - /config : configuration directory for the prtgmpprobe, put your config.yml here.
|
||||
@@ -57,5 +61,5 @@ VOLUME [ "/config", "/opt/paessler/share/scripts" ]
|
||||
# set WORKDIR to a sane default
|
||||
WORKDIR /
|
||||
|
||||
ENTRYPOINT [ "/run-prtgmpprobe.sh" ]
|
||||
CMD [ "service-run" ]
|
||||
ENTRYPOINT [ "/entrypoint.sh" ]
|
||||
CMD [ "service-run" ]
|
||||
|
||||
@@ -13,7 +13,7 @@ _passthrough=0
|
||||
for _arg in "$@"
|
||||
do
|
||||
case "$_arg" in
|
||||
--help|example-config)
|
||||
-h|--help|example-config|-V|--version)
|
||||
_passthrough=1
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user