Huanli-Meng commented on a change in pull request #337:
URL: https://github.com/apache/pulsar-manager/pull/337#discussion_r494767364



##########
File path: src/README.md
##########
@@ -121,27 +121,71 @@ jwt.broker.secret.key=file:///path/broker-secret.key
 
 ```
 export JWT_TOKEN="your-token"
-docker run -it -p 9527:9527 -e REDIRECT_HOST=http://192.168.55.182 -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -v $PWD:/data 
apachepulsar/pulsar-manager:v0.1.0 /bin/sh
+docker run -it -p 9527:9527 -p 7750:7750 -e REDIRECT_HOST=http://localhost -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -v $PWD:/data 
apachepulsar/pulsar-manager:v0.2.0 /bin/sh
 ```
 
+* `JWT_TOKEN`: the token of superuser configured for the broker. It is 
generated by the `bin/pulsar tokens create --secret-key` or `bin/pulsar tokens 
create --private-key` command.
+* `REDIRECT_HOST`: the IP address of the front-end server.
+* `REDIRECT_PORT`: the port of the front-end server.
+* `DRIVER_CLASS_NAME`: the driver class name of the PostgreSQL database.
+* `URL`: the JDBC URL of your PostgreSQL database, such as 
jdbc:postgresql://127.0.0.1:5432/pulsar_manager. The docker image automatically 
start a local instance of the PostgresSQL database.
+* `USERNAME`: the username of PostgreSQL.
+* `PASSWORD`: the password of PostgreSQL.
+* `LOG_LEVEL`: the level of log.
+
 * Method 4: Use Docker with token, public key and private key.
 
 ```
 export JWT_TOKEN="your-token"
-export PRIVATE_KEY="file:///private-key-path"
-export PUBLIC_KEY="file:///public-key-path"
-docker run -it -p 9527:9527 -e REDIRECT_HOST=http://192.168.55.182 -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -e 
PRIVATE_KEY=$PRIVATE_KEY -e PUBLIC_KEY=$PUBLIC_KEY -v $PWD:/data -v 
$PWD/private-key-path:/pulsar-manager/private-key-path -v 
$PWD/public-key-path:/pulsar-manager/public-key-path 
apachepulsar/pulsar-manager:v0.1.0 /bin/sh
-```
+export PRIVATE_KEY="file:///pulsar-manager/secret/my-private.key"
+export PUBLIC_KEY="file:///pulsar-manager/secret/my-public.key"
+docker run -it -p 9527:9527 -p 7750:7750 -e REDIRECT_HOST=http://localhost -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -e 
PRIVATE_KEY=$PRIVATE_KEY -e PUBLIC_KEY=$PUBLIC_KEY -v $PWD:/data -v 
$PWD/secret:/pulsar-manager/secret apachepulsar/pulsar-manager:v0.2.0 /bin/sh
+```
+
+* `JWT_TOKEN`: the token of superuser configured for the broker. It is 
generated by the by `bin/pulsar tokens create --private-key` command.
+* `PRIVATE_KEY`: private key path mounted in container, genrated by 
`bin/pulsar tokens create-key-pair` command.

Review comment:
       ```suggestion
   * `PRIVATE_KEY`: private key path mounted in container. It is generated by 
the `bin/pulsar tokens create-key-pair` command.
   ```

##########
File path: src/README.md
##########
@@ -121,27 +121,71 @@ jwt.broker.secret.key=file:///path/broker-secret.key
 
 ```
 export JWT_TOKEN="your-token"
-docker run -it -p 9527:9527 -e REDIRECT_HOST=http://192.168.55.182 -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -v $PWD:/data 
apachepulsar/pulsar-manager:v0.1.0 /bin/sh
+docker run -it -p 9527:9527 -p 7750:7750 -e REDIRECT_HOST=http://localhost -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -v $PWD:/data 
apachepulsar/pulsar-manager:v0.2.0 /bin/sh
 ```
 
+* `JWT_TOKEN`: the token of superuser configured for the broker. It is 
generated by the `bin/pulsar tokens create --secret-key` or `bin/pulsar tokens 
create --private-key` command.
+* `REDIRECT_HOST`: the IP address of the front-end server.
+* `REDIRECT_PORT`: the port of the front-end server.
+* `DRIVER_CLASS_NAME`: the driver class name of the PostgreSQL database.
+* `URL`: the JDBC URL of your PostgreSQL database, such as 
jdbc:postgresql://127.0.0.1:5432/pulsar_manager. The docker image automatically 
start a local instance of the PostgresSQL database.
+* `USERNAME`: the username of PostgreSQL.
+* `PASSWORD`: the password of PostgreSQL.
+* `LOG_LEVEL`: the level of log.
+
 * Method 4: Use Docker with token, public key and private key.
 
 ```
 export JWT_TOKEN="your-token"
