Last active
August 29, 2015 14:18
-
-
Save deads2k/656e53e059b22d9cd11f to your computer and use it in GitHub Desktop.
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 pull openshift/origin | |
docker run -i -t --rm --name "openshift-origin" --net=host --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /tmp/openshift:/tmp/openshift openshift/origin start --cert-dir=/tmp/openshift/certs --etcd-dir=/tmp/openshift/etcd --write-config --master-config=/tmp/openshift/master.yaml --node-config=/tmp/openshift/node.yaml | |
docker run -i -t --rm --name "openshift-origin" --net=host --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /tmp/openshift:/tmp/openshift openshift/origin admin create-bootstrap-policy-file --filename=/tmp/openshift/bootstrap-policy.json | |
sudo chown -R deads:deads /tmp/openshift | |
sudo find /tmp/openshift -type f -print0 | xargs -0 chmod 644 | |
open master.yaml, find "bootstrapPolicyFile", and modify to: | |
bootstrapPolicyFile: /tmp/openshift/openshift.local.policy/policy.json | |
This is required because of a bug fixed by: https://github.com/openshift/origin/pull/1495 | |
docker run -i -t --rm --name "openshift-origin" --net=host --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /tmp/openshift:/tmp/openshift openshift/origin start --create-certs=false --master-config=/tmp/openshift/master.yaml --node-config=/tmp/openshift/node.yaml | |
curl --cacert /tmp/openshift/certs/ca/cert.crt https://10.13.137.235:8443/osapi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment