Skip to content

Commit

Permalink
Remove distributedibe from dockerfile & readme
Browse files Browse the repository at this point in the history
  • Loading branch information
p0p3yee committed May 28, 2023
1 parent f24d8b0 commit d2ddaa4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
5 changes: 0 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
FROM --platform=$BUILDPLATFORM golang:1.20-bullseye AS build-env

WORKDIR /src/app/fairyring/DistributedIBE
COPY DistributedIBE/go.mod DistributedIBE/go.sum ./
RUN go mod download
COPY . .

WORKDIR /src/app/fairyring
COPY go.mod go.sum ./
RUN go mod download
Expand Down
18 changes: 6 additions & 12 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,39 +37,33 @@ Optionally add `rv` tag to reset and have verbose output.

### Running a validator locally with Docker

1. Copy DistributedIBE inside fairyring directory

```
cp -r ../DistributedIBE ./
```

2. Build docker image
1. Build docker image

```
docker build -t fairyring .
```

3. Setup validator
2. Setup validator

```
docker run -it -p 1317:1317 -p 9090:9090 -p 26657:26657 -p 26656:26656 -v ~/.fairyring:/root/.fairyring fairyring setup.sh <moniker>
```

4. Create new genesis.json
3. Create new genesis.json

```
docker run -it -p 1317:1317 -p 9090:9090 -p 26657:26657 -p 26656:26656 -v ~/.fairyring:/root/.fairyring fairyring fairyringd collect-gentxs
```

5. Start the validator
4. Start the validator

```
docker run -it -p 1317:1317 -p 9090:9090 -p 26657:26657 -p 26656:26656 -v ~/.fairyring:/root/.fairyring fairyring fairyringd start
```

#### Running multiple validator

1. Repeat step 1 - 3 on all the machines,
1. Repeat step 1 - 2 on all the machines,

2. Run the following command for all the address created in other machine in the master validator:

Expand Down Expand Up @@ -99,7 +93,7 @@ docker run -it -p 1317:1317 -p 9090:9090 -p 26657:26657 -p 26656:26656 -v ~/.fai

### Becoming a validator

1. Follow step 1 - 3 on [Run validator locally](#Running-a-validator-locally-with-Docker)
1. Follow step 1 - 2 on [Run validator locally](#Running-a-validator-locally-with-Docker)

2. Make sure you have enough coins in your account

Expand Down

0 comments on commit d2ddaa4

Please sign in to comment.