Skip to content

Commit

Permalink
Merge pull request #158 from multiversx/update-docker-image-and-readme
Browse files Browse the repository at this point in the history
Update image name and readme
  • Loading branch information
miiu96 authored Jan 12, 2023
2 parents 3d8effd + e84f8c7 commit 9c34c61
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docker.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
env:
IMAGE_NODE: multiversx-node-mainnet
IMAGE_NODE: chain-mainnet
REGISTRY_HOSTNAME: multiversx

name: Build Docker image & push
Expand Down
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,13 @@
# mx-chain config for mainnet

MultiversX mainnet configuration files used in conjunction with mx-chain-go project.
For more info how to connect to the mainnet, please check [docs.multiversx.com](https://docs.multiversx.com/validators/nodes-scripts/config-scripts/)
For more info how to connect to the mainnet, please check [here](https://docs.multiversx.com/validators/nodes-scripts/config-scripts/)

## run an MultiversX observer/validator with docker

### build docker image
```docker image build . -t chain-mainnet-local -f ./docker/Dockerfile```
### run node with docker
```
CONFIG_FOLDER=path/to/folder/with/pem/file
docker run --mount type=bind,source=${CONFIG_FOLDER}/,destination=/data chain-mainnet-local --validator-key-pem-file="/data/validatorKey.pem" --log-level *:DEBUG
4 changes: 2 additions & 2 deletions scripts/run-observer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ if [ -z "${TAG_EXITS}" ]; then
fi

# build docker image
export IMAGE_NAME=multiversx-node-image-test
export IMAGE_NAME=chain-test
docker image build . -t ${IMAGE_NAME} -f ./docker/Dockerfile

# generate a new BLS key
OUTPUT_FOLDER=~/output/keys
if [ ! -f "${OUTPUT_FOLDER}/validatorKey.pem" ]; then
mkdir -p ${OUTPUT_FOLDER}
docker run --rm --mount type=bind,source=${OUTPUT_FOLDER},destination=/keys --workdir /keys multiversx/mx-chain-keygenerator:latest
docker run --rm --mount type=bind,source=${OUTPUT_FOLDER},destination=/keys --workdir /keys multiversx/chain-keygenerator:latest
fi

## run docker image
Expand Down

0 comments on commit 9c34c61

Please sign in to comment.