-export PRIVATE_KEY="file:///private-key-path"
-export PUBLIC_KEY="file:///public-key-path"
-docker run -it -p 9527:9527 -e REDIRECT_HOST=http://192.168.55.182 -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -e 
PRIVATE_KEY=$PRIVATE_KEY -e PUBLIC_KEY=$PUBLIC_KEY -v $PWD:/data -v 
$PWD/private-key-path:/pulsar-manager/private-key-path -v 
$PWD/public-key-path:/pulsar-manager/public-key-path 
apachepulsar/pulsar-manager:v0.1.0 /bin/sh
-```
+export PRIVATE_KEY="file:///pulsar-manager/secret/my-private.key"
+export PUBLIC_KEY="file:///pulsar-manager/secret/my-public.key"
+docker run -it -p 9527:9527 -p 7750:7750 -e REDIRECT_HOST=http://localhost -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -e 
PRIVATE_KEY=$PRIVATE_KEY -e PUBLIC_KEY=$PUBLIC_KEY -v $PWD:/data -v 
$PWD/secret:/pulsar-manager/secret apachepulsar/pulsar-manager:v0.2.0 /bin/sh
+```
+
+* `JWT_TOKEN`: the token of superuser configured for the broker. It is 
generated by the by `bin/pulsar tokens create --private-key` command.
+* `PRIVATE_KEY`: private key path mounted in container, genrated by 
`bin/pulsar tokens create-key-pair` command.
+* `PUBLIC_KEY`: public key path mounted in container, genrated by `bin/pulsar 
tokens create-key-pair` command.
+* `$PWD/secret`: the folder where the private key and public key generated by 
the `bin/pulsar tokens create-key-pair` command are placed locally
+* `REDIRECT_HOST`: the IP address of the front-end server.
+* `REDIRECT_PORT`: the port of the front-end server.
+* `DRIVER_CLASS_NAME`: the driver class name of the PostgreSQL database.
+* `URL`: the JDBC URL of your PostgreSQL database, such as 
jdbc:postgresql://127.0.0.1:5432/pulsar_manager. The docker image automatically 
start a local instance of the PostgresSQL database.

Review comment:
       ```suggestion
   * `URL`: the JDBC URL of your PostgreSQL database, such as 
jdbc:postgresql://127.0.0.1:5432/pulsar_manager. A local instance of the 
PostgresSQL database can be automatically started by the docker image.
   ```

##########
File path: src/README.md
##########
@@ -121,27 +121,71 @@ jwt.broker.secret.key=file:///path/broker-secret.key
 
 ```
 export JWT_TOKEN="your-token"
-docker run -it -p 9527:9527 -e REDIRECT_HOST=http://192.168.55.182 -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -v $PWD:/data 
apachepulsar/pulsar-manager:v0.1.0 /bin/sh
+docker run -it -p 9527:9527 -p 7750:7750 -e REDIRECT_HOST=http://localhost -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -v $PWD:/data 
apachepulsar/pulsar-manager:v0.2.0 /bin/sh
 ```
 
