Public | Automated Build

Last pushed: a few seconds ago
Dockerfile
FROM node:6-slim MAINTAINER Snyk Ltd # Install broker RUN npm install --global snyk-broker # Don't run as root WORKDIR /home/node USER node # Generate default accept filter RUN broker init github ###################################### # Custom Broker Client configuration # # Redefine in derived Dockerfile, # # or provide as runtime args `-e` # ###################################### # Your unique broker identifier, copied from snyk.io org settings page # ENV BROKER_TOKEN <broker-token> # Your personal access token to your github.com / GHE account # ENV GITHUB_TOKEN <github-token> # The host where your GitHub Enterprise is running, excluding scheme. ENV GITHUB=your.ghe.domain.com # The URL that the github API should be accessed at. ENV GITHUB_API $GITHUB/api/v3 # The port used by the broker client to accept webhooks # Default value is 7341 ENV PORT 7341 # The URL of your broker client (including scheme and port) # This will be used as the webhook payload URL coming in from GitHub # ENV BROKER_CLIENT_URL http://<broker.client.hostname>:$PORT ####################################### # Generic Broker Client configuration # ####################################### # The URL of the Snyk broker server ENV BROKER_SERVER_URL https://broker.snyk.io # The fine detail accept rules that allow Snyk to make API requests to your # github enterprise instance ENV ACCEPT accept.json # The path for the broker's internal healthcheck URL. Must start with a '/'. ENV BROKER_HEALTHCHECK_PATH /healthcheck EXPOSE $PORT HEALTHCHECK --interval=10s --timeout=1s \ CMD wget -q --spider http://localhost:${PORT}${BROKER_HEALTHCHECK_PATH} CMD ["broker", "--verbose"]
Source Repository