Operating system | Docker implementation |
---|---|
Linux | Default docker daemon for OS |
macOS | Docker for macOS |
macOS | Docker Toolbox |
Windows | Docker for Windows |
Windows | Docker Toolbox |
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
Feature: Replication Controller | |
As a user of Openshift PaaS | |
I want to query Pods managed by a replication controller | |
So I will get all of then running and with a right setup | |
Scenario: All pods are running | |
Given I am logged in Openshift as "developer" | |
And access to "oss-pre" namespace | |
When query the pods of "apigateway" replication controller | |
Then all pods managed by "apigateway" replication controller should have the status equals to "running" |
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
const defineSupportCode = require("cucumber").defineSupportCode; | |
let exec = require("child_process").exec; | |
let fs = require("fs"); | |
let openshift_password = process.env.OPENSHIFT_PASSWORD || "developer"; | |
let openshift_url = process.env.OPENSHIFT_URL || "https://127.0.0.1:8443"; | |
let build_id = process.env.BUILD_NUMBER || "1"; | |
let build_name = process.env.JOB_NAME || "cucumber"; |
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
git clone --mirror <URL to my OLD repo location> | |
cd <New directory where your OLD repo was cloned> | |
git remote set-url origin <URL to my NEW repo location> | |
git push -f origin |
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
import org.apache.nifi.processor.FlowFileFilter | |
import groovy.json.JsonSlurper | |
import groovy.json.JsonBuilder | |
//get first flow file | |
def ff0 = session.get() | |
if(!ff0)return | |
//get project_name | |
def project_name = ff0.getAttribute('project_name') |
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
script { | |
/* Custom data map for InfluxDB */ | |
def custom = [:] | |
custom['branch'] = env.GIT_BRANCH | |
custom['environment'] = target /*Target environment: DEV | PRE | PRO*/ | |
custom['part'] = 'jenkins' | |
custom['version'] = version /*Package version*/ | |
/* Push metrics to InfluxDB, including all default and the custom data*/ | |
step([$class: 'InfluxDbPublisher', customData: custom, target: 'devops-kpi']) |
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
# Shows the last commit stats | |
git show -1 --stat | |
#OR | |
git log -1 --stat | |
# Shows all commit stats | |
git log -1 --stat | |
# Shows for the last commmit just the stats per file | |
git log -1 --numstat --format='%H' |
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
[ | |
{ | |
"hash":"10ef79ff1720aa5179373871ee58b08674e5c420", | |
"author":"Fábio J. Moraes", | |
"email":"fabiojose@gmail.com", | |
"timestamp":"1510082724", | |
"changes":"4", | |
"insertions":"38", | |
"deletions":"15" | |
}, |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#include <string.h> | |
/** | |
* Definindo a porcentagem de changes para | |
* executação do laço que cria o nível do nó. | |
* Nesse caso, 50% de chance que o laço executará uma vez. | |
*/ |
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
mvn archetype:generate \ | |
-DarchetypeGroupId=org.apache.maven.archetypes \ | |
-DarchetypeArtifactId=maven-archetype-archetype \ | |
-DarchetypeVersion=1.3 |