From 00044cd3bde58953f564d743f6732e598c1a5566 Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Fri, 17 Apr 2015 14:57:15 -0400 Subject: [PATCH] scripts: build-aci update to have mountPoint and ports Expose the etcd ports and data-dir mountPoint for future releases. --- scripts/build-aci | 38 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/scripts/build-aci b/scripts/build-aci index 3169d1243..12da78288 100755 --- a/scripts/build-aci +++ b/scripts/build-aci @@ -41,7 +41,7 @@ cp -r Documentation $IMAGEDIR/rootfs/ cat < $IMAGEDIR/manifest { - "acVersion": "0.1.1", + "acVersion": "0.5.1", "acKind": "ImageManifest", "name": "coreos.com/etcd", "labels": [ @@ -50,11 +50,45 @@ cat < $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