Prevent accidental merges of your code if a pull request has deployment changes
50K+
Terminator is a tool we use at inventid to prevent accidental merges of changes which have deployment impacts. It works by checking files of your Pull request. In case a PR has changed, added, or deleted a file which is listed it will set the PR to pending to indicate this has deployment consequences. This prevents accidental merges of such code
Almost the same as Consuela, so I jsut borrowed that one


It works really simple:
default.json.example to default.jsonapplication/json, and leave the secret empty. As the hook, only select Pull Request.node server.js
class terminator {
file { '/opt/terminator.json':
ensure => present,
source => 'puppet:///modules/terminator/config.json',
mode => '0600',
notify => Docker::Run['terminator']
}
docker::image { 'rogierslag/terminator:latest': }
docker::run { 'terminator':
image => 'rogierslag/terminator',
volumes => ['/opt/terminator.json:/opt/terminator/config/default.json'],
ports => ["${ipaddress_eth0}:8543:8543"]
}
firewall { '200 allow terminator':
dport => ['8543'],
proto => 'tcp',
action => 'accept'
}
}
sudo docker run -d -v /opt/terminator.json:/opt/terminator/config/default.json -p <IP>:8543:8543 rogierslag/terminator
Content type
Image
Digest
sha256:8e2e191b2…
Size
71.9 MB
Last updated
over 3 years ago
docker pull rogierslag/terminator