Browse Source

Merge pull request #2704 from philips/build-aci-port-mountpoint

scripts: build-aci update to have mountPoint and ports
Brandon Philips 10 years ago
parent
commit
beb606f066
1 changed files with 36 additions and 2 deletions
  1. 36 2
      scripts/build-aci

+ 36 - 2
scripts/build-aci

@@ -41,7 +41,7 @@ cp -r Documentation     $IMAGEDIR/rootfs/
 
 cat <<DF > $IMAGEDIR/manifest
 {
-    "acVersion": "0.1.1",
+    "acVersion": "0.5.1",
     "acKind": "ImageManifest",
     "name": "coreos.com/etcd",
     "labels": [
@@ -50,11 +50,45 @@ cat <<DF > $IMAGEDIR/manifest
         {"name": "version", "value": "${VERSION}"}
     ],
     "app": {
+        "environment": [
+             {
+                    "name": "ETCD_DATA_DIR",
+                    "value": "/data-dir"
+             }
+        ],
         "exec": [
              "/etcd"
         ],
         "user": "0",
-        "group": "0"
+        "group": "0",
+        "mountPoints": [
+             {
+                    "name": "data-dir",
+                    "path": "/data-dir"
+             }
+        ],
+        "ports": [
+            {
+                "name": "legacy-client",
+                "port": 4001,
+                "protocol": "tcp"
+            },
+            {
+                "name": "client",
+                "port": 2379,
+                "protocol": "tcp"
+            },
+            {
+                "name": "legacy-peer",
+                "port": 7001,
+                "protocol": "tcp"
+            },
+            {
+                "name": "peer",
+                "port": 2380,
+                "protocol": "tcp"
+            }
+        ]
     }
 }
 DF