Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
mainnet/data
mainnet/serect
mainnet/secret/*
!mainnet/secret/.gitkeep
!mainnet/secret/keystore/
mainnet/secret/keystore/*
!mainnet/secret/keystore/.gitkeep
mainnet/motd
testnet/data
testnet/serect
testnet/secret/*
!testnet/secret/.gitkeep
!testnet/secret/keystore/
testnet/secret/keystore/*
!testnet/secret/keystore/.gitkeep
7 changes: 7 additions & 0 deletions mainnet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ $ git clone https://github.com/kub-chain/bkc-node-docker.git
$ cd bkc-node-docker/mainnet
```

### Setup
Create the secrets directory before running any node for the first time. This directory is required by the entrypoint script to store the keystore password and account files.

```bash
$ mkdir -p secret/keystore
```

### Running a Validator
```bash
# Run
Expand Down
6 changes: 3 additions & 3 deletions mainnet/docker-compose.archivenode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
services:
bkc-node:
container_name: bkc-node
image: bitkubchainorg/node:2.3.0
image: bitkubchainorg/node:2.4.0
entrypoint: /usr/bin/docker-entrypoint.sh
networks:
- node_network
Expand All @@ -29,8 +29,8 @@ services:
- "./docker-entrypoint.sh:/usr/bin/docker-entrypoint.sh"
- "./data/geth:/var/lib/bkc/data"
- "./config:/etc/bkc/"
- "./serect/:/etc/bkc/serect/"
- "./serect/keystore/:/var/lib/bkc/data/keystore/"
- "./secret/:/etc/bkc/secret/"
- "./secret/keystore/:/var/lib/bkc/data/keystore/"
depends_on:
- bkc-stats
- influxdb
Expand Down
6 changes: 3 additions & 3 deletions mainnet/docker-compose.fullnode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
services:
bkc-node:
container_name: bkc-node
image: bitkubchainorg/node:2.3.0
image: bitkubchainorg/node:2.4.0
entrypoint: /usr/bin/docker-entrypoint.sh
networks:
- node_network
Expand All @@ -28,8 +28,8 @@ services:
- "./docker-entrypoint.sh:/usr/bin/docker-entrypoint.sh"
- "./data/geth:/var/lib/bkc/data"
- "./config:/etc/bkc/"
- "./serect/:/etc/bkc/serect/"
- "./serect/keystore/:/var/lib/bkc/data/keystore/"
- "./secret/:/etc/bkc/secret/"
- "./secret/keystore/:/var/lib/bkc/data/keystore/"
depends_on:
- bkc-stats
- influxdb
Expand Down
8 changes: 4 additions & 4 deletions mainnet/docker-compose.validator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
services:
bkc-node:
container_name: bkc-node
image: bitkubchainorg/node:2.3.0
image: bitkubchainorg/node:2.4.0
entrypoint: /usr/bin/docker-entrypoint.sh
networks:
- node_network
Expand All @@ -15,7 +15,7 @@ services:
- "--unlock=0"
- "--allow-insecure-unlock"
- "--datadir=/var/lib/bkc/data"
- "--password=/etc/bkc/serect/password.txt"
- "--password=/etc/bkc/secret/password.txt"
- --metrics
- --metrics.influxdb
- --metrics.influxdb.endpoint=http://influxdb:8086
Expand All @@ -32,8 +32,8 @@ services:
- "./docker-entrypoint.sh:/usr/bin/docker-entrypoint.sh"
- "./data/geth:/var/lib/bkc/data"
- "./config:/etc/bkc/"
- "./serect/:/etc/bkc/serect/"
- "./serect/keystore/:/var/lib/bkc/data/keystore/"
- "./secret/:/etc/bkc/secret/"
- "./secret/keystore/:/var/lib/bkc/data/keystore/"
depends_on:
- bkc-stats
- influxdb
Expand Down
6 changes: 3 additions & 3 deletions mainnet/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/sh

if [ ! -f /etc/bkc/serect/password.txt ]; then
if [ ! -f /etc/bkc/secret/password.txt ]; then
echo "Ramdom Password!"
echo $RANDOM | md5sum | head -c 32 > /etc/bkc/serect/password.txt
geth --datadir /var/lib/bkc/data account new --password /etc/bkc/serect/password.txt
echo $RANDOM | md5sum | head -c 32 > /etc/bkc/secret/password.txt
geth --datadir /var/lib/bkc/data account new --password /etc/bkc/secret/password.txt
fi

if [ ! -d /var/lib/bkc/data/geth ]; then
Expand Down
Empty file added mainnet/secret/.gitkeep
Empty file.
Empty file.
7 changes: 7 additions & 0 deletions testnet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ $ git clone https://github.com/kub-chain/bkc-node-docker.git
$ cd bkc-node-docker/testnet
```

### Setup
Create the secrets directory before running any node for the first time. This directory is required by the entrypoint script to store the keystore password and account files.

```bash
$ mkdir -p secret/keystore
```

### Running a Validator
```bash
# Run
Expand Down
6 changes: 3 additions & 3 deletions testnet/docker-compose.archivenode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
services:
bkc-node:
container_name: bkc-node
image: bitkubchainorg/node:2.3.0
image: bitkubchainorg/node:2.4.0
entrypoint: /usr/bin/docker-entrypoint.sh
networks:
- node_network
Expand All @@ -29,8 +29,8 @@ services:
- "./docker-entrypoint.sh:/usr/bin/docker-entrypoint.sh"
- "./data/geth:/var/lib/bkc/data"
- "./config:/etc/bkc/"
- "./serect/:/etc/bkc/serect/"
- "./serect/keystore/:/var/lib/bkc/data/keystore/"
- "./secret/:/etc/bkc/secret/"
- "./secret/keystore/:/var/lib/bkc/data/keystore/"
depends_on:
- bkc-stats
- influxdb
Expand Down
6 changes: 3 additions & 3 deletions testnet/docker-compose.fullnode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
services:
bkc-node:
container_name: bkc-node
image: bitkubchainorg/node:2.3.0
image: bitkubchainorg/node:2.4.0
entrypoint: /usr/bin/docker-entrypoint.sh
networks:
- node_network
Expand All @@ -28,8 +28,8 @@ services:
- "./docker-entrypoint.sh:/usr/bin/docker-entrypoint.sh"
- "./data/geth:/var/lib/bkc/data"
- "./config:/etc/bkc/"
- "./serect/:/etc/bkc/serect/"
- "./serect/keystore/:/var/lib/bkc/data/keystore/"
- "./secret/:/etc/bkc/secret/"
- "./secret/keystore/:/var/lib/bkc/data/keystore/"
depends_on:
- bkc-stats
- influxdb
Expand Down
8 changes: 4 additions & 4 deletions testnet/docker-compose.validator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
services:
bkc-node:
container_name: bkc-node
image: bitkubchainorg/node:2.3.0
image: bitkubchainorg/node:2.4.0
entrypoint: /usr/bin/docker-entrypoint.sh
networks:
- node_network
Expand All @@ -15,7 +15,7 @@ services:
- "--unlock=0"
- "--allow-insecure-unlock"
- "--datadir=/var/lib/bkc/data"
- "--password=/etc/bkc/serect/password.txt"
- "--password=/etc/bkc/secret/password.txt"
- --metrics
- --metrics.influxdb
- --metrics.influxdb.endpoint=http://influxdb:8086
Expand All @@ -32,8 +32,8 @@ services:
- "./docker-entrypoint.sh:/usr/bin/docker-entrypoint.sh"
- "./data/geth:/var/lib/bkc/data"
- "./config:/etc/bkc/"
- "./serect/:/etc/bkc/serect/"
- "./serect/keystore/:/var/lib/bkc/data/keystore/"
- "./secret/:/etc/bkc/secret/"
- "./secret/keystore/:/var/lib/bkc/data/keystore/"
depends_on:
- bkc-stats
- influxdb
Expand Down
6 changes: 3 additions & 3 deletions testnet/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/sh

if [ ! -f /etc/bkc/serect/password.txt ]; then
if [ ! -f /etc/bkc/secret/password.txt ]; then
echo "Ramdom Password!"
echo $RANDOM | md5sum | head -c 32 > /etc/bkc/serect/password.txt
geth --datadir /var/lib/bkc/data account new --password /etc/bkc/serect/password.txt
echo $RANDOM | md5sum | head -c 32 > /etc/bkc/secret/password.txt
geth --datadir /var/lib/bkc/data account new --password /etc/bkc/secret/password.txt
fi

if [ ! -d /var/lib/bkc/data/geth ]; then
Expand Down
Empty file added testnet/secret/.gitkeep
Empty file.
Empty file.