From 965a099495a933f021e1d09b910c106dab99688f Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Wed, 29 Jun 2016 21:08:36 +1200 Subject: [PATCH] fix(flags): fix grunt run-swarm command and update long flag format (#26) --- README.md | 16 ++++++++-------- gruntFile.js | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 421a9ea31..ce20e8267 100644 --- a/README.md +++ b/README.md @@ -37,11 +37,11 @@ $ docker run -d -p 9000:9000 cloudinovasi/cloudinovasi-ui -e http://127.0.0.1:23 **Supported Swarm version: 1.2.3** -You can access a specific view for you Swarm cluster by defining the `-swarm` flag: +You can access a specific view for you Swarm cluster by defining the `--swarm` flag: ``` # Connect to a tcp socket and enable Swarm: -$ docker run -d -p 9000:9000 cloudinovasi/cloudinovasi-ui -e http://: -swarm +$ docker run -d -p 9000:9000 cloudinovasi/cloudinovasi-ui -e http://: --swarm ``` *NOTE*: Due to Swarm not exposing information in a machine readable way, the app is bound to a specific version of Swarm at the moment. @@ -74,9 +74,9 @@ $ docker run -d -p 9000:9000 --privileged -v /var/run/docker.sock:/var/run/docke The following options are available for the `ui-for-docker` binary: -* `-endpoint`, `-e`: Docker deamon endpoint (default: *"/var/run/docker.sock"*) -* `-bind`, `-p`: Address and port to serve UI For Docker (default: *":9000"*) -* `-data`, `-d`: Path to the data folder (default: *"."*) -* `-assets`, `-a`: Path to the assets (default: *"."*) -* `-swarm`, `-s`: Swarm cluster support (default: *false*) -* `-hide-label`, `-l`: Hide containers with a specific label in the UI +* `--endpoint`, `-e`: Docker deamon endpoint (default: *"/var/run/docker.sock"*) +* `--bind`, `-p`: Address and port to serve UI For Docker (default: *":9000"*) +* `--data`, `-d`: Path to the data folder (default: *"."*) +* `--assets`, `-a`: Path to the assets (default: *"."*) +* `--swarm`, `-s`: Swarm cluster support (default: *false*) +* `--hide-label`, `-l`: Hide containers with a specific label in the UI diff --git a/gruntFile.js b/gruntFile.js index f48f1e6ba..b9b0d9a5c 100644 --- a/gruntFile.js +++ b/gruntFile.js @@ -267,7 +267,7 @@ module.exports = function (grunt) { command: [ 'docker stop ui-for-docker', 'docker rm ui-for-docker', - 'docker run --privileged -d -p 9000:9000 -v /tmp/docker-ui:/data --name ui-for-docker ui-for-docker -e http://10.0.7.10:4000 -swarm -d /data' + 'docker run --privileged -d -p 9000:9000 -v /tmp/docker-ui:/data --name ui-for-docker ui-for-docker -e http://10.0.7.10:4000 --swarm -d /data' ].join(';') }, cleanImages: {