Skip to content

Instantly share code, notes, and snippets.

View goern's full-sized avatar
🥥
working on getting Data Science done...

Christoph Görn goern

🥥
working on getting Data Science done...
View GitHub Profile
@goern
goern / datanode.yaml
Created May 4, 2017 12:44
HADOOP on OpenShift
# A headless service to create DNS records.
apiVersion: v1
kind: Service
metadata:
name: hdfs-datanode
labels:
app: hdfs-datanode
spec:
ports:
- port: 50010
# DISCLAIMER docker-machine on OSX is not my friend
VBoxManage unregistervm openshift --delete
rm -rf $HOME/.docker/machine/
docker-machine create --driver virtualbox --engine-opt="--insecure-registry 172.30.0.0/16" openshift
eval $(docker-machine env openshift)
oc cluster up
oc login -u system:admin
cat <<-EOF > /tmp/pv.yaml
apiVersion: v1
kind: PersistentVolume
metadata:
name: pv0001
spec:
capacity:
storage: 1Gi
@goern
goern / openshift.md
Last active September 7, 2016 07:11 — forked from luebken/openshift.md
Getting started with OpenShift

Install

$ brew update
$ brew install --devel openshift-cli

# add 172.30.0.0/16 to the insecure registries
$ docker-machine ssh 
$ vi /var/lib/boot2docker/profile
# add --insecure-registry 172.30.0.0/16
$ docker-machine restart
Verifying that "cgoern.id" is my Blockstack ID. https://onename.com/cgoern
apiVersion: v1
kind: Template
metadata:
name: mattermost
objects:
- apiVersion: v1
kind: BuildConfig
metadata:
name: ${APPLICATION_NAME}
spec:
docker pull openshift/origin-pod
docker pull openshift/origin-sti-builder
docker pull centos/python-34-centos7
# This reused parts of https://access.redhat.com/solutions/2147871
sudo yum install -y atomic docker etcd kubernetes nfs-utils sos cockpit-sos cockpit-kubernetes cockpit
sudo systemctl start cockpit && sudo systemctl enable cockpit.socket
sudo systemctl enable docker && sudo systemctl start docker
sudo docker pull centos
sudo systemctl enable etcd && sudo systemctl start etcd
package main
import (
"bytes"
"fmt"
"io/ioutil"
"os"
"github.com/fsouza/go-dockerclient"
)

Keybase proof

I hereby claim:

  • I am goern on github.
  • I am goern (https://keybase.io/goern) on keybase.
  • I have a public key whose fingerprint is DB72 94CF 7E25 952C C66B C213 01D1 FE85 664C D4D2

To claim this, I am signing this object: