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
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| namespace : oleg | |
| name: myapp-pod | |
| labels: | |
| app: myapp | |
| spec: | |
| containers: | |
| - name: myfirst-container |
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 | |
| export GOPATH=/codefresh/volume/.go | |
| export GOCACHE=/codefresh/volume/caches/go-build | |
| cf_export GOPATH=$GOPATH | |
| cf_export GOCACHE=$GOCACHE | |
| if [ ! -d "/codefresh/volume/.go" ]; then | |
| mkdir -p /codefresh/volume/.go | |
| echo "gopath folder has created , should not be created later" | |
| fi |
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 | |
| export GOPATH=/codefresh/volume/.go | |
| export GOCACHE=/codefresh/volume/caches/go-build | |
| cf_export GOPATH=$GOPATH | |
| cf_export GOCACHE=$GOCACHE | |
| if [ ! -d "/codefresh/volume/.go" ]; then | |
| mkdir -p /codefresh/volume/.go | |
| echo "gopath folder has created , should not be created later" | |
| fi |
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 |
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
| 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
| 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 { Duplex } = require('stream'); | |
| const kefir = require('kefir'); | |
| class MyWritable extends Duplex { | |
| constructor(options) { | |
| // Calls the stream.Writable() constructor | |
| super(options); | |
| this.buffer = []; | |
| // ... | |
| } |
NewerOlder