This file contains 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
version: '2' | |
services: | |
web-app: | |
build: ./app/ | |
image: dockerguatemala/giphy-nodejs | |
restart: unless-stopped | |
volumes: | |
- "./app/:/app" | |
ports: | |
- "127.0.0.1:3000:3000" |
This file contains 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
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" |
This file contains 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
/* | |
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) { |
This file contains 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
def jobname = "the-job-name" | |
def buildnum = 85 | |
def job = Jenkins.instance.getItemByFullName(jobname) | |
for (build in job.builds) { | |
if (buildnum == build.getNumber().toInteger()){ | |
if (build.isBuilding()){ | |
build.doStop(); | |
build.doKill(); | |
This file contains 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
#!/bin/bash | |
### BEGIN INIT INFO | |
# Provides: generic | |
# Required-Start: a | |
# Required-Stop: a | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: generic service | |
### END INIT INFO |
This file contains 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
# set Clock freq (Hz), possible values: Range 0-2, being 0 = step and -1 = infinite or as fast as you can. | |
clock: 1.2 | |
# turn on visualization and specify which things to print | |
visualization: | |
RAM: true | |
Registers: true | |
Clock: false | |
ALU: true |
This file contains 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
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// choose either `'stable'` for receiving highly polished, | |
// or `'canary'` for less polished but more frequent updates | |
updateChannel: 'stable', |
This file contains 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
#!/bin/sh | |
# requires latest version | |
# apk add --update net-tools | |
if [ -z $PROTOCOL ]; then | |
ps aux|grep logspout|grep -q "udp://" && { | |
PROTOCOL=u | |
ps aux|grep logspout|grep -q "tcp://" && { | |
PROTOCOL=t${PROTOCOL} | |
} || { |
This file contains 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
version: '3.7' | |
services: | |
redis: | |
image: redis:alpine | |
deploy: | |
mode: global | |
restart_policy: | |
condition: on-failure | |
ports: | |
- 6379:6379 |
This file contains 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
version: "3.5" | |
services: | |
web: | |
image: ${IMAGE_NAME:-mcano/docker:intro} | |
environment: | |
- REDIS_HOST=redis | |
- FOO=${FOO:-BAR} | |
ports: | |
- target: 5000 | |
published: 5000 |
OlderNewer