-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #274 from TeknoPT/dev-clean-up
Fix to the Script and Move DEX Contract to a future development.
- Loading branch information
Showing
26 changed files
with
291 additions
and
48 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
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,15 @@ | ||
#--platform=linux/x86_64 | ||
FROM mcr.microsoft.com/dotnet/aspnet:6.0 as runtime | ||
WORKDIR /app | ||
|
||
# Copy everything | ||
COPY DOCKER/wrapper-testnet-debug.sh /app/wrapper-testnet-debug.sh | ||
COPY DOCKER/bin /app/bin | ||
|
||
RUN apt-get update; apt-get install -y libc6-dev libsnappy-dev libicu-dev screen bash vim net-tools ca-certificates openssl libssl-dev librocksdb-dev nano | ||
|
||
#EXPOSE 7077 7078 7079 7080 26056 26156 26256 26356 26057 26157 26257 26357 | ||
EXPOSE 7078 7079 7080 26156 26256 26356 26157 26257 26357 | ||
|
||
RUN chmod +x /app/wrapper-testnet-debug.sh | ||
ENTRYPOINT ["/app/wrapper-testnet-debug.sh"] |
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,34 @@ | ||
#!/bin/bash | ||
# reset all nodes | ||
TROOT=/app/testnet | ||
DIR="/app/testnet/node0/data/" | ||
|
||
if [ -d "$DIR" ]; then | ||
# Take action if $DIR exists. # | ||
echo "Tendermint run..." | ||
else | ||
TMHOME=/app/testnet/node0 /app/bin/tendermint unsafe-reset-all | ||
TMHOME=/app/testnet/node1 /app/bin/tendermint unsafe-reset-all | ||
TMHOME=/app/testnet/node2 /app/bin/tendermint unsafe-reset-all | ||
TMHOME=/app/testnet/node3 /app/bin/tendermint unsafe-reset-all | ||
fi | ||
|
||
# Clear old screens | ||
screen -ls | grep 'node' | grep '(Detached)' | awk '{print $1}' | xargs -I % -t screen -X -S % quit | ||
screen -wipe | ||
#pkill -f "tendermint" | ||
|
||
# Move config files | ||
cp $TROOT/node0/config_node0.json $TROOT/node0/publish/config.json | ||
cp $TROOT/node1/config_node1.json $TROOT/node1/publish/config.json | ||
cp $TROOT/node2/config_node2.json $TROOT/node2/publish/config.json | ||
cp $TROOT/node3/config_node3.json $TROOT/node3/publish/config.json | ||
|
||
# start all tendermint sessions | ||
#screen -S node0p -dm bash -c 'cd /app/testnet/node0/publish/; dotnet phantasma-node.dll; exec sh' | ||
screen -S node1p -dm bash -c 'cd /app/testnet/node1/publish/; dotnet phantasma-node.dll; exec sh' | ||
screen -S node2p -dm bash -c 'cd /app/testnet/node2/publish/; dotnet phantasma-node.dll; exec sh' | ||
screen -S node3p -dm bash -c 'cd /app/testnet/node3/publish/; dotnet phantasma-node.dll; exec sh' | ||
|
||
#screen -rd node0p | ||
/bin/bash |
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
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
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
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
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
Oops, something went wrong.