๐
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: install app | |
win_package: | |
path: "{{ exe_find.files[0].path }}" | |
arguments: "-q -overwrite -varfile {{ app.install_varfile_path }}" | |
product_id: {{ app.product_id }} | |
state: present | |
creates_path: Z:\app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: install app | |
hosts: dev | |
gather_facts: no | |
vars_files: | |
- secret.yml | |
roles: | |
- aws | |
- app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
netsh advfirewall firewall add rule name="App Port 8080" dir=in action=allow protocol=TCP localport=8080 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: install app | |
hosts: dev | |
gather_facts: no | |
vars: | |
ip: "{{ hostvars.localhost.ec2.tagged_instances[0].private_ip }}" | |
vars_files: | |
- secret.yml | |
roles: | |
- aws | |
- app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ yarn global add generator-hubot | |
$ cd bot | |
$ yo hubot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"dependencies": { | |
"coffee-script": "^1.12.7", | |
"hubot": "^2.19.0", | |
"hubot-help": "^0.2.2", | |
"hubot-hipchat": "^2.12.0-6", | |
"hubot-scripts": "^2.17.2" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
"hubot-help" | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const yargs = require('yargs'); | |
const spawn = require('child_process').spawn; | |
module.exports = (robot) => { | |
robot.respond(/deploy (.*)/i, (res) => { | |
let parser = yargs.command('deploy <build_num>', 'deploy a version', (yargs) => { | |
yargs | |
.positional('build_num', { | |
describe: 'build number', | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RUN groupadd --gid 1000 node \ | |
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node | |
# gpg keys listed at https://github.com/nodejs/node#release-team | |
RUN set -ex \ | |
&& for key in \ | |
94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \ | |
FD3A5288F042B6850C66B31F09FE44734EB7990E \ | |
71DCFD284A79C3B38668286BC97EC7A07EDE3FC1 \ | |
DD8F2338BAE7501E3DD5AC78C273792F7D83545D \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function findTag(tags, key) { | |
for (var i = tags.length - 1; i >= 0; i--) { | |
if (tags[i].Key === key) { | |
return tags[i].Value; | |
} | |
} | |
} | |
exports.handler = (event, context, callback) => { | |
var AWS = require('aws-sdk'); |