Browse code

update in-container steps to setup registry properly

Ben Parees authored on 2015/02/13 04:45:39
Showing 1 changed files
... ...
@@ -49,17 +49,44 @@ you know where you are:
49 49
 Inside the OpenShift Docker container, you'll need to fetch some of the code
50 50
 bits that are used in the sample app.
51 51
 
52
+    $ cd /var/lib/openshift
52 53
     $ wget \
53
-    https://raw.githubusercontent.com/openshift/origin/master/examples/sample-app/docker-registry-config.json
54
+    https://raw.githubusercontent.com/openshift/origin/master/examples/sample-app/docker-registry-template.json
54 55
     $ wget \
55 56
     https://raw.githubusercontent.com/openshift/origin/master/examples/sample-app/application-template-stibuild.json
57
+    $ wget \
58
+    https://raw.githubusercontent.com/openshift/origin/master/examples/sample-app/project.json
59
+    $ wget \
60
+    https://raw.githubusercontent.com/openshift/origin/master/examples/sample-app/cleanup.sh
61
+    $ wget \
62
+    https://raw.githubusercontent.com/openshift/origin/master/hack/install-registry.sh
63
+    $ chmod a+x install-registry.sh
64
+
65
+## Configure client security
66
+
67
+    $ export KUBECONFIG=`pwd`/openshift.local.certificates/admin/.kubeconfig
68
+    $ export CURL_CA_BUNDLE=`pwd`/openshift.local.certificates/admin/root.crt
69
+    $ sudo chmod +r `pwd`/openshift.local.certificates/admin/key.key
70
+
71
+For more information on this step, see [Application Build, Deploy, and Update
72
+Flow](https://github.com/openshift/origin/blob/master/examples/sample-app/README.md#application-build-deploy-and-update-flow),
73
+step #3.
74
+
75
+## Deploy the private docker registry
76
+
77
+    $ chmod +r ./openshift.local.certificates/master/key.key
78
+    $ CERT_DIR=openshift.local.certificates/master ./install-registry.sh
79
+
80
+For more information on this step, see [Application Build, Deploy, and Update
81
+Flow](https://github.com/openshift/origin/blob/master/examples/sample-app/README.md#application-build-deploy-and-update-flow),
82
+step #4.
56 83
 
57 84
 ## Continue With Sample Application
58 85
 At this point you can continue with the steps in the [Sample
59 86
 Application](https://github.com/openshift/origin/blob/master/examples/sample-app/README.md),
60 87
 starting from [Application Build, Deploy, and Update
61 88
 Flow](https://github.com/openshift/origin/blob/master/examples/sample-app/README.md#application-build-deploy-and-update-flow),
62
-step #3.
89
+step #5.
63 90
 
64 91
 You can watch the OpenShift logs by issuing the following on your **Docker
65 92
 host**: