You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by si...@apache.org on 2019/08/10 02:08:25 UTC

[pulsar] branch master updated: [doc] dashboard docker relative clarity (#4915)

This is an automated email from the ASF dual-hosted git repository.

sijie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 18d21ac  [doc] dashboard docker relative clarity (#4915)
18d21ac is described below

commit 18d21acd6885db53417cbad6a18a93082da59cb2
Author: Yi Tang <ss...@gmail.com>
AuthorDate: Sat Aug 10 10:08:19 2019 +0800

    [doc] dashboard docker relative clarity (#4915)
    
    Fixes #4913
    
    ### Motivation
    
    The original document may mislead users into thinking that there is no any ready-made docker image and building one from scratch.
---
 site2/docs/administration-dashboard.md | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/site2/docs/administration-dashboard.md b/site2/docs/administration-dashboard.md
index e054503..5719e7c 100644
--- a/site2/docs/administration-dashboard.md
+++ b/site2/docs/administration-dashboard.md
@@ -12,22 +12,21 @@ A [Django](https://www.djangoproject.com) web app is used to render the collecte
 
 ## Install
 
-The easiest way to use the dashboard is to run it inside a [Docker](https://www.docker.com/products/docker) container. A {@inject: github:`Dockerfile`:/dashboard/Dockerfile} to generate the image is provided.
-
-To generate the Docker image:
+The easiest way to use the dashboard is to run it inside a [Docker](https://www.docker.com/products/docker) container.
 
 ```shell
-$ docker build -t apachepulsar/pulsar-dashboard dashboard
+$ SERVICE_URL=http://broker.example.com:8080/
+$ docker run -p 80:80 \
+  -e SERVICE_URL=$SERVICE_URL \
+  apachepulsar/pulsar-dashboard:{{pulsar:version}}
 ```
 
-To run the dashboard:
+The {@inject: github:`Dockerfile`:/dashboard/Dockerfile} can be found in `dashboard` directory, you can build a image from scratch also:
 
 ```shell
-$ SERVICE_URL=http://broker.example.com:8080/
-$ docker run -p 80:80 \
-  -e SERVICE_URL=$SERVICE_URL \
-  apachepulsar/pulsar-dashboard
+$ docker build -t apachepulsar/pulsar-dashboard dashboard
 ```
+
 If token authentication is enabled:
 > Provided token should have super-user access. 
 ```shell