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
| FROM debian:wheezy | |
| RUN useradd --create-home user | |
| ENV SKYPE_URL http://download.skype.com/linux/skype-debian_4.3.0.37-1_i386.deb | |
| RUN dpkg --add-architecture i386 \ | |
| && apt-get update && apt-get install -y wget && rm -rf /var/lib/apt/lists/* \ | |
| && wget "${SKYPE_URL}" -O skype.deb \ | |
| && apt-get purge -y --auto-remove wget \ |
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
| # Example Dockerfile | |
| FROM hello-world |
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
| var Q = require('q'); | |
| var p = Q(2).then((a)=>{return 15}).finally(function (a){ | |
| console.log('finally:' + JSON.stringify(arguments)); | |
| }) | |
| .then((afterFinally)=>{console.log(`after finally ${JSON.stringify(afterFinally)}`)}) | |
| .catch((e)=>{console.log(`exception ${e}`)}); | |
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 { Duplex } = require('stream'); | |
| const kefir = require('kefir'); | |
| class MyWritable extends Duplex { | |
| constructor(options) { | |
| // Calls the stream.Writable() constructor | |
| super(options); | |
| this.buffer = []; | |
| // ... | |
| } |
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 assert = require('assert'); | |
| const _ = require('lodash'); | |
| class TopCommand { | |
| constructor(command){ | |
| this.command = command; | |
| this.subCommands = []; | |
| } | |
| subCommand(command){ |
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 assert = require('assert'); | |
| const _ = require('lodash'); | |
| const run = require('./run'); | |
| run.subCommand({ | |
| command: "pipeline", | |
| description : "run pipeline", | |
| handler : ()=>{ | |
| console.log('run pipeline ->'); |
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
| #!/bin/bash | |
| # Add user to k8s 1.6 using service account, no RBAC (must create RBAC after this script) | |
| if [[ -z “$1” ]] || [[ -z “$2” ]];then | |
| echo “usage: $0 <username> <environment (stg|prod)>” | |
| exit 1 | |
| fi | |
| USER=$1 | |
| environment=$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
| #!/bin/bash | |
| # Add user to k8s 1.6 using service account, no RBAC (must create RBAC after this script) | |
| if [[ -z “$1” ]] || [[ -z “$2” ]];then | |
| echo “usage: $0 <username> <environment (stg|prod)>” | |
| exit 1 | |
| fi | |
| USER=$1 | |
| environment=$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
| #!/bin/bash | |
| # Add user to k8s 1.6 using service account, no RBAC (must create RBAC after this script) | |
| if [[ -z “$1” ]] || [[ -z “$2” ]];then | |
| echo “usage: $0 <username> <environment (stg|prod)>” | |
| exit 1 | |
| fi | |
| USER=$1 | |
| environment=$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
| export PACKAGE=$(helm package $CF_VOLUME_PATH /cf-ui/cfui --version $CHRAT_FULL_SEMVER --destination $CF_VOLUME_PATH | cut -d " " -f 8 ) | |
| curl --user $BASIC_AUTH_USER:$BASIC_AUTH_PASS --fail --data-binary "@$PACKAGE" $HELM_REPO_FULL_PATH |
OlderNewer