Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix dockerfile #12

Open
wants to merge 2 commits into
base: hacking-v1.6.0-rc.2
Choose a base branch
from
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
16 changes: 15 additions & 1 deletion deployment/dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -326,4 +326,18 @@ COPY deployment/docker/localsecret/faucet/faucet_server.js .

HEALTHCHECK --interval=5s --timeout=1s --retries=120 CMD bash -c 'curl -sfm1 http://localhost:26657/status && curl -s http://localhost:26657/status | jq -e "(.result.sync_info.latest_block_height | tonumber) > 0"'

ENTRYPOINT ["./bootstrap_init.sh"]
COPY hacking/scripts/startup.sh /root/scripts/startup.sh
RUN chmod +x /root/scripts/startup.sh

COPY hacking/scripts/bootstrap_init.sh /root/scripts/bootstrap_init.sh
RUN chmod +x /root/scripts/bootstrap_init.sh

COPY hacking/scripts/node_init.sh /root/scripts/node_init.sh
RUN chmod +x /root/scripts/node_init.sh

COPY hacking/scripts/rebuild.sh /root/scripts/rebuild.sh
RUN chmod +x /root/scripts/rebuild.sh

ENTRYPOINT ["/bin/bash", "/root/scripts/startup.sh"]

#ENTRYPOINT ["./bootstrap_init.sh"]
14 changes: 7 additions & 7 deletions hacking/scripts/node_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,13 @@ then
# sleep 10 && chmod -R ugo+rwx ~/.secretd/* &
else
echo "Restarting node~~~~~~~~~~~~~"
curr_dir=$(pwd)
cd /go/src/github.com/enigmampc/SecretNetwork/
# curr_dir=$(pwd)
# cd /go/src/github.com/enigmampc/SecretNetwork/
# make build_cli
make build_local_no_rust
cp secretd /usr/bin/secretd
chmod +x secretd
cd $curr_dir
# make build_local_no_rust
# cp secretd /usr/bin/secretd
# chmod +x secretd
# cd $curr_dir
# PERSISTENT_PEERS="115aa0a629f5d70dd1d464bc7e42799e00f4edae@localsecret-1:26656"
# sed -i 's/persistent_peers = "'$PERSISTENT_PEERS'"/persistent_peers = ""/g' ~/.secretd/config/config.toml
sed -i 's/pex = true/pex = false/g' ~/.secretd/config/config.toml
Expand All @@ -125,4 +125,4 @@ else
fi
# sed -i 's/pex = true/pex = false/g' ~/.secretd/config/config.toml
# echo "Set pex = false"
# RUST_BACKTRACE=1 secretd start --rpc.laddr tcp://0.0.0.0:26657
# RUST_BACKTRACE=1 secretd start --rpc.laddr tcp://0.0.0.0:26657