From c722db1c4e0274ebd820cc9fe4108f6510f12f56 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Sat, 25 Feb 2023 11:31:21 +0800 Subject: [PATCH] add docker installation --- docker.sh | 7 +++++++ installation.md | 18 ++++++++++++++---- 2 files changed, 21 insertions(+), 4 deletions(-) create mode 100755 docker.sh diff --git a/docker.sh b/docker.sh new file mode 100755 index 00000000..8835b502 --- /dev/null +++ b/docker.sh @@ -0,0 +1,7 @@ +# chmod 755 docker.sh + +yarn --ignore-engines add +yarn --ignore-engines build +docker build -t "ping.pub/dashboard" . + +# then you can run "docker run -d -p 8080:80 ping.pub/dashboard" \ No newline at end of file diff --git a/installation.md b/installation.md index 4a040ff2..ee45fdeb 100644 --- a/installation.md +++ b/installation.md @@ -1,16 +1,26 @@ +# Prerequisite +1. Node, https://nodejs.org +2. Yarn, https://classic.yarnpkg.com/lang/en/docs/install/#mac-stable + # Installation: 1. Running with yarn -``` -yarn && yarn serve +```sh +yarn --ignore-engines && yarn serve ``` 2. Building for web servers, like nginx, apache -``` -yarn && yarn build +```sh +yarn --ignore-engines && yarn build cp -r ./dist/* ``` +3. Running with docker +```sh +./docker.sh +docker run -d -p 8088:80 ping.pub/dashboard +``` + # Enable LCD for Ping.pub (do this on the config for your chain) 1. Set `enable = true` in `./config/app.toml`