Skip to content

Commit

Permalink
Added docker file for propmon
Browse files Browse the repository at this point in the history
  • Loading branch information
yahgwai committed Aug 30, 2023
1 parent f7eb677 commit 9896c4e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/proposalMonitor.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,11 @@ yarn build
ETH_RPC=<your ethereum rpc here> yarn propmon
```

Then navigate to `localhost:8080/propMonUi/propMonUi.html` in a browser. You will need to wait around 30 seconds whilst the propmon discovers all proposals and their stages. The propmon creates a proposalStage.json file that contains a json representation of the data you see on the web page.
Then navigate to `localhost:8080/propMonUi/propMonUi.html` in a browser. You will need to wait around 30 seconds whilst the propmon discovers all proposals and their stages. The propmon creates a proposalStage.json file that contains a json representation of the data you see on the web page.

## Running with docker
```
docker build -t propmon -f propMon.Dockerfile .
docker run -p 8080:8080 -e ETH_RPC=<your ethereum rpc here> propmon
```
Navigate to `localhost:8080/propMonUi/propMonUi.html`
17 changes: 17 additions & 0 deletions propMon.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Dockerfile
FROM node:16

WORKDIR /app

COPY package.json ./
COPY yarn.lock ./

RUN yarn install

COPY . .

RUN git submodule update --init --recursive

RUN yarn build

CMD ["yarn", "propmon"]

0 comments on commit 9896c4e

Please sign in to comment.