-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add first version of docker-compose and git sub-modules
- Loading branch information
Showing
11 changed files
with
205 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[submodule "neo-node"] | ||
path = neo-node | ||
url = https://github.com/neo-project/neo-node.git | ||
[submodule "neo-modules"] | ||
path = neo-modules | ||
url = https://github.com/neo-project/neo-modules.git |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# neo3-privatenet-docker | ||
|
||
:fire::fire::fire::fire: | ||
|
||
Are you ready? Are you really ready? | ||
|
||
This is the **ULTIMATE** GitHub repository to run your Neo3 blockchain node and start developing! :green_heart: | ||
|
||
:tada: | ||
|
||
## How to run | ||
|
||
TBD. | ||
|
||
## Thanks | ||
|
||
We have to thank [hal0x2328](https://github.com/hal0x2328) for publishing [hal0x2328/neo3-privatenet-tutorial](https://github.com/hal0x2328/neo3-privatenet-tutorial) and inspiring us to make things even simpler. :-) |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"ApplicationConfiguration": { | ||
"Storage": { | ||
"Engine": "MemoryStore" | ||
}, | ||
"Paths": { | ||
"Chain": "Client_Chain_{0}", | ||
}, | ||
"P2P": { | ||
"Port": 50333, | ||
"WsPort": 50334 | ||
}, | ||
"RPC": { | ||
"BindAddress": "127.0.0.1", | ||
"Port": 50332, | ||
"SslCert": "", | ||
"SslCertPassword": "", | ||
"MaxGasInvoke": 10 | ||
}, | ||
"UnlockWallet": { | ||
"Path": "wallet.json", | ||
"Password": "one", | ||
"StartConsensus": false, | ||
"IsActive": false | ||
}, | ||
"PluginURL": "https://github.com/neo-project/neo-plugins/releases/download/v{1}/{0}.zip" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"ApplicationConfiguration": { | ||
"Storage": { | ||
"Engine": "MemoryStore" | ||
}, | ||
"Paths": { | ||
"Chain": "Consensus_Chain_{0}", | ||
}, | ||
"P2P": { | ||
"Port": 40333, | ||
"WsPort": 40334 | ||
}, | ||
"RPC": { | ||
"BindAddress": "127.0.0.1", | ||
"Port": 40332, | ||
"SslCert": "", | ||
"SslCertPassword": "", | ||
"MaxGasInvoke": 10 | ||
}, | ||
"UnlockWallet": { | ||
"Path": "wallet.json", | ||
"Password": "one", | ||
"StartConsensus": true, | ||
"IsActive": true | ||
}, | ||
"PluginURL": "https://github.com/neo-project/neo-plugins/releases/download/v{1}/{0}.zip" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"ProtocolConfiguration": { | ||
"Magic": 769, | ||
"AddressVersion": 23, | ||
"MillisecondsPerBlock": 15000, | ||
"StandbyValidators": [ | ||
"03f1ec3c1e283e880de6e9c489f0f27c19007c53385aaa4c0c917c320079edadf2", | ||
], | ||
"SeedList": [ | ||
"neo-consensus:40333", | ||
] | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"ProtocolConfiguration": { | ||
"Magic": 769, | ||
"AddressVersion": 23, | ||
"MillisecondsPerBlock": 15000, | ||
"StandbyValidators": [ | ||
"03f1ec3c1e283e880de6e9c489f0f27c19007c53385aaa4c0c917c320079edadf2", | ||
], | ||
"SeedList": [ | ||
"localhost:40333", | ||
] | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"name": null, | ||
"version": "3.0", | ||
"scrypt": { | ||
"n": 16384, | ||
"r": 8, | ||
"p": 8 | ||
}, | ||
"accounts": [ | ||
{ | ||
"address": "AK5AmzrrM3sw3kbCHXpHNeuK3kkjnneUrb", | ||
"label": null, | ||
"isDefault": false, | ||
"lock": false, | ||
"key": "6PYLVq2QgQqEdzP6cZRLSQyTbDzw1BqF2qCsE9duWEWj7bgmmPVAG9QQBn", | ||
"contract": { | ||
"script": "DCED8ew8Hig+iA3m6cSJ8PJ8GQB8UzhaqkwMkXwyAHntrfILQQqQatQ=", | ||
"parameters": [ | ||
{ | ||
"name": "signature", | ||
"type": "Signature" | ||
} | ||
], | ||
"deployed": false | ||
}, | ||
"extra": null | ||
}, | ||
{ | ||
"address": "AHE5cLhX5NjGB5R2PcdUvGudUoGUBDeHX4", | ||
"label": null, | ||
"isDefault": false, | ||
"lock": false, | ||
"key": "6PYLVq2QgQqEdzP6cZRLSQyTbDzw1BqF2qCsE9duWEWj7bgmmPVAG9QQBn", | ||
"contract": { | ||
"script": "EQwhA/HsPB4oPogN5unEifDyfBkAfFM4WqpMDJF8MgB57a3yEQtBMHOzuw==", | ||
"parameters": [ | ||
{ | ||
"name": "parameter0", | ||
"type": "Signature" | ||
} | ||
], | ||
"deployed": false | ||
}, | ||
"extra": null | ||
} | ||
], | ||
"extra": null | ||
} |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
version: '3.6' | ||
|
||
services: | ||
|
||
build-neo-cli: | ||
build: ./neo-node | ||
image: neo-project/neo-node/neo-cli:latest | ||
|
||
neo-consensus: | ||
build: | ||
context: ./neo-modules | ||
dockerfile: ../docker/Dockerfile | ||
target: NeoCliFinal | ||
image: docker.pkg.github.com/axlabs/neo3-privatenet-docker/neo-cli-with-plugins:latest | ||
hostname: neo-consensus | ||
depends_on: | ||
- build-neo-cli | ||
volumes: | ||
- ./config/config.privatenet3-consensus.json:/neo-cli/config.json:ro | ||
- ./config/protocol.privatenet3-consensus.json:/neo-cli/protocol.json:ro | ||
- ./config/wallet.privatenet3.json:/neo-cli/wallet.json:ro | ||
ports: | ||
- "40332:40332" | ||
|
||
neo-client: | ||
build: | ||
context: ./neo-modules | ||
dockerfile: ../docker/Dockerfile | ||
target: NeoCliFinal | ||
image: docker.pkg.github.com/axlabs/neo3-privatenet-docker/neo-cli-with-plugins:latest | ||
hostname: neo-client | ||
depends_on: | ||
- build-neo-cli | ||
- neo-consensus | ||
volumes: | ||
- ./config/config.privatenet3-client.json:/neo-cli/config.json:ro | ||
- ./config/protocol.privatenet3-client.json:/neo-cli/protocol.json:ro | ||
- ./config/wallet.privatenet3.json:/neo-cli/wallet.json:ro | ||
ports: | ||
- "50332:50332" |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS PluginBuild | ||
|
||
COPY ./ /neo-modules | ||
|
||
WORKDIR /neo-modules | ||
RUN dotnet restore && dotnet publish -c Release -o /plugins | ||
|
||
FROM neo-project/neo-node/neo-cli:latest AS NeoCliFinal | ||
|
||
COPY --from=PluginBuild /plugins ./Plugins |
Submodule neo-modules
added at
bbcfa5