forked from Narcissus/docker-multi-platform-probe
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b04fc33694 | ||
|
|
198cc27854 | ||
|
|
94519a402f | ||
|
|
546ee7af5e | ||
|
|
dfdc14a586 | ||
|
|
8bb3d9b08b |
30
.github/workflows/dockerhub-description.yml
vendored
30
.github/workflows/dockerhub-description.yml
vendored
@@ -1,30 +0,0 @@
|
|||||||
# https://github.com/peter-evans/dockerhub-description
|
|
||||||
|
|
||||||
name: Update Docker Hub Description
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
paths:
|
|
||||||
- README.md
|
|
||||||
- .github/workflows/dockerhub-description.yml
|
|
||||||
|
|
||||||
env:
|
|
||||||
IMAGE_NAME: paessler/multi-platform-probe
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
update-description:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Check out the repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Docker Hub Description
|
|
||||||
uses: peter-evans/dockerhub-description@v4
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKER_PUSH_TOKEN }}
|
|
||||||
repository: ${{ env.IMAGE_NAME }}
|
|
||||||
short-description: ${{ github.event.repository.description }}
|
|
||||||
enable-url-completion: true
|
|
||||||
@@ -91,8 +91,8 @@ You can also use the `/opt/paessler/share/scripts` volume for the scripts of the
|
|||||||
```sh
|
```sh
|
||||||
docker run -it \
|
docker run -it \
|
||||||
--network bridge \
|
--network bridge \
|
||||||
-v ./scripts:/opt/paessler/share/scripts:ro \
|
-v $(pwd)/scripts:/opt/paessler/share/scripts:ro \
|
||||||
-v ./config:/config \
|
-v $(pwd)/config:/config \
|
||||||
--cap-add NET_ADMIN \
|
--cap-add NET_ADMIN \
|
||||||
--cap-add NET_RAW \
|
--cap-add NET_RAW \
|
||||||
paessler/multi-platform-probe:latest
|
paessler/multi-platform-probe:latest
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ do
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
if [ $_passthrough -neq 0 ] ; then
|
if [ $_passthrough -ne 0 ] ; then
|
||||||
exec gosu paessler_mpprobe:paessler_mpprobe \
|
exec gosu paessler_mpprobe:paessler_mpprobe \
|
||||||
${PRTGMPPROBE__BINARY} \
|
${PRTGMPPROBE__BINARY} \
|
||||||
"$@"
|
"$@"
|
||||||
@@ -51,7 +51,7 @@ if [ ! -f "${PRTGMPPROBE__CONFIG_FILE}" ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Get/Generate a probe id from PRTGMPPROBE__ID_FILE or from PRTGMPPROBE__ID if not set in PRTGMPPROBE__CONFIG_FILE
|
# Get/Generate a probe id from PRTGMPPROBE__ID_FILE or from PRTGMPPROBE__ID if not set in PRTGMPPROBE__CONFIG_FILE
|
||||||
if [ ! grep -q "^id:" "${PRTGMPPROBE__CONFIG_FILE}" ] ; then
|
if ! grep -q "^id:" "${PRTGMPPROBE__CONFIG_FILE}" ; then
|
||||||
if [ -z "${PRTGMPPROBE__ID-}" ] ; then
|
if [ -z "${PRTGMPPROBE__ID-}" ] ; then
|
||||||
if [ ! -f "${PRTGMPPROBE__ID_FILE}" ] ; then
|
if [ ! -f "${PRTGMPPROBE__ID_FILE}" ] ; then
|
||||||
cat /proc/sys/kernel/random/uuid > ${PRTGMPPROBE__ID_FILE} || (
|
cat /proc/sys/kernel/random/uuid > ${PRTGMPPROBE__ID_FILE} || (
|
||||||
|
|||||||
Reference in New Issue
Block a user