Sign inSign up

jchonig/webhook

By jchonig

Updated 6 days ago

A container running adnanh/webhook based on linuxserver.io s6 overlay based container.

Image
0

4.3K

jchonig/webhook repository overview

docker-webhook

A container running webhook based on linuxserver.io s6 overlay based container.

Image hosted at: ghcr.io/jchonig/webhook

The purpose is to catch webhook posts from a git server and run g10 to build puppet environments.

Usage

docker

docker create \
  --name=webook \
  -e TZ=Europe/London \
  --expose 9000 \
  --restart unless-stopped \
  ghcr.io/jchonig/webhook
docker-compose

Compatible with docker-compose v2 schemas.

---
version: "3"
services:
  monit:
    image: ghcr.io/jchonig/webhook
    container_name: webhook
    environment:
      TZ: Europe/London
      HOOK_ARGS: "-hooks /config/hooks.json -hotreload"
    volumes:
      - </path/to/appdata/config>:/config
    expose:
      - 9000
    restart: unless-stopped

Parameters

Ports (--expose)

VolumeFunction
9000Webook port

Environment Variables (-e)

EnvFunction
PUID=1000for UserID - see below for explanation
PGID=1000for GroupID - see below for explanation
TZ=UTCSpecify a timezone to use EG UTC
HOOK_ARGSArguments to the webhook command
HOOK_SECRETWebhook secret
HOOK_COMMANDCommand to run when using a git webhook

Volume Mappings (-v)

VolumeFunction
/configAll the config files reside here

Application Setup

  • Environment variables can also be passed in a file named env in the config directory. This file is sourced by the shell.
  • To use a git webhook:
    • Set HOOK_SECRET to the shared secret.
    • Set HOOK_COMMAND to the command to run when a webhook is received.
    • Set HOOK_ARGS to -template -hooks /etc/webhook/githook.yaml.tmpl.
    • The webhook will run in the /config directory. If other files are needed (such as a .ssh directory) put it there.

Tag summary

Content type

Image

Digest

sha256:fda0c3a23

Size

19.6 MB

Last updated

6 days ago

docker pull jchonig/webhook