A minimal, secure docker image for probot/smee-client. Currently, the
amplifysecurity/smee-client
image size is under 93MB uncompressed.
Running the image with no parameters will print the smee-client help message:
$ docker run --rm amplifysecurity/smee-client
Usage: smee [options]
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 display help for command
Use the -u and -t parameters to connect to your Smee.io channel and forward
events to your local target.
$ docker run --rm amplifysecurity/smee-client -u $SMEE_URL -t http://localhost:8080/webhook
Forwarding https://smee.io/******** to http://localhost:8080/webhook
Connected https://smee.io/********
To use the image in docker compose, ensure that the smee service is linked to your receiving service.
This image also specifies a non-root user (UID 1000) and so can be run with no-new-privileges:true.
services:
smee:
image: amplifysecurity/smee-client
links:
- api:api
command: -u https://smee.io/******** -t http://api:8080/webhook
security_opt:
- no-new-privileges:true
api:
build:
context: .
ports:
- "8080:8080"This project was inspired by deltaprojects/smee-client-docker,
which we have used in the past. However, this project was seemingly no longer maintained, and included several high-severity
security issues. We plan to maintain this image by keeping up to date with upstream smee-client releases and security
patches.