+* `JWT_TOKEN`: the token of superuser configured for the broker. It is 
generated by the `bin/pulsar tokens create --secret-key` or `bin/pulsar tokens 
create --private-key` command.
+* `REDIRECT_HOST`: the IP address of the front-end server.
+* `REDIRECT_PORT`: the port of the front-end server.
+* `DRIVER_CLASS_NAME`: the driver class name of the PostgreSQL database.
+* `URL`: the JDBC URL of your PostgreSQL database, such as 
jdbc:postgresql://127.0.0.1:5432/pulsar_manager. The docker image automatically 
start a local instance of the PostgresSQL database.
+* `USERNAME`: the username of PostgreSQL.
+* `PASSWORD`: the password of PostgreSQL.
+* `LOG_LEVEL`: the level of log.
+
 * Method 4: Use Docker with token, public key and private key.
 
 ```
 export JWT_TOKEN="your-token"
-export PRIVATE_KEY="file:///private-key-path"
-export PUBLIC_KEY="file:///public-key-path"
-docker run -it -p 9527:9527 -e REDIRECT_HOST=http://192.168.55.182 -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -e 
PRIVATE_KEY=$PRIVATE_KEY -e PUBLIC_KEY=$PUBLIC_KEY -v $PWD:/data -v 
$PWD/private-key-path:/pulsar-manager/private-key-path -v 
$PWD/public-key-path:/pulsar-manager/public-key-path 
apachepulsar/pulsar-manager:v0.1.0 /bin/sh
-```
+export PRIVATE_KEY="file:///pulsar-manager/secret/my-private.key"
+export PUBLIC_KEY="file:///pulsar-manager/secret/my-public.key"
+docker run -it -p 9527:9527 -p 7750:7750 -e REDIRECT_HOST=http://localhost -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -e 
PRIVATE_KEY=$PRIVATE_KEY -e PUBLIC_KEY=$PUBLIC_KEY -v $PWD:/data -v 
$PWD/secret:/pulsar-manager/secret apachepulsar/pulsar-manager:v0.2.0 /bin/sh
+```
+
+* `JWT_TOKEN`: the token of superuser configured for the broker. It is 
generated by the by `bin/pulsar tokens create --private-key` command.
+* `PRIVATE_KEY`: private key path mounted in container, genrated by 
`bin/pulsar tokens create-key-pair` command.
+* `PUBLIC_KEY`: public key path mounted in container, genrated by `bin/pulsar 
tokens create-key-pair` command.
+* `$PWD/secret`: the folder where the private key and public key generated by 
the `bin/pulsar tokens create-key-pair` command are placed locally

Review comment:
       ```suggestion
   * `$PWD/secret`: the folder where the generated private key and public key 
are placed locally.
   ```

##########
File path: src/README.md
##########
@@ -121,27 +121,71 @@ jwt.broker.secret.key=file:///path/broker-secret.key
 
 ```
 export JWT_TOKEN="your-token"
-docker run -it -p 9527:9527 -e REDIRECT_HOST=http://192.168.55.182 -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -v $PWD:/data 
apachepulsar/pulsar-manager:v0.1.0 /bin/sh
+docker run -it -p 9527:9527 -p 7750:7750 -e REDIRECT_HOST=http://localhost -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -v $PWD:/data 
apachepulsar/pulsar-manager:v0.2.0 /bin/sh
 ```
 
+* `JWT_TOKEN`: the token of superuser configured for the broker. It is 
generated by the `bin/pulsar tokens create --secret-key` or `bin/pulsar tokens 
create --private-key` command.
+* `REDIRECT_HOST`: the IP address of the front-end server.
+* `REDIRECT_PORT`: the port of the front-end server.
+* `DRIVER_CLASS_NAME`: the driver class name of the PostgreSQL database.
+* `URL`: the JDBC URL of your PostgreSQL database, such as 
jdbc:postgresql://127.0.0.1:5432/pulsar_manager. The docker image automatically 
start a local instance of the PostgresSQL database.
+* `USERNAME`: the username of PostgreSQL.
+* `PASSWORD`: the password of PostgreSQL.
+* `LOG_LEVEL`: the level of log.
+
 * Method 4: Use Docker with token, public key and private key.
 
 ```
 export JWT_TOKEN="your-token"
