Coder Social home page Coder Social logo

docker-webhook's Introduction

Webhook Dockerized

This file is customised by repo qrzeller

We simply added git package to execute git pull from webhook. The rest is untouched and docker image dependent from initial repo.

Running webhook in Docker

The simplest usage of almir/webhook image is for one to host the hooks JSON file on their machine and mount the directory in which those are kept as a volume to the Docker container:

docker run -d -p 9000:9000 -v /dir/to/hooks/on/host:/etc/webhook --name=webhook \
  almir/webhook -verbose -hooks=/etc/webhook/hooks.json -hotreload

Another method of using this Docker image is to create a simple Dockerfile:

FROM almir/webhook
COPY hooks.json.example /etc/webhook/hooks.json

This Dockerfile and hooks.json.example files should be placed inside the same directory. After that run docker build -t my-webhook-image . and then start your container:

docker run -d -p 9000:9000 --name=webhook my-webhook-image -verbose -hooks=/etc/webhook/hooks.json -hotreload

Additionally, one can specify the parameters to be passed to webhook in Dockerfile simply by adding one more line to the previous example:

FROM almir/webhook
COPY hooks.json.example /etc/webhook/hooks.json
CMD ["-verbose", "-hooks=/etc/webhook/hooks.json", "-hotreload"]

Now, after building your Docker image with docker build -t my-webhook-image ., you can start your container by running just:

docker run -d -p 9000:9000 --name=webhook my-webhook-image

docker-webhook's People

Contributors

almir avatar qrzeller avatar stefancrain avatar bkmeneguello avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.