Skip to content

Instantly share code, notes, and snippets.

View oliverhausler's full-sized avatar

Oliver Hausler oliverhausler

View GitHub Profile
@seahyc
seahyc / rancher-slack.js
Last active May 17, 2019 20:40
Listens to Rancher websocket events, and notify through slack webhook when application is upgraded
/*
Setup:
npm install ws
Usage:
Create an API key in Rancher and start up with:
node socket.js address.of.rancher:8080 access_key secret_key project_id
*/
var WebSocket = require('ws');