Skip to content

Commit

Permalink
Add verim group to the image
Browse files Browse the repository at this point in the history
  • Loading branch information
askolesov committed Jul 8, 2021
1 parent 9b9a730 commit 96005bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions ci/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,13 @@ COPY --from=builder /go/bin/verim-noded /bin
COPY ci/docker/node-runner.sh /bin/node-runner
RUN chmod +x /bin/node-runner

RUN useradd --create-home --shell /bin/bash --uid 1000 verim
RUN groupadd --gid 1000 verim && \
useradd --create-home --shell /bin/bash --uid 1000 --gid verim verim

WORKDIR /home/verim
USER verim

VOLUME /root/.verim-noded
VOLUME /home/verim/.verimnode
EXPOSE 26656 26657
STOPSIGNAL SIGTERM

Expand Down
2 changes: 1 addition & 1 deletion ci/docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ Usage:

```
docker run -it --rm --entrypoint node-runner -e NODE_MONIKER=<moniker> -e GENESIS="<content>" -e NODE_KEY="<content>" -e PRIV_VALIDATOR_KEY="<content>" verim-node
```
```

0 comments on commit 96005bb

Please sign in to comment.