github.com/jmrodri/operator-sdk@v0.5.0/hack/ci/setup-openshift.sh (about)

     1  # Configure insecure docker registry for openshift
     2  sudo service docker stop
     3  sudo sed -i 's/DOCKER_OPTS=\"/DOCKER_OPTS=\"--insecure-registry 172.30.0.0\/16 /' /etc/default/docker
     4  sudo service docker start
     5  # Download oc to spin up openshift on local docker instance
     6  curl -Lo oc.tar.gz https://github.com/openshift/origin/releases/download/v3.11.0/openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz
     7  # Put oc binary in path
     8  tar xvzOf oc.tar.gz openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit/oc > oc && chmod +x oc && sudo mv oc /usr/local/bin/
     9  # Start oc cluster
    10  oc cluster up --base-dir=$HOME/oscluster
    11  # Become cluster admin
    12  oc login -u system:admin
    13  
    14  # kubectl is needed for the single namespace local test and the ansible tests
    15  curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.11.3/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/