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
{ | |
"_id": "apsMyserviceParametersDemo_id", | |
"catalog": { | |
"bindable": true, | |
"name": "apsMyserviceParametersDemo", | |
"tags": [ | |
"big_data", | |
"ibm_created" | |
], | |
"version": "", |
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
apiVersion: v1 | |
kind: PersistentVolume | |
metadata: | |
name: local-volume-test | |
labels: | |
type: local | |
spec: | |
capacity: | |
storage: 5Gi | |
accessModes: |
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
all: init build test lint | |
.PHONY: format coverage | |
# If DOCKER is defined then make it the full docker cmd line we want to use | |
ifneq ($(origin DOCKER),undefined) | |
DOCKER=docker run --rm -ti \ | |
-v $(PWD):/go/src/github.com/kubernetes-incubator/service-catalog \ | |
scbuildimage | |
endif |
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
package main | |
import ( | |
"bytes" | |
"encoding/json" | |
"flag" | |
"fmt" | |
"io" | |
"net" | |
"os" |
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
(docker swarm leave --force;docker rm -f node1;docker service rm $(docker service ls -q))&>/dev/null | |
bold=$(tput bold) | |
normal=$(tput sgr0) | |
function doit() { | |
set +e | |
echo -n $bold"$ " | |
if [[ "$SKIP" == "" ]]; then read -s -n 1 ; fi | |
echo -n $*$normal" " |
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
(docker rm -f manager node1 node2;docker network rm mynet;rm -f cmds)&>/dev/null | |
bold=$(tput bold) | |
normal=$(tput sgr0) | |
function doit() { | |
set +e | |
echo -n $bold"$ " | |
if [[ "$SKIP" == "" ]]; then read -s -n 1 ; fi | |
echo -n $*$normal" " |
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
(docker rm -f manager node1 node2;docker network rm mynet;rm -f cmds)&>/dev/null | |
bold=$(tput bold) | |
normal=$(tput sgr0) | |
function doit() { | |
set +e | |
echo -n $bold"$ " | |
if [[ "$SKIP" == "" ]]; then read -s -n 1 ; fi | |
echo -n $*$normal" " |
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
$ docker -H 172.20.0.2:2375 service create --name foo --network swarmnet ibmdojo/mini | |
25w9xluukxsnxo9ie38s8a4ho | |
$ docker -H 172.20.0.2:2375 service create --name foo1 ibmdojo/mini | |
65jv5y7ai4kx3qdf0p3qlzexv | |
$ docker -H 172.20.0.2:2375 service inspect foo foo1 | |
[ | |
{ | |
"ID": "25w9xluukxsnxo9ie38s8a4ho", |
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 | |
( | |
# Clean-up from previous run | |
kubectl delete rc app | |
kubectl delete secret creds | |
kubectl delete ServiceBroker mongodb-sb | |
kubectl delete ServiceInstance mongodb-instance1 | |
kubectl delete ServiceBinding mongodb-instance1-binding1 | |
kubectl delete thirdpartyresource service-broker.cncf.org |