docker pull gcr.io/google_containers/kube-apiserver-amd64:v1.5.0
docker pull gcr.io/google_containers/kube-controller-manager-amd64:v1.5.0
docker pull gcr.io/google_containers/kube-proxy-amd64:v1.5.0
docker pull gcr.io/google_containers/kube-scheduler-amd64:v1.5.0
docker pull weaveworks/weave-npc:1.8.2
docker pull weaveworks/weave-kube:1.8.2
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
# Pattern | |
# <docker-machine name>=<host name>,<host name>,... | |
registry=docker-registry |
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
#!/usr/bin/env bash | |
if [ "$(dconf read /org/gnome/settings-daemon/peripherals/touchpad/touchpad-enabled)" == 'true' ]; then | |
echo "Disabling touchpad" | |
dconf write /org/gnome/settings-daemon/peripherals/touchpad/touchpad-enabled false; | |
else | |
echo "Enabling touchpad" | |
dconf write /org/gnome/settings-daemon/peripherals/touchpad/touchpad-enabled true; | |
fi |
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("DOCKER"){ | |
def url1 = 'http://sdal0009:8081/nexus/content/repositories/BNPPF_Local_Applications_Snapshots/com/bnppf/adm/TF01-iOS/maven-metadata.xml' | |
def url2 = 'http://sdal0009.be.fortis.bank:8081/nexus/content/repositories/BNPPF_Local_Applications_Snapshots/com/bnppf/adm/TF01-Android/2.0.15-SNAPSHOT/maven-metadata.xml' | |
parseXmlContent(url1) { mavenXml -> | |
snapshotVersion = mavenXml.versioning.latest.text() | |
} | |
parseXmlContent(url2){ mavenXml -> | |
buildNumber = mavenXml.versioning.snapshot.timestamp.text() |
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
siteBootstrap() { | |
echo "Create site.yml" | |
touch site.yml | |
echo "---\n# main plays\n- include: all_roles.yml" > site.yml | |
echo "Create all_roles.yml" | |
touch all_roles.yml | |
echo "---\n- hosts: default\n any_errors_fatal: true\n roles:\n - dummy" > all_roles.yml | |
} |
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
mvn7 org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -v '\[INFO\]' |
curl -vL -H "Authorization: Basic ***====" https://936991986338.dkr.ecr.us-east-1.amazonaws.com/v2/clairctl/blobs/sha256:ff3d52d8f55fb0b74ea0a24134f75efeff780c4e1f407073def2ae9c9b900868
> GET /v2/clairctl/blobs/sha256:ff3d52d8f55fb0b74ea0a24134f75efeff780c4e1f407073def2ae9c9b900868 HTTP/1.1
> Host: 936991986338.dkr.ecr.us-east-1.amazonaws.com
> Accept: */*
> Authorization: Basic ***====
>
< HTTP/1.1 307 Temporary Redirect
< Docker-Distribution-Api-Version: registry/2.0
< Location: https://prod-us-east-1-starport-layer-bucket.s3.amazonaws.com/da26-936991986338-2cae2a0f-ebda-934c-8b81-2e0176d184ee/a9aba33a-151c-420c-ac2f-244bf81a6e8c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20170530T054857Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Credential=AKIAI7KZ4NTCV2EWBNUQ%2F20170530%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=8d9aa58dc857a942ac09b3e9f4e35ffabfbdaff23d89fbe7b6227200fde0e138
I hereby claim:
- I am jgsqware on github.
- I am jgsqware (https://keybase.io/jgsqware) on keybase.
- I have a public key ASC56qEVeN46tjSG_kBAqkM3QUfj6N7FmpM3OIh6cHrTAAo
To claim this, I am signing this object:
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: Pod | |
metadata: | |
name: docker-bench | |
labels: | |
app: docker-bench | |
spec: | |
hostPID: true | |
nodeSelector: | |
role: master |
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
func askForConfirmation(s string) bool { | |
reader := bufio.NewReader(os.Stdin) | |
for { | |
fmt.Printf("%s [y/n]: ", s) | |
response, err := reader.ReadString('\n') | |
if err != nil { | |
log.Fatal(err) | |
} |
OlderNewer