-export PRIVATE_KEY="file:///private-key-path"
-export PUBLIC_KEY="file:///public-key-path"
-docker run -it -p 9527:9527 -e REDIRECT_HOST=http://192.168.55.182 -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -e 
PRIVATE_KEY=$PRIVATE_KEY -e PUBLIC_KEY=$PUBLIC_KEY -v $PWD:/data -v 
$PWD/private-key-path:/pulsar-manager/private-key-path -v 
$PWD/public-key-path:/pulsar-manager/public-key-path 
apachepulsar/pulsar-manager:v0.1.0 /bin/sh
-```
+export PRIVATE_KEY="file:///pulsar-manager/secret/my-private.key"
+export PUBLIC_KEY="file:///pulsar-manager/secret/my-public.key"
+docker run -it -p 9527:9527 -p 7750:7750 -e REDIRECT_HOST=http://localhost -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -e 
PRIVATE_KEY=$PRIVATE_KEY -e PUBLIC_KEY=$PUBLIC_KEY -v $PWD:/data -v 
$PWD/secret:/pulsar-manager/secret apachepulsar/pulsar-manager:v0.2.0 /bin/sh
+```
+
+* `JWT_TOKEN`: the token of superuser configured for the broker. It is 
generated by the by `bin/pulsar tokens create --private-key` command.
+* `PRIVATE_KEY`: private key path mounted in container, genrated by 
`bin/pulsar tokens create-key-pair` command.
+* `PUBLIC_KEY`: public key path mounted in container, genrated by `bin/pulsar 
tokens create-key-pair` command.
+* `$PWD/secret`: the folder where the private key and public key generated by 
the `bin/pulsar tokens create-key-pair` command are placed locally
+* `REDIRECT_HOST`: the IP address of the front-end server.
+* `REDIRECT_PORT`: the port of the front-end server.
+* `DRIVER_CLASS_NAME`: the driver class name of the PostgreSQL database.
+* `URL`: the JDBC URL of your PostgreSQL database, such as 
jdbc:postgresql://127.0.0.1:5432/pulsar_manager. The docker image automatically 
start a local instance of the PostgresSQL database.
+* `USERNAME`: the username of PostgreSQL.
+* `PASSWORD`: the password of PostgreSQL.
+* `LOG_LEVEL`: the level of log.
 
 * Method 5: Use Docker with token, secret key.
 
 ```
 export JWT_TOKEN="your-token"
-export SECRET_KEY="file:///secret-key-path"
-docker run -it -p 9527:9527 -e REDIRECT_HOST=http://192.168.55.182 -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -e 
PRIVATE_KEY=$PRIVATE_KEY -e PUBLIC_KEY=$PUBLIC_KEY -v $PWD:/data -v 
$PWD/secret-key-path:/pulsar-manager/secret-key-path 
apachepulsar/pulsar-manager:v0.1.0 /bin/sh
-```
-
-### Enable Github Login
+export SECRET_KEY="file:///pulsar-manager/secret/my-secret.key"
+docker run -it -p 9527:9527 -p 7750:7750 -e REDIRECT_HOST=http://localhost -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -e 
SECRET_KEY=$SECRET_KEY -v $PWD:/data -v $PWD/secret:/pulsar-manager/secret 
apachepulsar/pulsar-manager:v0.2.0 /bin/sh
+```
+
+* `JWT_TOKEN`: the token of superuser configured for the broker. It is 
generated by the by `bin/pulsar tokens create --secret-key` command.
+* `SECRET_KEY`: secret key path mounted in container, genrated by `bin/pulsar 
tokens create-secret-key` command.
+* `$PWD/secret`: the folder where the secret key generated by the `bin/pulsar 
tokens create-secret-key` command are placed locally

Review comment:
       ```suggestion
   * `$PWD/secret`: the folder where the generated secret key is placed locally.
   ```

##########
File path: README.md
##########
@@ -113,6 +104,28 @@ The Pulsar Manager can be deployed as part of [Pulsar Helm 
Chart](https://github
     ```
     After find the ip address of the Pulsar Manager, you can access the Pulsar 
Manager at `http://${pulsar-manager-cluster-ip}/#/environments`.
 
