$ 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
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
# A headless service to create DNS records. | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: hdfs-datanode | |
labels: | |
app: hdfs-datanode | |
spec: | |
ports: | |
- port: 50010 |
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
# 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 |
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
oc login -u system:admin | |
cat <<-EOF > /tmp/pv.yaml | |
apiVersion: v1 | |
kind: PersistentVolume | |
metadata: | |
name: pv0001 | |
spec: | |
capacity: | |
storage: 1Gi |
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
Verifying that "cgoern.id" is my Blockstack ID. https://onename.com/cgoern |
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: Template | |
metadata: | |
name: mattermost | |
objects: | |
- apiVersion: v1 | |
kind: BuildConfig | |
metadata: | |
name: ${APPLICATION_NAME} | |
spec: |
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
docker pull openshift/origin-pod | |
docker pull openshift/origin-sti-builder | |
docker pull centos/python-34-centos7 |
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
# 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 |
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
package main | |
import ( | |
"bytes" | |
"fmt" | |
"io/ioutil" | |
"os" | |
"github.com/fsouza/go-dockerclient" | |
) |
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: