From df96ca8889b3d99b18031b6b7e1509ffab4f9c86 Mon Sep 17 00:00:00 2001 From: Sean Li Date: Fri, 17 Oct 2014 11:08:23 -0700 Subject: [PATCH] Cannot create app from image without exposed port. --- .../client/views/dashboard/images/dashboard-single-image.html | 4 +++- .../views/dashboard/layouts/dashboard-images-layout.html | 4 +++- meteor/collections/images.js | 3 +++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/meteor/client/views/dashboard/images/dashboard-single-image.html b/meteor/client/views/dashboard/images/dashboard-single-image.html index f714320b17..b2e39d6a23 100755 --- a/meteor/client/views/dashboard/images/dashboard-single-image.html +++ b/meteor/client/views/dashboard/images/dashboard-single-image.html @@ -27,7 +27,9 @@
{{#if $eq status 'READY'}} - + {{#if hasExposedPort}} + + {{/if}} {{/if}} {{#if originPath}} diff --git a/meteor/client/views/dashboard/layouts/dashboard-images-layout.html b/meteor/client/views/dashboard/layouts/dashboard-images-layout.html index 8489a0cd72..bbe9fd9438 100755 --- a/meteor/client/views/dashboard/layouts/dashboard-images-layout.html +++ b/meteor/client/views/dashboard/layouts/dashboard-images-layout.html @@ -12,7 +12,9 @@ Images » {{this.meta.name}} {{#if $eq status 'READY'}} - + {{#if hasExposedPort}} + + {{/if}} {{/if}} {{#if originPath}} diff --git a/meteor/collections/images.js b/meteor/collections/images.js index 1c94dfe578..c380d0edc3 100755 --- a/meteor/collections/images.js +++ b/meteor/collections/images.js @@ -19,6 +19,9 @@ Images.helpers({ } else { return '100%'; } + }, + hasExposedPort: function () { + return this.docker && this.docker.Config && this.docker.Config.ExposedPorts; } });