+### Build from bin package
+
+```
+wget 
https://dist.apache.org/repos/dist/release/pulsar/pulsar-manager/apache-pulsar-manager-0.2.0/apache-pulsar-manager-0.2.0-bin.tar.gz
+tar -zxvf apache-pulsar-manager-0.2.0-bin.tar.gz
+cd pulsar-manager
+tar -zxvf pulsar-manager.tar
+cd pulsar-manager
+cp -r ../dist ui
+./bin/pulsar-manager
+```
+
+Now you can now access it at the following address: frontend => 
http://localhost:7750/ui/index.html.
+
+[Set the administrator account and password](#access-pulsar-manager).

Review comment:
       ```suggestion
   For details, see [Set the administrator account and 
password](#access-pulsar-manager).
   ```

##########
File path: src/README.md
##########
@@ -121,27 +121,71 @@ jwt.broker.secret.key=file:///path/broker-secret.key
 
 ```
 export JWT_TOKEN="your-token"
-docker run -it -p 9527:9527 -e REDIRECT_HOST=http://192.168.55.182 -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -v $PWD:/data 
apachepulsar/pulsar-manager:v0.1.0 /bin/sh
+docker run -it -p 9527:9527 -p 7750:7750 -e REDIRECT_HOST=http://localhost -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -v $PWD:/data 
apachepulsar/pulsar-manager:v0.2.0 /bin/sh
 ```
 
+* `JWT_TOKEN`: the token of superuser configured for the broker. It is 
generated by the `bin/pulsar tokens create --secret-key` or `bin/pulsar tokens 
create --private-key` command.
+* `REDIRECT_HOST`: the IP address of the front-end server.
+* `REDIRECT_PORT`: the port of the front-end server.
+* `DRIVER_CLASS_NAME`: the driver class name of the PostgreSQL database.
+* `URL`: the JDBC URL of your PostgreSQL database, such as 
jdbc:postgresql://127.0.0.1:5432/pulsar_manager. The docker image automatically 
start a local instance of the PostgresSQL database.
+* `USERNAME`: the username of PostgreSQL.
+* `PASSWORD`: the password of PostgreSQL.
+* `LOG_LEVEL`: the level of log.
+
 * Method 4: Use Docker with token, public key and private key.
 
 ```
 export JWT_TOKEN="your-token"
-export PRIVATE_KEY="file:///private-key-path"
-export PUBLIC_KEY="file:///public-key-path"
-docker run -it -p 9527:9527 -e REDIRECT_HOST=http://192.168.55.182 -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -e 
PRIVATE_KEY=$PRIVATE_KEY -e PUBLIC_KEY=$PUBLIC_KEY -v $PWD:/data -v 
$PWD/private-key-path:/pulsar-manager/private-key-path -v 
$PWD/public-key-path:/pulsar-manager/public-key-path 
apachepulsar/pulsar-manager:v0.1.0 /bin/sh
-```
+export PRIVATE_KEY="file:///pulsar-manager/secret/my-private.key"
+export PUBLIC_KEY="file:///pulsar-manager/secret/my-public.key"
+docker run -it -p 9527:9527 -p 7750:7750 -e REDIRECT_HOST=http://localhost -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -e 
PRIVATE_KEY=$PRIVATE_KEY -e PUBLIC_KEY=$PUBLIC_KEY -v $PWD:/data -v 
$PWD/secret:/pulsar-manager/secret apachepulsar/pulsar-manager:v0.2.0 /bin/sh
+```
+
+* `JWT_TOKEN`: the token of superuser configured for the broker. It is 
generated by the by `bin/pulsar tokens create --private-key` command.
+* `PRIVATE_KEY`: private key path mounted in container, genrated by 
`bin/pulsar tokens create-key-pair` command.
+* `PUBLIC_KEY`: public key path mounted in container, genrated by `bin/pulsar 
tokens create-key-pair` command.
+* `$PWD/secret`: the folder where the private key and public key generated by 
the `bin/pulsar tokens create-key-pair` command are placed locally
+* `REDIRECT_HOST`: the IP address of the front-end server.
+* `REDIRECT_PORT`: the port of the front-end server.
+* `DRIVER_CLASS_NAME`: the driver class name of the PostgreSQL database.
+* `URL`: the JDBC URL of your PostgreSQL database, such as 
jdbc:postgresql://127.0.0.1:5432/pulsar_manager. The docker image automatically 
start a local instance of the PostgresSQL database.
+* `USERNAME`: the username of PostgreSQL.
+* `PASSWORD`: the password of PostgreSQL.
+* `LOG_LEVEL`: the level of log.
 
 * Method 5: Use Docker with token, secret key.
 
 ```
 export JWT_TOKEN="your-token"
-export SECRET_KEY="file:///secret-key-path"
-docker run -it -p 9527:9527 -e REDIRECT_HOST=http://192.168.55.182 -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -e 
PRIVATE_KEY=$PRIVATE_KEY -e PUBLIC_KEY=$PUBLIC_KEY -v $PWD:/data -v 
$PWD/secret-key-path:/pulsar-manager/secret-key-path 
apachepulsar/pulsar-manager:v0.1.0 /bin/sh
-```
-
-### Enable Github Login
+export SECRET_KEY="file:///pulsar-manager/secret/my-secret.key"
+docker run -it -p 9527:9527 -p 7750:7750 -e REDIRECT_HOST=http://localhost -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -e 
SECRET_KEY=$SECRET_KEY -v $PWD:/data -v $PWD/secret:/pulsar-manager/secret 
apachepulsar/pulsar-manager:v0.2.0 /bin/sh
+```
+
+* `JWT_TOKEN`: the token of superuser configured for the broker. It is 
generated by the by `bin/pulsar tokens create --secret-key` command.
+* `SECRET_KEY`: secret key path mounted in container, genrated by `bin/pulsar 
tokens create-secret-key` command.

Review comment:
       ```suggestion
   * `SECRET_KEY`: the secret key path mounted in container. It is generated by 
the `bin/pulsar tokens create-secret-key` command.
   ```

##########
File path: src/README.md
##########
@@ -121,27 +121,71 @@ jwt.broker.secret.key=file:///path/broker-secret.key
 
 ```
 export JWT_TOKEN="your-token"
-docker run -it -p 9527:9527 -e REDIRECT_HOST=http://192.168.55.182 -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -v $PWD:/data 
apachepulsar/pulsar-manager:v0.1.0 /bin/sh
+docker run -it -p 9527:9527 -p 7750:7750 -e REDIRECT_HOST=http://localhost -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -v $PWD:/data 
apachepulsar/pulsar-manager:v0.2.0 /bin/sh
 ```
 
+* `JWT_TOKEN`: the token of superuser configured for the broker. It is 
generated by the `bin/pulsar tokens create --secret-key` or `bin/pulsar tokens 
create --private-key` command.
+* `REDIRECT_HOST`: the IP address of the front-end server.
+* `REDIRECT_PORT`: the port of the front-end server.
+* `DRIVER_CLASS_NAME`: the driver class name of the PostgreSQL database.
+* `URL`: the JDBC URL of your PostgreSQL database, such as 
jdbc:postgresql://127.0.0.1:5432/pulsar_manager. The docker image automatically 
start a local instance of the PostgresSQL database.

Review comment:
       ```suggestion
   * `URL`: the JDBC URL of your PostgreSQL database, such as 
jdbc:postgresql://127.0.0.1:5432/pulsar_manager. A local instance of the 
PostgresSQL database can be automatically started by the docker image.
   ```

##########
File path: src/README.md
##########
@@ -121,27 +121,71 @@ jwt.broker.secret.key=file:///path/broker-secret.key
 
 ```
 export JWT_TOKEN="your-token"
-docker run -it -p 9527:9527 -e REDIRECT_HOST=http://192.168.55.182 -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -v $PWD:/data 
apachepulsar/pulsar-manager:v0.1.0 /bin/sh
+docker run -it -p 9527:9527 -p 7750:7750 -e REDIRECT_HOST=http://localhost -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -v $PWD:/data 
apachepulsar/pulsar-manager:v0.2.0 /bin/sh
 ```
 
+* `JWT_TOKEN`: the token of superuser configured for the broker. It is 
generated by the `bin/pulsar tokens create --secret-key` or `bin/pulsar tokens 
create --private-key` command.
+* `REDIRECT_HOST`: the IP address of the front-end server.
+* `REDIRECT_PORT`: the port of the front-end server.
+* `DRIVER_CLASS_NAME`: the driver class name of the PostgreSQL database.
+* `URL`: the JDBC URL of your PostgreSQL database, such as 
jdbc:postgresql://127.0.0.1:5432/pulsar_manager. The docker image automatically 
start a local instance of the PostgresSQL database.
+* `USERNAME`: the username of PostgreSQL.
+* `PASSWORD`: the password of PostgreSQL.
+* `LOG_LEVEL`: the level of log.
+
 * Method 4: Use Docker with token, public key and private key.
 
 ```
 export JWT_TOKEN="your-token"
-export PRIVATE_KEY="file:///private-key-path"
-export PUBLIC_KEY="file:///public-key-path"
-docker run -it -p 9527:9527 -e REDIRECT_HOST=http://192.168.55.182 -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -e 
PRIVATE_KEY=$PRIVATE_KEY -e PUBLIC_KEY=$PUBLIC_KEY -v $PWD:/data -v 
$PWD/private-key-path:/pulsar-manager/private-key-path -v 
$PWD/public-key-path:/pulsar-manager/public-key-path 
apachepulsar/pulsar-manager:v0.1.0 /bin/sh
-```
+export PRIVATE_KEY="file:///pulsar-manager/secret/my-private.key"
+export PUBLIC_KEY="file:///pulsar-manager/secret/my-public.key"
+docker run -it -p 9527:9527 -p 7750:7750 -e REDIRECT_HOST=http://localhost -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -e 
PRIVATE_KEY=$PRIVATE_KEY -e PUBLIC_KEY=$PUBLIC_KEY -v $PWD:/data -v 
$PWD/secret:/pulsar-manager/secret apachepulsar/pulsar-manager:v0.2.0 /bin/sh
+```
+
+* `JWT_TOKEN`: the token of superuser configured for the broker. It is 
generated by the by `bin/pulsar tokens create --private-key` command.
+* `PRIVATE_KEY`: private key path mounted in container, genrated by 
`bin/pulsar tokens create-key-pair` command.
+* `PUBLIC_KEY`: public key path mounted in container, genrated by `bin/pulsar 
tokens create-key-pair` command.
+* `$PWD/secret`: the folder where the private key and public key generated by 
the `bin/pulsar tokens create-key-pair` command are placed locally
+* `REDIRECT_HOST`: the IP address of the front-end server.
+* `REDIRECT_PORT`: the port of the front-end server.
+* `DRIVER_CLASS_NAME`: the driver class name of the PostgreSQL database.
+* `URL`: the JDBC URL of your PostgreSQL database, such as 
jdbc:postgresql://127.0.0.1:5432/pulsar_manager. The docker image automatically 
start a local instance of the PostgresSQL database.
+* `USERNAME`: the username of PostgreSQL.
+* `PASSWORD`: the password of PostgreSQL.
+* `LOG_LEVEL`: the level of log.
 
 * Method 5: Use Docker with token, secret key.
 
 ```
 export JWT_TOKEN="your-token"
-export SECRET_KEY="file:///secret-key-path"
-docker run -it -p 9527:9527 -e REDIRECT_HOST=http://192.168.55.182 -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -e 
PRIVATE_KEY=$PRIVATE_KEY -e PUBLIC_KEY=$PUBLIC_KEY -v $PWD:/data -v 
$PWD/secret-key-path:/pulsar-manager/secret-key-path 
apachepulsar/pulsar-manager:v0.1.0 /bin/sh
-```
-
-### Enable Github Login
+export SECRET_KEY="file:///pulsar-manager/secret/my-secret.key"
+docker run -it -p 9527:9527 -p 7750:7750 -e REDIRECT_HOST=http://localhost -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -e 
SECRET_KEY=$SECRET_KEY -v $PWD:/data -v $PWD/secret:/pulsar-manager/secret 
apachepulsar/pulsar-manager:v0.2.0 /bin/sh
+```
+
+* `JWT_TOKEN`: the token of superuser configured for the broker. It is 
generated by the by `bin/pulsar tokens create --secret-key` command.
+* `SECRET_KEY`: secret key path mounted in container, genrated by `bin/pulsar 
tokens create-secret-key` command.
+* `$PWD/secret`: the folder where the secret key generated by the `bin/pulsar 
tokens create-secret-key` command are placed locally
+* `REDIRECT_HOST`: the IP address of the front-end server.
+* `REDIRECT_PORT`: the port of the front-end server.
+* `DRIVER_CLASS_NAME`: the driver class name of the PostgreSQL database.
+* `URL`: the JDBC URL of your PostgreSQL database, such as 
jdbc:postgresql://127.0.0.1:5432/pulsar_manager. The docker image automatically 
start a local instance of the PostgresSQL database.

Review comment:
       ```suggestion
   * `URL`: the JDBC URL of your PostgreSQL database, such as 
jdbc:postgresql://127.0.0.1:5432/pulsar_manager. A local instance of the 
PostgresSQL database can be automatically started by the docker image.
   ```

##########
File path: README.md
##########
@@ -113,6 +104,28 @@ The Pulsar Manager can be deployed as part of [Pulsar Helm 
Chart](https://github
     ```
     After find the ip address of the Pulsar Manager, you can access the Pulsar 
Manager at `http://${pulsar-manager-cluster-ip}/#/environments`.
 
+### Build from bin package
+
+```
+wget 
https://dist.apache.org/repos/dist/release/pulsar/pulsar-manager/apache-pulsar-manager-0.2.0/apache-pulsar-manager-0.2.0-bin.tar.gz
+tar -zxvf apache-pulsar-manager-0.2.0-bin.tar.gz
+cd pulsar-manager
+tar -zxvf pulsar-manager.tar
+cd pulsar-manager
+cp -r ../dist ui
+./bin/pulsar-manager
+```
+
+Now you can now access it at the following address: frontend => 
http://localhost:7750/ui/index.html.

Review comment:
       ```suggestion
   Now, you can access it at the following address: frontend => 
http://localhost:7750/ui/index.html.
   ```
   it refers to Pulsar Manager? if yes, please use Pulsar Manager here.

##########
File path: src/README.md
##########
@@ -121,27 +121,71 @@ jwt.broker.secret.key=file:///path/broker-secret.key
 
 ```
 export JWT_TOKEN="your-token"
-docker run -it -p 9527:9527 -e REDIRECT_HOST=http://192.168.55.182 -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -v $PWD:/data 
apachepulsar/pulsar-manager:v0.1.0 /bin/sh
+docker run -it -p 9527:9527 -p 7750:7750 -e REDIRECT_HOST=http://localhost -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -v $PWD:/data 
apachepulsar/pulsar-manager:v0.2.0 /bin/sh
 ```
 
+* `JWT_TOKEN`: the token of superuser configured for the broker. It is 
generated by the `bin/pulsar tokens create --secret-key` or `bin/pulsar tokens 
create --private-key` command.
+* `REDIRECT_HOST`: the IP address of the front-end server.
+* `REDIRECT_PORT`: the port of the front-end server.
+* `DRIVER_CLASS_NAME`: the driver class name of the PostgreSQL database.
+* `URL`: the JDBC URL of your PostgreSQL database, such as 
jdbc:postgresql://127.0.0.1:5432/pulsar_manager. The docker image automatically 
start a local instance of the PostgresSQL database.
+* `USERNAME`: the username of PostgreSQL.
+* `PASSWORD`: the password of PostgreSQL.
+* `LOG_LEVEL`: the level of log.
+
 * Method 4: Use Docker with token, public key and private key.
 
 ```
 export JWT_TOKEN="your-token"
-export PRIVATE_KEY="file:///private-key-path"
-export PUBLIC_KEY="file:///public-key-path"
-docker run -it -p 9527:9527 -e REDIRECT_HOST=http://192.168.55.182 -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -e 
PRIVATE_KEY=$PRIVATE_KEY -e PUBLIC_KEY=$PUBLIC_KEY -v $PWD:/data -v 
$PWD/private-key-path:/pulsar-manager/private-key-path -v 
$PWD/public-key-path:/pulsar-manager/public-key-path 
apachepulsar/pulsar-manager:v0.1.0 /bin/sh
-```
+export PRIVATE_KEY="file:///pulsar-manager/secret/my-private.key"
+export PUBLIC_KEY="file:///pulsar-manager/secret/my-public.key"
+docker run -it -p 9527:9527 -p 7750:7750 -e REDIRECT_HOST=http://localhost -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -e 
PRIVATE_KEY=$PRIVATE_KEY -e PUBLIC_KEY=$PUBLIC_KEY -v $PWD:/data -v 
$PWD/secret:/pulsar-manager/secret apachepulsar/pulsar-manager:v0.2.0 /bin/sh
+```
+
+* `JWT_TOKEN`: the token of superuser configured for the broker. It is 
generated by the by `bin/pulsar tokens create --private-key` command.
+* `PRIVATE_KEY`: private key path mounted in container, genrated by 
`bin/pulsar tokens create-key-pair` command.
+* `PUBLIC_KEY`: public key path mounted in container, genrated by `bin/pulsar 
tokens create-key-pair` command.

Review comment:
       ```suggestion
   * `PUBLIC_KEY`: public key path mounted in container. It is generated by the 
`bin/pulsar tokens create-key-pair` command.
   ```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to