-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- migration work to multiverx organization
- Loading branch information
1 parent
cf72a8c
commit a9ec2b4
Showing
6 changed files
with
27 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,16 @@ | ||
<div style="text-align:center"> | ||
<img | ||
src="https://raw.githubusercontent.com/ElrondNetwork/elrond-go/master/elrond_logo_01.svg" | ||
alt="Elrond Network"> | ||
src="https://raw.githubusercontent.com/multiversx/mx-chain-go/master/multiversx-logo.svg" | ||
alt="MultiversX"> | ||
</div> | ||
<br> | ||
|
||
<br> | ||
|
||
[![](https://img.shields.io/badge/made%20by-Elrond%20Network-blue.svg?style=flat-square)](http://elrond.com/) | ||
[![](https://img.shields.io/badge/project-Elrond%20Network%20Mainnet-blue.svg?style=flat-square)](http://elrond.com/) | ||
[![](https://img.shields.io/badge/made%20by-MultiverX-blue.svg?style=flat-square)](http://multiversx.com/) | ||
[![](https://img.shields.io/badge/project-MultiversX%20Mainnet-blue.svg?style=flat-square)](http://multiversx.com/) | ||
|
||
# elrond-config for mainnet | ||
# mx-chain config for mainnet | ||
|
||
Elrond mainnet configuration files used in conjunction with elrond-go project. | ||
For more info how to connect to the mainnet, please check [docs.elrond.com](https://docs.elrond.com/validators/mainnet/config-scripts/) | ||
|
||
## run an elrond observer/validator with docker | ||
|
||
### build docker image | ||
```docker image build . -t elrond-node-image-last -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 elrond-node-image-last --validator-key-pem-file="/data/validatorKey.pem" --log-level *:DEBUG | ||
``` | ||
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/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
FROM golang:1.17.6 as builder | ||
MAINTAINER ElrondNetwork | ||
MAINTAINER multiversx | ||
|
||
RUN apt-get update && apt-get install -y | ||
|
||
WORKDIR /config | ||
COPY . . | ||
|
||
WORKDIR /go | ||
RUN git clone https://github.com/ElrondNetwork/elrond-go.git && cd elrond-go && git checkout --force $(cat /config/binaryVersion) | ||
WORKDIR /go/elrond-go | ||
RUN git clone https://github.com/multiversx/mx-chain-go.git && cd mx-chain-go && git checkout --force $(cat /config/binaryVersion) | ||
WORKDIR /go/mx-chain-go | ||
|
||
#Elrond node | ||
WORKDIR /go/elrond-go/cmd/node | ||
# MultiversX node | ||
WORKDIR /go/mx-chain-go/cmd/node | ||
RUN go build -i -v -ldflags="-X main.appVersion=$(git --git-dir /config/.git describe --tags --long --dirty)" | ||
RUN cp /go/pkg/mod/github.com/!elrond!network/arwen-wasm-vm@$(cat /go/elrond-go/go.mod | grep arwen-wasm-vm | sed 's/.* //' | tail -n 1)/wasmer/libwasmer_linux_amd64.so /lib/libwasmer_linux_amd64.so | ||
RUN cp /go/pkg/mod/github.com/!elrond!network/arwen-wasm-vm@$(cat /go/mx-chain-go/go.mod | grep arwen-wasm-vm | sed 's/.* //' | tail -n 1)/wasmer/libwasmer_linux_amd64.so /lib/libwasmer_linux_amd64.so | ||
|
||
WORKDIR /config | ||
RUN cp -r * /go/elrond-go/cmd/node/config/ | ||
RUN cp -r * /go/mx-chain-go/cmd/node/config/ | ||
|
||
WORKDIR /go/elrond-go/cmd/node | ||
WORKDIR /go/mx-chain-go/cmd/node | ||
|
||
# ===== SECOND STAGE ====== | ||
FROM ubuntu:22.04 | ||
RUN apt-get update -y && apt-get upgrade -y | ||
COPY --from=builder "/go/elrond-go/cmd/node" "/go/elrond-go/cmd/node/" | ||
COPY --from=builder "/go/mx-chain-go/cmd/node" "/go/mx-chain-go/cmd/node/" | ||
COPY --from=builder "/lib/libwasmer_linux_amd64.so" "/lib/libwasmer_linux_amd64.so" | ||
WORKDIR /go/elrond-go/cmd/node/ | ||
WORKDIR /go/mx-chain-go/cmd/node/ | ||
EXPOSE 8080 | ||
ENTRYPOINT ["/go/elrond-go/cmd/node/node", "--rest-api-interface=:8080"] | ||
ENTRYPOINT ["/go/mx-chain-go/cmd/node/node", "--rest-api-interface=:8080"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters