Skip to content

Instantly share code, notes, and snippets.

@kidinamoto01
Created December 6, 2018 08:11
Show Gist options
  • Save kidinamoto01/4c0ba8cd68f089b6cfb9a12e2692f7af to your computer and use it in GitHub Desktop.
Save kidinamoto01/4c0ba8cd68f089b6cfb9a12e2692f7af to your computer and use it in GitHub Desktop.
FROM ubuntu
ADD irislcd /usr/local/bin/irislcd
EXPOSE 1317
EXPOSE 26657
ENTRYPOINT ["irislcd"]
@kidinamoto01
Copy link
Author

kidinamoto01 commented Dec 11, 2018

gaiacli rest-server --laddr=tcp://0.0.0.0:1317 --node=tcp://104.198.127.16:46657 --chain-id=genki-2000 --insecure --trust-node
sudo docker build -t gaiacli:develop .

sudo docker run -it -p 1317:1317 -v /home/ubuntu/.gaiacli:/root/.gaiacli gaiacli:develop rest-server --laddr=tcp://0.0.0.0:1317 --node=tcp://35.240.175.204:46657 --chain-id=genki-3001 --insecure --trust-node

@kidinamoto01
Copy link
Author

kidinamoto01 commented Dec 13, 2018

/sbin/iptables -A INPUT -p tcp -m connlimit --connlimit-above 10 -j REJECT --reject-with tcp-reset
this is for a limit of 10 connections with same IP

@kidinamoto01
Copy link
Author

FROM ubuntu

ADD iristool /usr/local/bin/iristool

EXPOSE 1317

EXPOSE 26657

ENTRYPOINT ["iristool"]

@kidinamoto01
Copy link
Author

sudo docker build -t iristool:develop .

sudo docker run -it -p 36660:36660 monitor --account-address=faa1yclscskdtqu9rgufgws293wxp3njsesxtplqxd --validator-address=216DF1A904FD4E2BAB796CBF00E027A942470ED9 --chain-id=fuxi-7000 --node=tcp://104.198.127.16:26657 --home=/home/ubuntu/fuxi-7000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment