Skip to content

Instantly share code, notes, and snippets.

View jmarcos-cano's full-sized avatar
🏠
Working from home

Marcos Cano jmarcos-cano

🏠
Working from home
View GitHub Profile
@jmarcos-cano
jmarcos-cano / runon-each-node.groovy
Last active December 7, 2019 19:23
Jenkinsfile to run a command on each node
/*
Created by: Marcos Cano
Team: DevOps
Date: 7/7/17
*/
stage("Run cmd on each node") {
def node_names=nodeNames()
for (String item:node_names) {
@jmarcos-cano
jmarcos-cano / Jenkinsfile
Created June 9, 2017 05:27
Jenkins file for Doke
node {
wrap([$class: 'AnsiColorBuildWrapper', 'colorMapName': 'gnome-terminal']) {
stage ("Clone"){
git '[email protected]:jmarcos-cano/go-demo.git'
}
stage ("Clean" ){
sh "make clean"
}
stage ("Unit Tests & Build Build Docker image"){
sh "make docker"
version: '2'
services:
web-app:
build: ./app/
image: dockerguatemala/giphy-nodejs
restart: unless-stopped
volumes:
- "./app/:/app"
ports:
- "127.0.0.1:3000:3000"