Browse code

Add a pod.json and update the Dockerfile on the exposed port

Clayton Coleman authored on 2014/11/03 13:41:46
Showing 2 changed files
... ...
@@ -6,4 +6,5 @@ ADD . /gopath/src/github.com/openshift/origin
6 6
 RUN go get github.com/openshift/origin && \
7 7
     hack/build-go.sh
8 8
 
9
+EXPOSE 8080
9 10
 ENTRYPOINT ["_output/go/bin/openshift"]
10 11
new file mode 100644
... ...
@@ -0,0 +1,24 @@
0
+{
1
+  "kind": "Pod",
2
+  "apiVersion": "v1beta1",
3
+  "id": "openshift",
4
+  "desiredState": {
5
+    "manifest": {
6
+      "version": "v1beta2",
7
+      "containers": [
8
+        {
9
+          "name": "origin",
10
+          "image": "openshift/origin",
11
+          "ports": [{
12
+              "containerPort": 8080,
13
+          }],
14
+          "command": ["start", "master", "--kubernetes=:8080"],
15
+          "imagePullPolicy": "PullIfNotPresent"
16
+        }
17
+      ],
18
+      "restartPolicy": {
19
+        "always": {}
20
+      }
21
+    }
22
+  }
23
+}
0 24
\ No newline at end of file