Public | Automated Build

Last pushed: 20 days ago
Build failed: build hook failed! (1)
SourceRef
Dockerfile Location
Docker Tag
Build Created
UTC
master
/Dockerfile.runner
runner
3 months ago
2018-08-26T15:06:07.364Z
Build Code

benoxzftncgdsmwugr9bpjn

README

<p align="center">
<img src="http://danger.systems/images/js/peril-logo-hero-cachable@2x.png" width=250/>
</p>

per·il ˈperəl noun

  1. serious and immediate danger. "their family was in peril".

Peril is a tool that takes GitHub webhooks, and makes it easy to build one-off actions. It does this by having a
per-account settings JSON, that connects JavaScript files to events from webhooks. So, for example, you can write a rule
which runs when closing an issue in GitHub that looks for associated Jira tickets and resolves them. Peril provides no
implicit actions like that, it instead offers a JavaScript runtime environment optimised to this domain so you can make
actions to fit your needs.

Want to understand what the plan is? Consult the VISION.md


Peril uses Danger JS under the hood, Danger is a tool built for adding extra
tests inside Pull Requests that can work at a different level of abstraction to unit and integration tests. For example,
you could write tests which:

  • Enforce CHANGELOGs
  • Enforce links to Trello/JIRA in PR/MR bodies
  • Enforce using descriptive labels
  • Look out for common anti-patterns
  • Highlight interesting build artifacts
  • Give warnings when specific files change

... and any other rules specific to your team's culture and needs.


I want to run Peril for my org

OK, I made a quick tutorial for running a private Peril against your org.

I want to hack on Peril!

Ace, great, cool. So, it's a bit of a process. I'm not sure if this will get easier in time. It's a complex app. You can
find out more here

How does Peril work?

<img src="https://github.com/danger/peril/raw/master/docs/images/peril-setup.png">

There are some key files where the magic happens:

This is an reasonably tested project, there's a lot in places where the code isn't going to change much now so they're
slowly getting covered.

Docs

Dockerfile
FROM node:9.11-slim MAINTAINER Orta Therox ARG BRANCH="master" ARG COMMIT="" LABEL branch=${BRANCH} LABEL commit=${COMMIT} RUN echo "BRANCH: ${BRANCH}" \ && echo "COMMIT: ${COMMIT}" \ ADD . /app WORKDIR /app # Now set it as an env var ENV COMMIT_SHA=${COMMIT} # This will also trigger the build process RUN yarn install # Get the additional node modules installed RUN node out/scripts/hyper/install-hyper-deps.js
Logs

