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
[mangirdas@unknown docker-minimal-nginx]$ oc version; docker version; cat /etc/redhat-release | |
oc v1.5.0-alpha.1+71d3fa9 | |
kubernetes v1.4.0+776c994 | |
features: Basic-Auth GSSAPI Kerberos SPNEGO | |
Client: | |
Version: 1.12.6 | |
API version: 1.24 | |
Package version: docker-common-1.12.6-3.git51ef5a8.fc25.x86_64 | |
Go version: go1.7.4 | |
Git commit: 51ef5a8/1.12.6 |
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
oc new-project skydive | |
oc annotate namespace skydive openshift.io/node-selector=' ' | |
oc adm policy add-scc-to-user privileged system:serviceaccount:skydive:default | |
oc create -f https://raw.githubusercontent.com/garethahealy/skydive/master/contrib/openshift/skydive-template.yaml | |
oc new-app --template=skydive |
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 | |
yum install -y skopeo | |
if [ ! -f /usr/local/bin/oc ]; then | |
wget https://github.com/openshift/origin/releases/download/v1.4.1/openshift-origin-client-tools-v1.4.1-3f9807a-linux-64bit.tar.gz -O /tmp/oc.tar.gz | |
cd /tmp; tar -zxvf /tmp/oc.tar.gz; cp openshift-origin-client-tools-*/oc /usr/local/bin/ | |
fi | |
oc login -u admin -p admin docker-registry-default.apps.192.168.2.168.xip.io:8443 --insecure-skip-tls-verify=true | |
TOKEN=$(oc whoami -t) |
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
# A headless service to create DNS records | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
annotations: | |
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true" | |
name: redis | |
labels: | |
app: redis | |
spec: |
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: BuildConfig | |
metadata: | |
annotations: | |
openshift.io/generated-by: OpenShiftNewBuild | |
creationTimestamp: null | |
labels: | |
build: jboss-webserver30-tomcat7-jdk7-openshift | |
name: jboss-webserver30-tomcat7-jdk7-openshift | |
spec: |
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
... | |
output: | |
to: | |
kind: ImageStreamTag | |
name: jboss-webserver30-tomcat7-jdk7-openshift:latest | |
postCommit: {} | |
resources: {} | |
runPolicy: Serial | |
source: | |
dockerfile: "FROM registry.access.redhat.com/jboss-webserver-3/webserver30-tomcat7-openshift\nUSER |
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
#sidecar container, which provides agent binaries | |
- image: mangirdas/newrelic-sidecar:latest | |
name: newrelic | |
volumeMounts: | |
#shared volume space betwean 2 containers. | |
- mountPath: /newrelic | |
name: newrelic-volume | |
#mounting agent configuration to the sidecar | |
- mountPath: /newrelic-config | |
name: newrelic-config |
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/sh | |
# Fail on a single failed command | |
set -eo pipefail | |
# ========================================================== | |
# Generic run script for running arbitrary Java applications | |
# | |
# Source and Documentation can be found | |
# at https://github.com/fabric8io/run-java-sh |
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 HTTPDownload(uri string) ([]byte, error) { | |
fmt.Printf("HTTPDownload From: %s.\n", uri) | |
res, err := http.Get(uri) | |
if err != nil { | |
log.Fatal(err) | |
} | |
defer res.Body.Close() | |
d, err := ioutil.ReadAll(res.Body) | |
if err != nil { | |
log.Fatal(err) |
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: apps/v1alpha1 | |
kind: PetSet | |
metadata: | |
name: consul | |
namespace: evoc | |
spec: | |
serviceName: consul | |
replicas: 3 | |
template: | |
metadata: |