-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile_val
25 lines (18 loc) · 866 Bytes
/
Dockerfile_val
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM pbb:latest
ARG NR
WORKDIR /go/src/github.com/csmuller/uep-voting
COPY . .
RUN pbbd init val$NR --chain-id pbb
RUN sed -i -e '79,81 s/^laddr.*/laddr = \"tcp:\/\/0.0.0.0:26657"/' ~/.pbbd/config/config.toml
RUN sed -i -e 's/^max_body_bytes.*/max_body_bytes = 10000000/' ~/.pbbd/config/config.toml
RUN sed -i -e 's/^max_packet_msg_payload_size.*/max_packet_msg_payload_size = 10000000/' ~/.pbbd/config/config.toml
RUN sed -i -e 's/^max_tx_bytes.*/max_tx_bytes = 10000000/' ~/.pbbd/config/config.toml
RUN echo "12345678" | acli keys add admin
RUN acli config chain-id pbb
RUN acli config output json
RUN acli config indent true
RUN acli config trust-node true
RUN pbbd add-genesis-account $(acli keys show admin -a) 100000000stake,1000foo
RUN echo "12345678" | pbbd gentx --details val$NR --ip 192.167.10.1$NR --name admin
EXPOSE 26657/tcp
EXPOSE 26656/tcp