Sign inSign up

oveits/smee-client

By oveits

Updated over 6 years ago

Image
0

10K+

oveits/smee-client repository overview

smee-client dockerized

This is a fork of https://github.com/deltaprojects/smee-client-docker, but it implements a fix for Bitbucket (see https://github.com/probot/smee-client/pull/122/commits/f2f8e9fa57a36d816fa27f74aaaeb18bc3006b46#diff-168726dbe96b3ce427e7fedce31bb0bc)

Original content:

This is a docker container with smee-client on node:lts-alpine image (i.e. Alpine Linux with NodeJS LTS release).

Usage

Get smee-client arguments:

$ docker run --rm deltaprojects/smee-client

Options:
  -v, --version          output the version number
  -u, --url <url>        URL of the webhook proxy service. Default: https://smee.io/new
  -t, --target <target>  Full URL (including protocol and path) of the target service the events will forwarded to. Default: http://127.0.0.1:PORT/PATH
  -p, --port <n>         Local HTTP server port (default: 3000)
  -P, --path <path>      URL path to post proxied requests to` (default: "/")
  -h, --help             output usage information
example

Setup smee-client

docker run -d --name smee-client deltaprojects/smee-client -u https://smee.io/z3x5DliUZN7GlQqI -t https://MY-INTERNAL-JENKINS:8443/github-webhook/

Next, configure your GitHub/GitLab/BitBucket webhook, for GitHub:

  • Paste in the smee.io Webhook Proxy URL, you copied from the step above
  • Choose application/json as the content type
  • Tell it to send the events you want
  • Press Add webhook
Jenkins example

Aslo setup your Jenkins to work with GitHub or other hosted git service. For GitHub

  • Setup Jenkins GitHub plugin (pro tip: Set the Specify another hook URL for GitHub configuration to the smee.io Webhook Proxy URL)
  • Setup your project/pipeline/whatever...
  • Enable the GitHub hook trigger for GITScm polling in your project/pipeline..

Tag summary

Content type

Image

Digest

Size

28.5 MB

Last updated

over 6 years ago

docker pull oveits/smee-client