Building in Docker Cloud's infrastructure... Cloning into '.'... Executing build hook... PUSH=true HOSTNAME=b490de8c629e SHLVL=0 HOME=/root SIGNED_URLS={"post": {"debug": {"url": "https://docker-highland-p1-debug-logs.s3.amazonaws.com/", "fields": {"policy": "eyJjb25kaXRpb25zIjogW1siY29udGVudC1sZW5ndGgtcmFuZ2UiLCAwLCA2NzEwODg2NF0sIHsiYnVja2V0IjogImRvY2tlci1oaWdobGFuZC1wMS1kZWJ1Zy1sb2dzIn0sIHsia2V5IjogImJlbm94emZ0bmNnZHNtd3VncjlicGpuLmxvZyJ9XSwgImV4cGlyYXRpb24iOiAiMjAxOC0wOC0yN1QxNTowNzozOVoifQ==", "AWSAccessKeyId": "AKIAIA35NOZ7FSTHT73Q", "key": "benoxzftncgdsmwugr9bpjn.log", "signature": "6Cu+xWtbgTNdAF97Hsy1GbQHqqA="}}, "metrics": {"url": "https://docker-highland-p1-metrics-logs.s3.amazonaws.com/", "fields": {"policy": "eyJjb25kaXRpb25zIjogW1siY29udGVudC1sZW5ndGgtcmFuZ2UiLCAwLCA2NzEwODg2NF0sIHsiYnVja2V0IjogImRvY2tlci1oaWdobGFuZC1wMS1tZXRyaWNzLWxvZ3MifSwgeyJrZXkiOiAiYmVub3h6ZnRuY2dkc213dWdyOWJwam4ubG9nIn1dLCAiZXhwaXJhdGlvbiI6ICIyMDE4LTA4LTI3VDE1OjA3OjM5WiJ9", "AWSAccessKeyId": "AKIAIA35NOZ7FSTHT73Q", "key": "benoxzftncgdsmwugr9bpjn.log", "signature": "qQli6VQS7rpjChhwmeHnLbwNl70="}}, "readme": {"url": "https://docker-highland-p1-readmes.s3.amazonaws.com/", "fields": {"policy": "eyJjb25kaXRpb25zIjogW1siY29udGVudC1sZW5ndGgtcmFuZ2UiLCAwLCA2NzEwODg2NF0sIHsiYnVja2V0IjogImRvY2tlci1oaWdobGFuZC1wMS1yZWFkbWVzIn0sIHsia2V5IjogImJlbm94emZ0bmNnZHNtd3VncjlicGpuLm1kIn1dLCAiZXhwaXJhdGlvbiI6ICIyMDE4LTA4LTI3VDE1OjA3OjM5WiJ9", "AWSAccessKeyId": "AKIAIA35NOZ7FSTHT73Q", "key": "benoxzftncgdsmwugr9bpjn.md", "signature": "4UU+v/cVwwCwmpFDsc6mgBMfnpA="}}, "dockerfile": {"url": "https://docker-highland-p1-dockerfiles.s3.amazonaws.com/", "fields": {"policy": "eyJjb25kaXRpb25zIjogW1siY29udGVudC1sZW5ndGgtcmFuZ2UiLCAwLCA2NzEwODg2NF0sIHsiYnVja2V0IjogImRvY2tlci1oaWdobGFuZC1wMS1kb2NrZXJmaWxlcyJ9LCB7ImtleSI6ICJiZW5veHpmdG5jZ2RzbXd1Z3I5YnBqbi5Eb2NrZXJmaWxlIn1dLCAiZXhwaXJhdGlvbiI6ICIyMDE4LTA4LTI3VDE1OjA3OjM5WiJ9", "AWSAccessKeyId": "AKIAIA35NOZ7FSTHT73Q", "key": "benoxzftncgdsmwugr9bpjn.Dockerfile", "signature": "euywrNQvt+1ZDaN7wTF7Hwhr8X8="}}, "logs": {"url": "https://s3.amazonaws.com/docker-highland-p1-build_logs", "fields": {"policy": "eyJjb25kaXRpb25zIjogW1siY29udGVudC1sZW5ndGgtcmFuZ2UiLCAwLCA2NzEwODg2NF0sIHsiYnVja2V0IjogImRvY2tlci1oaWdobGFuZC1wMS1idWlsZF9sb2dzIn0sIHsia2V5IjogImJlbm94emZ0bmNnZHNtd3VncjlicGpuLmxvZyJ9XSwgImV4cGlyYXRpb24iOiAiMjAxOC0wOC0yN1QxNTowNzozOVoifQ==", "AWSAccessKeyId": "AKIAIA35NOZ7FSTHT73Q", "key": "benoxzftncgdsmwugr9bpjn.log", "signature": "us909ygzJFyfB7gG3ZIvlWnBTmQ="}}}, "get": {}} PYTHONUNBUFFERED=1 BUILD_CODE=benoxzftncgdsmwugr9bpjn MAX_LOG_SIZE=67108864 DOCKER_TAG=runner CACHE_TAG= GIT_SHA1=b34f08014eea80f421b2bdd429ca51819084c25f GIT_MSG=Build command faff SOURCE_BRANCH=master DOCKERCFG={"https://index.docker.io/v1/": {"email": "highland@docker.com", "auth": "ZGFuZ2Vyc3lzdGVtczo4ZDUwY2UxNC1jOGM0LTRmMDEtYTUxZi0wN2YzOTk2MzE1ZTY="}} PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin DOCKER_REPO=index.docker.io/dangersystems/peril COMMIT_MSG=Build command faff BUILD_PATH=/Dockerfile.runner DEBIAN_FRONTEND=noninteractive SOURCE_TYPE=git DOCKERFILE_PATH= DOCKER_HOST=unix:///var/run/docker.sock PWD=/src/benoxzftncgdsmwugr9bpjn IMAGE_NAME=index.docker.io/dangersystems/peril:runner PUSH=true HOSTNAME=b490de8c629e SHLVL=0 HOME=/root SIGNED_URLS={"post": {"debug": {"url": "https://docker-highland-p1-debug-logs.s3.amazonaws.com/", "fields": {"policy": "eyJjb25kaXRpb25zIjogW1siY29udGVudC1sZW5ndGgtcmFuZ2UiLCAwLCA2NzEwODg2NF0sIHsiYnVja2V0IjogImRvY2tlci1oaWdobGFuZC1wMS1kZWJ1Zy1sb2dzIn0sIHsia2V5IjogImJlbm94emZ0bmNnZHNtd3VncjlicGpuLmxvZyJ9XSwgImV4cGlyYXRpb24iOiAiMjAxOC0wOC0yN1QxNTowNzozOVoifQ==", "AWSAccessKeyId": "AKIAIA35NOZ7FSTHT73Q", "key": "benoxzftncgdsmwugr9bpjn.log", "signature": "6Cu+xWtbgTNdAF97Hsy1GbQHqqA="}}, "metrics": {"url": "https://docker-highland-p1-metrics-logs.s3.amazonaws.com/", "fields": {"policy": "eyJjb25kaXRpb25zIjogW1siY29udGVudC1sZW5ndGgtcmFuZ2UiLCAwLCA2NzEwODg2NF0sIHsiYnVja2V0IjogImRvY2tlci1oaWdobGFuZC1wMS1tZXRyaWNzLWxvZ3MifSwgeyJrZXkiOiAiYmVub3h6ZnRuY2dkc213dWdyOWJwam4ubG9nIn1dLCAiZXhwaXJhdGlvbiI6ICIyMDE4LTA4LTI3VDE1OjA3OjM5WiJ9", "AWSAccessKeyId": "AKIAIA35NOZ7FSTHT73Q", "key": "benoxzftncgdsmwugr9bpjn.log", "signature": "qQli6VQS7rpjChhwmeHnLbwNl70="}}, "readme": {"url": "https://docker-highland-p1-readmes.s3.amazonaws.com/", "fields": {"policy": "eyJjb25kaXRpb25zIjogW1siY29udGVudC1sZW5ndGgtcmFuZ2UiLCAwLCA2NzEwODg2NF0sIHsiYnVja2V0IjogImRvY2tlci1oaWdobGFuZC1wMS1yZWFkbWVzIn0sIHsia2V5IjogImJlbm94emZ0bmNnZHNtd3VncjlicGpuLm1kIn1dLCAiZXhwaXJhdGlvbiI6ICIyMDE4LTA4LTI3VDE1OjA3OjM5WiJ9", "AWSAccessKeyId": "AKIAIA35NOZ7FSTHT73Q", "key": "benoxzftncgdsmwugr9bpjn.md", "signature": "4UU+v/cVwwCwmpFDsc6mgBMfnpA="}}, "dockerfile": {"url": "https://docker-highland-p1-dockerfiles.s3.amazonaws.com/", "fields": {"policy": "eyJjb25kaXRpb25zIjogW1siY29udGVudC1sZW5ndGgtcmFuZ2UiLCAwLCA2NzEwODg2NF0sIHsiYnVja2V0IjogImRvY2tlci1oaWdobGFuZC1wMS1kb2NrZXJmaWxlcyJ9LCB7ImtleSI6ICJiZW5veHpmdG5jZ2RzbXd1Z3I5YnBqbi5Eb2NrZXJmaWxlIn1dLCAiZXhwaXJhdGlvbiI6ICIyMDE4LTA4LTI3VDE1OjA3OjM5WiJ9", "AWSAccessKeyId": "AKIAIA35NOZ7FSTHT73Q", "key": "benoxzftncgdsmwugr9bpjn.Dockerfile", "signature": "euywrNQvt+1ZDaN7wTF7Hwhr8X8="}}, "logs": {"url": "https://s3.amazonaws.com/docker-highland-p1-build_logs", "fields": {"policy": "eyJjb25kaXRpb25zIjogW1siY29udGVudC1sZW5ndGgtcmFuZ2UiLCAwLCA2NzEwODg2NF0sIHsiYnVja2V0IjogImRvY2tlci1oaWdobGFuZC1wMS1idWlsZF9sb2dzIn0sIHsia2V5IjogImJlbm94emZ0bmNnZHNtd3VncjlicGpuLmxvZyJ9XSwgImV4cGlyYXRpb24iOiAiMjAxOC0wOC0yN1QxNTowNzozOVoifQ==", "AWSAccessKeyId": "AKIAIA35NOZ7FSTHT73Q", "key": "benoxzftncgdsmwugr9bpjn.log", "signature": "us909ygzJFyfB7gG3ZIvlWnBTmQ="}}}, "get": {}} PYTHONUNBUFFERED=1 BUILD_CODE=benoxzftncgdsmwugr9bpjn MAX_LOG_SIZE=67108864 DOCKER_TAG=runner CACHE_TAG= GIT_SHA1=b34f08014eea80f421b2bdd429ca51819084c25f GIT_MSG=Build command faff SOURCE_BRANCH=master DOCKERCFG={"https://index.docker.io/v1/": {"email": "highland@docker.com", "auth": "ZGFuZ2Vyc3lzdGVtczo4ZDUwY2UxNC1jOGM0LTRmMDEtYTUxZi0wN2YzOTk2MzE1ZTY="}} PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin DOCKER_REPO=index.docker.io/dangersystems/peril COMMIT_MSG=Build command faff BUILD_PATH=/Dockerfile.runner DEBIAN_FRONTEND=noninteractive SOURCE_TYPE=git DOCKERFILE_PATH= DOCKER_HOST=unix:///var/run/docker.sock PWD=/src/benoxzftncgdsmwugr9bpjn IMAGE_NAME=index.docker.io/dangersystems/peril:runner DOCKER_TAG: runner SOURCE_BRANCH: master SOURCE_COMMIT: GIT_REV_PARSE: b34f080 COMMIT_MSG: Build command faff DOCKER_REPO: index.docker.io/dangersystems/peril DOCKER_TAG: runner IMAGE_NAME: index.docker.io/dangersystems/peril:runner PATH: "docker build" requires exactly 1 argument(s). See 'docker build --help'. Usage: docker build [OPTIONS] PATH | URL | - Build an image from a Dockerfile build hook failed! (1)